Skip to main content

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

  • 12 August 2021
  • 0 replies
  • 162 views

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$


 

0 replies

Be the first to reply!

Reply