Commercial optical design software routinely contains a programming language which can be used to augment and/or extend the optimization control and/or the analytical capabilities of the basic software package. In particular, we extensively use CODE V and its macro language in the design and analysis of optical systems. One example describes a method to calculate and remove or reduce the aspheric departure of a surface during the optimization process. A second example enables the designer to evaluate the dispersion characteristics of several materials over a given spectral band as an aid in selecting refractive lens materials which offer the best chance of achieving a chromatic correction solution in a wide spectral band lens system.
Leslie D. Foo,
"Macro language use in optical design and analysis", Proc. SPIE 3482, International Optical Design Conference 1998, (21 September 1998); doi: 10.1117/12.322031; https://doi.org/10.1117/12.322031