Modeling a Diffractive lens in a sequential mode with a DLL

  • 21 June 2022
  • 2 replies


I would like to know how can I create a diffractive lens in a sequential mode using a dll ? 


Thank you.



Best answer by Sandrine Auriol 24 June 2022, 12:24

View original

2 replies

Userlevel 7
Badge +2

Hi Samia,


This is quite a general question. I’d recommend reading about the DLL knowledgebase articles here to get familiar with this feature. Then, you can browse the sample files in you {Documents}\Zemax\DLL\Surfaces. If you have an equation which describes how the rays bend upon interacting with your custom surface, it should be possible.

Take care,



Userlevel 6
Badge +2

Some good references are:

And check this sample file: "{Zemax}\DLL\Surfaces\us_grate.c"

We also had an “Ask an engineer” event about DLLs lately. The recording is available in the post: