Skip to main content
Solved

How to get the index of the last/image surface in ZPL?

  • June 13, 2022
  • 1 reply
  • 195 views

Monte

A simple question but I am unsure.  Currently I’m using a macro that I have to edit in manually the last surface index every time.  Something like index = -1 but this didn’t work.  Thanks!

Best answer by MichaelH

Use NSUR() to get the last surface in the Lens Data Editor.

1 reply

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • Answer
  • June 13, 2022

Use NSUR() to get the last surface in the Lens Data Editor.