This webinar will demonstrate how to utilize the Zemax OpticStudio Application Programming Interface (ZOS-API) for accessing the Ray Database (ZRD). We will show you the necessary methods and some tips & tricks on how to handle rays and segments with the ZRD Reader.
Authored By Thomas Pickering
The sample Matlab scripts and required Raytrace.dll is included in the Article Attachment link. The Raytrace.dll needs to be placed in the same folder as the MATLAB script. The updated file ZRDLoaderFull.dll uses the ReadNextSegmentFull() method to access all the information available in a ZRD file.
You can find more information about this method in the ZOS-API Syntax Help, which is included in OpticStudio 18.1 and higher. It is built into Opticstudio on the "Help" tab. See Navigating the ZOS-API Syntax Help document - Part 1
The article Batch Processing of Ray Trace Data using ZOS-API in MATLAB may also be useful as it uses the same DLL's and similar scripts.