xzos / PyZDDE

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

zSetMulticon support string values? #72

Closed danieldmulkey closed 7 years ago

danieldmulkey commented 7 years ago

Hello,

Does ln.zSetMulticon() support strings for the value argument? The documentation suggests only floats, but then I don't see how you could enter any configuration values for 'GLSS' in that case. Is there different method I'm not aware of?

Cheers,

indranilsinharoy commented 7 years ago

Hi @danieldmulkey,

There are two ways of using the zSetMulticon() method (described in the docstring). If the config = 0, then, this function is used to set the operand type (string, like 'GLSS,THIC` etc.) and number data. I hope that helps.

danieldmulkey commented 7 years ago

The issue I had wasn't in setting operand type, I wasn't able to set a string value for an operand. So, for example, I could set 'THIC' to 5 and 3 but not 'GLSS' to 'N-BK7' and 'SF-5'. It gave some error saying that formatter 'g' had no meaning for strings, as it was expecting a number.

Cheers,

On May 14, 2017 3:24 PM, "Indranil Sinharoy" notifications@github.com wrote:

Closed #72 https://github.com/indranilsinharoy/PyZDDE/issues/72.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/indranilsinharoy/PyZDDE/issues/72#event-1081425730, or mute the thread https://github.com/notifications/unsubscribe-auth/AGjuADfTYry-AeGJ_6PfYUCxYv1WKaplks5r538EgaJpZM4NZ7wl .