ZPL Macros: What FUNCTIONS and KEYWORDS are replaced or obsolete?
There are times when we run an old ZPL Macro and it may not work in the newest version of OpticStudio. This happens because FUNCTIONS and KEYWORDS are obsolete, even though Zemax/OpticStudio have not made any KEYWORDS obsolete since before 2006, and only 1 function obsolete in the past 5 years. The table below is for mapping the FUNCTIONS/KEYWORDS. If you have a macro that doesn't work and are forced to use Zemax 13 or earlier, perhaps you can check the table below and lookup what the old code is to manually map it and make it work in the newest version of OpticStudio. Feel free to add any we've missed in the comments section, and I'll update the main post. Type Old New Comment Function FVAN(x) FTAN(x) Function STDD(surf, 0) SPRO(surf, 60) Function STDD(surf, 1) SPRO(surf, 61) Function STDD(surf, 2) SPRO(surf, 62) Function STDD(surf, 3) SPRO(surf, 63) Function STDD(surf, 4) SPRO(surf, 64) Function STDD(surf, 5) SPRO(surf, 65) Function STDD(surf, 6) SPRO(surf, 66) Function STDD(surf, 7)