- Home
- Programming ZEMAX
- ZPL
- How to Automate Keyboard and Mouse Actions with ZPL
How to Automate Keyboard and Mouse Actions with ZPL
Summary And References
The ZEMAX Programming Language offers great user-extensibility to ZEMAX. ZPL macros can be used to perform any number of tasks and are very useful in automating a series of evaluations. Some of the basics of ZPL are as follows:
- These ZPL capabilties are separated into two main categories: functions and keywords. Functions can be used on the right hand side of an assignment, and will return a value or string. Keywords are used to directly program flow, and may be used to set values in the lens prescription.
- Macros must be saved with an appropriate filename, with a .ZPL extension.
- Macros should be saved in the ZEMAX>Macros directory so that they may be called from within ZEMAX
References
ZEMAX Optical Design Program User's Guide, ZEMAX Development Corporation
Related Articles
Attachments
3 Responses to "How to Automate Keyboard and Mouse Actions with ZPL" 
|
said this on 19 Nov 2006 3:48:58 PM PDT
Does ZEMAX have a template available for EditPlus 2?
{Editor's reply: yes, please contact support@zemax.com}
|
|
said this on 15 Feb 2007 6:56:29 AM PDT
Showed me exactly how to use the NSDD function.
|
|
said this on 16 Sep 2008 12:32:17 AM PDT
Very good introduction. Excellent line-by-line comment of the macro!
|

Author)