> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

The examples provided with OpticStudio cover a wide variety of applications, in the sequential as well as the non-sequential mode of OpticStudio. The use of all types of editors is demonstrated as well as various tools and analyses (including modifying settings and retrieving results). The applications range from optimization and tolerancing to systems with CAD objects and volume physics.

The list below shows an overview over all currently available examples. While they are in no particular order, each file has a specific application purpose which is summarized on the respective example page. Some examples are complete viable systems, others simple showcase the use of certain tools and analyses.

The first 4 examples are a great starting point to get introduced into the API as they show the most frequently used methods and keywords. Apart from Example 3 which builds on the output of Example 1, the examples are independent of each and do not require a linear working through of the files. Examples 21-25 are more complex, highlighting more infrequently used functionality.

| Example | Title | Links |
| - | - | - |
| 01 | [New File and QuickFocus](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_01_py) |
| 02 | [NSC Ray Trace](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_02_py) |
| 03 | [Open File and Optimize](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_03_py) |
| 04 | [Retrieve Data from FFT MTF](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_04_py) |
| 05 | [Parsing a ZRD File](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_05_py) |
| 06 | [NSC Phase](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_06.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_06_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_06_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_06_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_06_py) |
| 07 | [Tilt and Decenter Elements](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_07.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_07_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_07_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_07_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_07_py) |
| 08 | [NCE Detector Data](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_08.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_08_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_08_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_08_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_08_py) |
| 09 | [NSC CAD](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_09.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_09_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_09_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_09_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_09_py) |
| 10 | [NSC ZRD Filter String](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_10.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_10_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_10_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_10_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_10_py) |
| 11 | [Basic Sequential](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_11.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_11_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_11_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_11_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_11_py) |
| 12 | [Sequential System Explorer](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_12.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_12_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_12_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_12_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_12_py) |
| 13 | **Tolerancing** | *Coming soon....* |
| 14 | [Sequential Tolerance](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_14.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_14_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_14_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_14_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_14_py) |
| 15 | [Sequential Optimization](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_15.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_15_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_15_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_15_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_15_py) |
| 16 | [User-Defined Operand (UDOC)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_16.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_16_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_16_cpp) |
| 17 | [Bulk Scatter](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_17.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_17_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_17_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_17_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_17_py) |
| 18 | [Multiple Configurations](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_18.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_18_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_18_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_18_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_18_py) |
| 19 | [Surface Properties](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_19.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_19_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_19_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_19_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_19_py) |
| 20 | [Exporting as CAD File](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_20.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_20_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_20_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_20_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_20_py) |
| 21 | [White LED Phosphor](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_21.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_21_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_21_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_21_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_21_py) |
| 22 | [Sequential Analysis](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22_cpp) [![Mathematica](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_nb.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=9bbbfded46fefd35a302de945aed0d3f)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22_nb) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_22_py) |
| 23 | [Ray Fan User Analysis](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_23_py) |
| 24 | [Non-Sequential Detector Data](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_24.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_24_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_24_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_24_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_24_py) |
| 25 | [Source Spectrum Diffraction Grating](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_25.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_25_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_25_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_25_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_25_py) |
| 26 | [Modify OpticStudio Preferences](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_26.md) | [![C#](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cs.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=dba017768f9336026c533aba55f73d83)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_26_cs) [![C++](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_cpp.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=63cdeaa98044fe061fc29c893bc3d960)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_26_cpp) [![Matlab](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_ml.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=71365ab3efc62770e7c37f5b72cb3dfb)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_26_m) [![Python](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/link_py.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=25ab2bc2de8189f31be8e5c146cce713)](https://developer.synopsys.com/docs/zemax/zemax-opticstudio-zos-api/apiexamples/example_26_py) |

All but one example are standalone, the exception being Example 16. This Example shows how to use a compiled executable for a user-defined operand, using either C# or C++.

The Examples can be found in two ways:

1. You can see the syntax within this documentation by clicking the desired button in the table above or navigating through the menu tree on the left.
2. The full files are also located in the ZOS-API\ZOS-API Sample Code folder.

If you have OpticStudio installed in the default directory via the installer (C:\Program Files\Zemax OpticStudio), then in order to run a Matlab file, you can simply execute the \*.m  without any modification.  If you changed the default directory, you will to find the NET.addAssembly line which is hard coded to point to the ZOSAPI\_NetHelper.dll and change the file path from the default (C:\Program Files\Zemax OpticStudio\ZOS-API\Libraries\ZOSAPI\_NetHelper.dll).

In order to run a Python file, you will need to have pywin32 as well as the Matplotlib module (which also installs Numpy) already downloaded and installed. Pywin32 is required for COM languages to communicate with our API.  Several Python files for both numerical analysis as well as plotting rely on these two modules.  You can find more information on our Getting Started with Python Knowledgebase Article.  To run a C# or C++ file, first go Programming tab in OpticStudio, select the desired language and click Standalone Application.\\

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/zemax/zemax-opticstudio-zos-api/images/standalone_app_loc.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=49227d302a0605f566f43d4cd462733b)

A new solution will be created in the Zemax\ZOS-API Projects folder.  From here, copy and paste the desired file into the new solution’s Program.cs or Program.cpp file. You can then build and run the executable.

In the example summaries, the inputs and outputs for each script are given with their respective location. When these descriptions refer to Samples\API\\\[language], this corresponds to the programming language that you are currently running. For example, for Python the path will be Samples\API\Python and for C# the path will be Samples\API\CS.
