xzos / PyZDDE

Zemax/ OpticStudio Extension using Python
MIT License
159 stars 67 forks source link

GHRS and Stops #69

Closed B2015 closed 7 years ago

B2015 commented 7 years ago

Dear indranil, I've been encountering some problems with new systems lately and was wondering whether this could be related to issue #61. Indeed I'm loading a simple TMA within zemax (I can surely provide you the generic zemax file for testing if needed), and what I see is that when I load it within zemax through pyzdde, the global coordinate reference surface and stop surface positions have been changed. I compared the .zmx text files before being loaded and after to reach that conclusion. So it looks like somehow these two parameters are changed after loading some systems into zemax. What I can do then is change the parameters back in the zemax session and then let the script continue, or change the stop surface back using zSetAperture, however, I can't find a way to change the GHRS from pyzdde. Have you experienced this problem ? Cheers Ben

B2015 commented 7 years ago

... don't bother, I found out I simply left some default parameters to some fields when using 'zsetSystem' ... sorry about that, I think it was so obvious that I totally missed it :p...