Skip to main content

Sample code to modify certain parameters in the settings of an analysis window through ZPL


yuan.chen
Zemax Staff
Forum|alt.badge.img+3

We can use the below code to close the current analysis result and analyze the new filed. The setting file must be created by clicking the Save button.

Stngs$="C:\Users\yuan.chen\Documents\Zemax\Configs\TFM.CFG"
CLOSEWINDOW WINL()
MODIFYSETTINGS Stngs$,TFM_FIELD,3,"TFM"
Openanalysiswindow "tfm",Stngs$


 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

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