Hello everyone,
I was trying to find a simple way to remove pickups and variables for when I want to integrate a non-sequential system into another file. In the ZOS-API documentation I’ve found only a global removal for variables so far:
TheLDE = TheSystem.LDE
tools = TheSystem.Tools
tools.RemoveAllVariables()
Unfortunately, I was not able to find something similar for pickup-solves.
So, I’ve written a very small python-file based on the boilerplate code that removes pickups and variables from a nonsequential Zemax-File which I’d like to share to the community. The code only changes the solve types: variables and pickups to fixed solve types to preserve other solve types (for example the solve type “model” for materials).
Best regards,
Sven