-
-
August 18, 2023 at 6:50 am
Tanuj Gigras
SubscriberHello 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?
-
August 18, 2023 at 2:50 pm
Christophe Weisse
SubscriberHello,
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 -
September 6, 2023 at 2:59 am
-
September 6, 2023 at 7:34 am
Christophe Weisse
SubscriberHello,
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
-
September 18, 2023 at 6:57 am
otis jame
SubscriberEnsure 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.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- how to export results from SPEOS to Mechanical
- Negative Reflection Problem
- Simple Optical simulation
- Ansys SPEOS- Diffusion Coefficient of a fluorescence
- Ambient source on Ansys SPEOS
- Purcell Factor on Dielctric Mirror
- Light reflection on a XMP map
- HUD simulation Speos
- How I can get a student version of Ansys Speos Software to learn?
- Ansys SPEOS-Fluorescent Material
-
7646
-
4468
-
2957
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.