Skip to main content

About changing Preferences setting in ZOS-API


Michael Cheng
Zemax Staff
Forum|alt.badge.img+2

Here are some notes for references if you are trying to change the preferences settings in ZOS-API!

  1. The ZOSAPI.IZOSAPI_Connection.PreferencesFile only works in standalone mode and not in other 3 modes.

  2. When you didn't specify a PreferenceFile (or when the given path is wrong), all settings in the preferences cannot be changed by API. In other words, only in standalone mode, you can change preferences settings.

  3. The only way to read a second preferencesFile is to close the current IZOSAPI_Application, change the path, and reconstruct the IZOSAPI_Application. In other words, I cannot read a new PreferenceFile in real time when I’m opening a file via ZOS-API in the standalone application mode.

Best regards,

Michael

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings