With the OpticStudio 20.2 release, the way we connect to Python has changed from using the COM interface to using .NET. Are there any differences in how the API code is implemented in Python after this change?
In general, there are two major differences between Python COM and Python .NET:
CastTo
constants.EnumeratedVariable_Enumeration
If you haven't already, take a look at our overview of Python .NET in the Knowledgebase: 'ZOS-API using Python.NET.' In that article, the differences I have discussed above are outlined. We also provide a step-by-step guide on setting up this new interface!