ZEMAX offers a built-in tolerancing feature which you may use to perform a complete and accurate tolerance analysis of your optical system.

Although ZEMAX performs the calculation of each tolerance “behind the scenes,” ZEMAX also gives you the option to view what it is doing more closely; the operation of the tolerance feature is not always transparent. 

There are two different methods to saving the modifications that ZEMAX made to your lens file to calculate the change in criteria as a function of the specified tolerance(s). 

The first option may be defined in the Tolerance Data Editor as a tolerance control operand.  The SAVE tolerance control operand can be used after any tolerance you would like to inspect in more detail.  For example, suppose that you had a tolerance operand TEDX (tolerance on element decenter in X) in the Tolerance Data Editor.  After reviewing the resulting sensitivity analysis, the results did not appear to make sense. 

As a result, you may edit the Tolerance Data Editor by adding a SAVE command after the TEDX operand.  The next time the tolerance analysis is run, ZEMAX will save the file used to compute the TEDX tolerance, which you may view as a ZEMAX lens file.