Hi,
I'm trying to develop a MATLAB script that will automatically create a Zemax optical performance model from a specified design model. This involves copying across some data from the design model, such as surface thicknesses.
I've hit an issue where, after creating the new optical performance model, the editor that originally pointed to the LDE of the design model (DesignLDE) switches to the LDE of the new optical performance model (OptPerfLDE). Therefore, my original idea to extract a surface thickness from DesignLDE and set it as a thickness in OptPerfLDE does not work (since DesignLDE and OptPerfLDE now refer to the same editor).
Is there a way that I can have editors from two different Zemax models available in MATLAB to facilitate copying of data, as described above? Or, do I have to load one model, copy the required data (such as surface thickness) to a variable and then load the other model? If the latter, then it would make sense to grab all the required data in one go at the start of the script rather than loading the models multiple times over the course of the script.
Thanks,
Michael