Skip to main content

Zemax OpticStudio ZOS-API 2026 R1

Example 23: Ray Fan User Analysis

Last update: 09.03.2026

Ex 23: Using a batch ray trace, a Ray Fan analysis is generated via both the native OpticStudio code as well as manually via the IBatchRayTrace interface. The results, including proper scaling and execution time, are displayed for comparison purposes.

Input: 		Sequential\Objectives\Double Gauss 28 degree field.zos

Output:		Graph (Matlab, Python)
            API\e23_ray_fan_native_manual_comparison.txt (C++, C#)

C#

C++

Matlab

Python

Connect with Ansys