Zemax Programming Language – pdf version available for purchase

A pdf version of the contents of this series of blog plus some more real application examples, as well as all the .zpl files used in the blogs, are now available for purchase from our sponsor’s website


The price is US$19.99

You can directly send your payment along with your email address to their PayPal account



Please kindly support our work, so we can continue to provide more valuable contents.


Application of Zemax Programming Language

Table of Contents


Chapter 1 Zemax optical design software and Zemax Programming Language (ZPL)

1.1 Introduction to Zemax

1.2 Introduction to Zemax Programming Language ZPL

Chapter 2 Basics of Zemax Programming Language

2.1 Basic Structure

2.2 Variable and Constant

2.3 Function

2.4 Keywords

2.5 Flow Control

2.6 Sub-Function

2.7 I/O and File Operation

Chapter 3 ZPL commands in details

3.1 Numerical Operation Functions

3.2 String Functions

3.3 Setting and Reading Zemax System Properties

3.4 Setting and Reading Lens Properties

3.5 Merit Function

3.6 Solve

3.7 Optimization

3.8 Ray Tracing

3.9 System Analysis

3.10 Non-Sequential Components

3.11 Multi-Configuration

3.12 Display

3.13 File Operation

3.14 ZBF File

Chapter 4 ZPL Application Examples

4.1 Sequential Optical Systems

4.1-1 Basic ray-tracing parameters

4.1-2 Light spot near focal plan

4.1-3 Geometrical beam and Gaussian beam comparison

4.1-4 Comparison of transmission property of different glass materials

4.1-5 Reading refractive index and transmission data of catalog glass

4.2 Non-Sequential Optical Systems

4.2-1 Light Pipe

4.2-2 Cosine Fourth Rule

4.2-3 Importance sampling

4.2-4 Interference fringes

4.2-5 Efficiency of the integrating sphere

4.2-6 Generating 3D light distribution with Detector Volume




A Chinese version of this book is also available:

Zemax 编程语言 (ZPL) 应用指南




第一章  ZEMAX光学设计软件和ZEMAX 编程语言(ZPL)简介


第二节ZEMAX编程语言(ZEMAX Programming Language, ZPL)简介


第二章  ZEMAX 编程语言基本知识









第三章ZPL 指令详解

第一节 ZPL中的数值运算函数

第二节 ZPL中的字符串函数

第三节 ZEMAX运行环境和系统参数的设置与读取

第四节 镜头参数的设置和读取

第五节 评价函数(merit function)

第六节 求解(solve)

第七节 优化(optimization)


第九节 系统分析

第十节 非顺序元件

第十一节 多组态( multi-configuration)

第十二节 屏幕显示

第十三节 文件操作

第十四节 ZBF文件



第一节 顺序光学系统

4.1-1 光线追迹参数设定

4.1-2 近焦平面光斑

4.1-3 几何光束及高斯光束比较

4.1-4 不同玻璃材料传输特性比较

4.1-5 从数据库中读取折射率及透光率

第二节 非顺序光学系统

4.2-1 导光管

4.2-2 余弦四次方规律

4.2-3 重点采样

4.2-4 相干条纹

4.2-5 积分球效率

4.2-6 利用体探测器生成3D 光强分布图


Thank you for supporting our work.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: