When I reverse multiple elements in a zmx file that was the worst case MC runs, most of the materials disappear.
When I reversed just one element, it did not erase the material. And I have been reversing standard design files (vs MC file which has many coordinate breaks, and the material has offsets). Has anyone else had this issue? Is there a workaround?
Best answer by MichaelHView original
If you can share your MC file, then I can give better guidance.
In general, I think the solves from the MC are causing the problem. You might want to try running the following macro to remove thickness and material solves:
Note that if you truly want to reverse the entire system and not just reverse a few elements, there are several more steps than just running the Reverse Elements tool:
How to reverse an optical system – Knowledgebase (zemax.com)
Thanks Michael. Glad to know you have a process that works.
I’m trying your suggestions but it’s complicated by the many coordinate breaks from MC which use -ve thickness to return coordinates so I’ll have to figure out what to do with those. Thanks again for the directions.
Can you share your original ZMX file which is failing?
I’ve noticed in the past that surface pickups & virtual propagation (negative thickness in “normal” space or positive thickness in “mirror” space) causes errors with the Reverse Elements tool. I’ve had the best experience when I’ve reversed a system without:
** these 2 are the biggest issues I’ve found in the past
When dealing with MC files, there are several pickups, virtual propagations, and coordinate breaks which will probably break the Reverse Elements tool.
I’ve recently had to reverse a system with dummy surfaces/virtual propagation and ran into issues. For systems with dummy surfaces/virtual propagation, I had to remove the extra surfaces so it’s a “forward only” propagation and “sag only” system:
I use the following workflow to make sure the system is forward/sag only:
This technique produces a valid Reversed System for a traditional imaging system.
Hope this helps.