I am using the ZOS-API in C# with 4.8.1 framework using Zemax OpticStudio 2024 R1.02 and getting an error message when running the Local Optimization tool.
The error message returned from running the tool is “Input settings are invalid”.
This occurs only when I load from an Archive File (.ZAR).
If I load from a model file (.ZMX) then the Local Optimization tool works as expected.
For the fields that I set, there are only 2; Algorithm = DampedLeastSquares and Cycles = Automatic
It’s weird and I can’t understand the difference between accessing the model from an Archive would create this issue. NOTE, that I did load the ZAR file from the actual Zemax application and Optimization worked fine.
If anyone has any ideas as to the issue then please let me know
Thanks
B.