Hi,
I am facing an issue when I try to extract ray trace data for a non sequential component in mixed mode of Zemax.
![](https://uploads-us-west-2.insided.com/zemax-en/attachment/60f3784e-1dc5-44b8-a6ff-c0323d35e736.png)
In the above data, I want to get the direction cosines of normal and incident ray for NSC object 7 and 2 using a ZPL macro (as I am tracing a 10000 rays). Since for RANX(surface) (Surface number in the sequential editor has to be given) I don’t know which surface number has to given for this case. I also tried to save the ray trace data every time I trace the ray, but When I run RAYTRACE hx,hy,px,py,wav, (for different px and py), somehow the data in the Raytrace text is not getting update. Can you please provide me a solution for this.
Best answer by Jeff.Wilde
View original