Copying Image Simulation images in ZPL macros
Saving Image Simulation images in a ZPL macroTo output an image file from the Image Simulation tool in a macro, one needs to create a configuration file. This has to be done once manually by pressing Save from the settings menu of the analysis window (Fig. 1).Figure 1 - Creation of a configuration file (*.CFG) from the settings menu of the Image Simulation window.If an Output File is specified, the next time Image Simulation is called from a macro, a file will be saved in the image folder of OpticStudio, typically: User.Name\Documents\Zemax\IMAFiles\, with the corresponding name. The Image Simulation analysis can be called in a macro with the command line: OPENANALYSISWINDOW "Sim"If the Output File