Skip to main content

Hi all,

is there a way to access the contents of the Ray Database Viewer via the ZOS-API? I did not find any example. I am not even sure whether it is possible since there does not seem to exist an interface for this analysis type in ZOS-API. 

I found a knowledge base article which explains how to read the contents of .ZRD files (Batch Processing of Ray Trace Data using ZOS-API in MATLAB or Python – Knowledgebase (zemax.com)). However, I have no idea how much effort is required to recreate the content of the Ray Database Viewer from the .ZRD file.

Best regards
Benjamin

Hi @Benjamin.N,

 

I recently had to do something similar, and used the code from @Michael Cheng:

Does that help?

Alternatively, you can read some of that data directly from a raytrace in the ZOS-API.

Take care,


David


Hi David,

Michael Cheng’s code was indeed helpful with the readout of the ZRD files. It turned out to be rather straightforward to reconstruct the Ray Database Viewer output from ZRD file content.

Thanks!

Best regards
Benjamin


Reply