Hi,
i am new and playing with zos-api and programmatically defining an optical system in sequential mode.
However, i was not able to find how to set the STOP surface using the zos-api.
Any hints? Your advice is highly appreciated.
Hi,
i am new and playing with zos-api and programmatically defining an optical system in sequential mode.
However, i was not able to find how to set the STOP surface using the zos-api.
Any hints? Your advice is highly appreciated.
Hi
If you have an ILensDataEditor
object TheLDE
, you can get the index of the stop surface from TheLDE.StopSurface
.
If you are using ZOSPy (which is worth a try if you are getting started with the ZOS-API), you can access this property through oss.LDE.StopSurface
.
Thank you for the hint
this is nice way to realize a getter.
For setter the follwing worked for me
oss.LDE.GetSurfaceAt(xx).IsStop=True
P.S. As you can see it in the right flavour. :-)
Ah, my apologies, I misread your question. Maybe I shouldn't respond to these questions during the weekend , apparently it doesn't improve the quality of my answers.Yes, if you want a setter, this is the way to go (at least it's what I use, and I think the implementation makes sense if you consider how it is done in OpticStudio). Thanks for the heads up!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.