Hello fellow optics enthusiasts,
I’m currently working on a task where I need to ignore multiple surfaces in a Zemax optical system using the ZOS-API. At the moment, I’m using the following loop:
for i in range(150, 160):
surface = TheSystem.LDE.GetSurfaceAt(i)
surface.TypeData.IgnoreSurface = True
However, this approach seems to be quite slow. Has anyone found a more efficient way to ignore multiple surfaces at once?
Any insights or suggestions would be greatly appreciated!
Thanks in advance,
Sebastián