Skip to main content
Solved

ZOS-API Python - Change parameters of diode source array


I have a (n x m) array of diode sources. My optical simulation includes a sweep of n and m. However within the ZOS-API (python) i don´t seem to find this attribute in the diode source object.

Does someone know how to access these variables?

Best answer by Benjamin.N

Hi Jonasz,

according to the ZOS-API syntax help (see “Programming” tab in Zemax) the attributes are called “NumberX” and “NumberY” (which is slightly different from the GUI: “Number X’”).

Best regards
Benjamin

View original
Did this topic help you find an answer to your question?

2 replies

Benjamin.N
Forum|alt.badge.img
  • Visible
  • 34 replies
  • Answer
  • July 21, 2023

Hi Jonasz,

according to the ZOS-API syntax help (see “Programming” tab in Zemax) the attributes are called “NumberX” and “NumberY” (which is slightly different from the GUI: “Number X’”).

Best regards
Benjamin


  • Author
  • Visible
  • 23 replies
  • July 21, 2023

Hi Benjamin,

I am still learning how to get around with the help document. Your answer was very helpful.

Looking up the ZOS-API syntax help, i´ve followed ZOSAPI → Editors → NCE → IObjectSourceDiode. As indicated, the attributes NumberX and NumberY can be found, along with other relevant ones.

 

Kind regards


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings