Detector viewer in zemax macro

  • 6 December 2019
  • 3 replies

Dear all,

I'm in problems with using zemax macro in NSQ mode.

I want to:

1. open the detector viewer with the zemax macro.

2. save/export image and text data(not ray data!) of the detector viewer with the zemax macro.

Could someone please help me or give some macro codes for these problems?


3 replies

Userlevel 1

EXPORTBMP will let you save the image from the detector.  

GETTEXTFILE lets you save the text data from the detector viewer window. 

I hope this helps.

Userlevel 6
Badge +3
SAVEDETECTOR will also save the data in a detector (not the ray trace data, that's held in a .ZRD file). It and LOADDETECOR perform the same functions as you get under Detector Tools in the UI
Thank you all!

Bless you.