Skip to main content
Solved

Encapsulate ZPL marco

  • Dec 9, 2021 1:07 PM UTC
  • 3 replies
  • 203 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

Best answer by Alissa Wilczynski

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

View original

3 replies

Alissa Wilczynski
Zemax Staff
Forum|alt.badge.img+3

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


xavier_bth
  • Monochrome
  • Oct 20, 2023 12:24 PM UTC

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


MichaelH
Luminary
Forum|alt.badge.img+2
  • Luminary
  • Oct 20, 2023 3:50 PM UTC

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