CAXCAD's current built-in optical surface can already meet the needs of most users, including refraction, reflection, spherical, aspherical, polynomial, diffraction grating and so on.
However, users sometimes have special needs, at this time you can use CAXCAD DLL extension surface, using VC++ to achieve custom.
New project, select win32 DLL
Create an empty DLL
Import the header files and C++ routines we provided
The C++ file defines the CAXCAD face type standard in detail
Compile the connection to generate the DLL file
Place it in the specified folder
Select Extended Surface Dll for surface type
After selecting the specified face type, the lens file LDE table can see that it was successfully called.