The Zemax Programming Language (ZPL) allows users to write their own programs within OpticStudio.
These programs can:
- Automate repetitive keyboard and mouse actions
- Perform calculations based on OpticStudio data
- Export data in specific formats
- Produce graphs and text listings of data
Creating ZPL macros is easy, this learning path provides all the necessary information to get you up and running with this simple yet powerful programming language.
Introduction to Zemax Programming LanguageIntroduction to Zemax Programming Language
How to write a ZPL macroHow to write a ZPL macro
How to create a user-defined solve
This lesson demonstrates how ZPL can be used to create user-defined solves, and it consists of two examples. The first explains how to create a ZPL solve to ensure the image plane of a sequential file has a Radius equivalent to the system’s Petzval curvature. The second shows instead how to constrain an Object position on the Non-Sequential Component Editor based on other another object’s parameters.