Optical

Optical

Topics relate to Speos.

UDOC function not working on Ansys Zemax OpticStudio 2023 R1.03

    • Tanuj Gigras
      Subscriber

      Hello All,

      I was using the UDOC function in the merit function to optimize my system. The program was working until the software was updated to Ansys Zemax OpticStudio 2023 R1.03. 

      The executable (.exe) file was created using the C# using the boilerplate taken from the ZOS-API.NET< C# < user operand. 

      I know that the DDE functionality is completely removed from this version, and the latest syntax of ZOS-API is used in generating the code in C#. 

      Does anyone face the same kind of problem or know any solutions? 

       

    • Christophe Weisse
      Subscriber

       

      Hello,

      Thanks for reaching out, to have a swift feeback could you open a ticket in the Zemax support system ? I found out you had previously reached out to our team there, this is stil valid for Ansys Zemax OpticStudio users as well. Please navigate to https://www.zemax.com/pages/profile#support-tickets.


      Our team will most likely need to have a detailed look at your case. When opening the ticket, could you please specify what was the previous version you were using ?

      Thanks !
      All the best,
      Christophe

       

    • Coleman Andrea
      Subscriber

      I have the same problem but haven't found a solution yet.

      connections game

    • Christophe Weisse
      Subscriber

      Hello,

      Thanks for reaching out, to have a swift feeback could you open a ticket in the Zemax support system ? Please navigate to https://www.zemax.com/pages/profile#support-tickets, or send an e-mail to zemax.support@ansys.com.

      I can share here some 1st level troubleshooting. Can you please:

      • make sure you copied the exe under {Zemax}\ZOS-API\Operands. If it is not in the right folder (and so if OpticStudio can’t find it), you will get a ShellExcute Error.
      • try to recompile the UDOC EXE with the latest DLLs (ZOSAPI.dll, ZOSAPI_Interfaces.dll, and ZOSAPI_NetHelper.dll). There are some changes in the API from version to version, and this might fix the issue you are seeing. To make sure you have the latest versions of these DLLs, you can find them in C:\Program Files\Ansys Zemax OpticStudio 2023 R1.03.

      Thanks,

      All the best,

      Christophe

       

    • otis jame
      Subscriber

      Ensure that your C# project references the rainbow obby correct version of the ZOS-API.NET library that corresponds to the version of OpticStudio you are using (2023 R1.03 in your case). You should have the latest ZOS-API.NET library files.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.