This article explains:
- What the ZEMAX Programming Language (ZPL) is
- What ZPL is used for
- The differences between functions and keywords within ZPL
Photorealistic Rendering Using ZEMAX and POV-Ray
- By Akash Arora
- Published 8 February 2010
- ZPL
- Unrated
This article describes photorealistic rendering and the rendering software POV-Ray. It provides and explains a macro written to render ZEMAX lens files in POV-Ray.
How to Model a Phantom Lens
- By Sanjay Gangadhara
- Published 11 January 2010
- Frequently Asked Questions , ZPL
- Unrated
This article describes how to modeled a turreted lens system using the multi-configuration capabilities of ZEMAX. A number of IGNR operands are necessary for ignoring the turreted lens in one of the configurations, and are added with a ZPL macro.
What is the Best Way to Reference a Surface or Object in ZPL?
- By Mark Nicholson
- Published 26 June 2008
- Frequently Asked Questions , ZPL
-
Rating:




Question: What is the best way to reference a surface or object in ZPL, so that the macro still works when surfaces/objects are inserted or deleted, and the numbering changes?
This article is also available in Japanese.
This article is also available in Japanese.
How to Use the PLOT2D keyword in ZPL
- By Sanjay Gangadhara
- Published 24 June 2008
- ZPL
-
Rating:




This article describes use of the PLOT2D keyword for generating graphical displays of 2D numerical data in ZEMAX. Examples are provided to demonstrate use of the keyword, and its application in creating through-focus PSF plots.
How to Call a ZPL Macro From Within a ZPL Macro
- By Sanjay Gangadhara
- Published 21 February 2008
- ZPL
- Unrated
This article explains how to call a macro from within another macro, and how data are passed back and forth between macros.
How To Use the PLOT keyword in ZPL
- By Sanjay Gangadhara
- Published 21 February 2008
- ZPL
- Unrated
The ZEMAX Programming Language (ZPL) supports a comprehensive PLOT keyword for making graphs of data arrays. This article shows some examples of how to use it.
How to Use Programmer's Editors With ZPL
- By Neil Barrett
- Published 1 August 2007
- ZPL
-
Rating:




One of the many benefits of ZPL macros is that they can be written in any text editor, such as Windows' own Notepad. However, macros are often a lot easier to read, understand and debug when the macro commands are highlighted, and programmer's text editors provide more powerful text editing features.
This article describes how to use two such programmer's editors with ZPL.
This article describes how to use two such programmer's editors with ZPL.
This article introduces a quick and simple macro that can be used to scale the weighting of a range of optimization operands.
How to Set Solves from ZPL
- By Mark Nicholson
- Published 5 April 2007
- ZPL
- Unrated
This article described a brief ZPL code snippet written to save the author from some tedious keyboard data entry.
ZPL