Skip to main content
Solved

Why does my macro output results from 1 previous macro run?

  • March 14, 2025
  • 2 replies
  • 60 views

HM Light

I have a question about Zemax Macro. My macro outputs the results from 1 previous macro setting, even though I edit and save the new setting in the macro every time. I put the screenshot that explain this problem. I have no idea why it happens, so I would like to have any suggestion and comments. 

 

Best answer by Sean Turner

Try adding the UPDATE keyword before RAYTRACE.

2 replies

Sean Turner
Fully Spectral
Forum|alt.badge.img+1
  • Fully Spectral
  • Answer
  • March 14, 2025

Try adding the UPDATE keyword before RAYTRACE.


HM Light
  • Author
  • Single Emitter
  • March 14, 2025

Thank you so much! Yes, it looks like the UPDATE is needed before RAYTRACE. It works well after adding the UPDATE. 

I found the description of UPDATE in the user manual. Much appreciated.