Skip to main content
Solved

How can I return the settings of my DLL surface?

  • February 11, 2019
  • 1 reply
  • 75 views

Allie
Zemax Staff
Forum|alt.badge.img+2

I am working with a system that has a user-defined DLL surface and want to obtain the settings. The ZOS-API recognizes that I am using a user-defined DLL but is not returning the correct file as defined in my code.

Best answer by Allie

You can use the property CurrentTypeSettings (of the ILDERow interface) to retrieve the current settings for the surface.

Note that the property CurrentTypeSettings and not the method GetCurrentTypeSettings() should be used, as the latter command will create a new ISurfaceTypeSettings instance instead of referencing the current.

 

 

1 reply

Allie
Zemax Staff
Forum|alt.badge.img+2
  • Author
  • Zemax Staff
  • Answer
  • February 11, 2019

You can use the property CurrentTypeSettings (of the ILDERow interface) to retrieve the current settings for the surface.

Note that the property CurrentTypeSettings and not the method GetCurrentTypeSettings() should be used, as the latter command will create a new ISurfaceTypeSettings instance instead of referencing the current.