Ansys Learning Forum › Forums › Discuss Simulation › Optics › Zemax: creating an array of tilted source › Reply To: Zemax: creating an array of tilted source
January 3, 2025 at 9:18 am
Christophe Weisse
Ansys Employee
Dear Binyu,
You're right, creating every object by hand is always possible (you can copy/paste any object, which may make it somewhat convenient) but you'd need to edit some parameters manually. Also, API or DLL can be quite intense if your task is rather simple. This is why my first suggestion was to use macros (ZPL).
This is an easier to use, simplier programming option that excells at automating tasks.
I gave it a quick go to illustrate how ZPL could be used in your set-up:
I hope this helps,
Christophe