Skip to main content

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

  • August 12, 2021
  • 0 replies
  • 209 views

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$