Solved

Encapsulate ZPL marco

  • 9 December 2021
  • 3 replies
  • 116 views

Dear all,

 

I’m currently developing several Marcos for a specific system. I’m wondering if there is a method in ZEMAX that can let me to encapsulate my code like a black box? 

 

Best wishes

Daoming

icon

Best answer by Alissa Wilczynski 15 December 2021, 01:26

View original

3 replies

Userlevel 4
Badge +3

No, there is no encryption system for macros within OpticStudio.

Hello,

I am following up on this request to encrypt the content of a zpl macro in Zemax. Is there a way to write a script in Pyhton, encrypt this code and call such fonction from my zpl macro?

 

Best regards

Userlevel 6
Badge +2

Use a compiled (EXE) C#/C++ code with the ZOS-API.  This is not “encrypted” but the files will be binary and unreadable.  

Reply