Skip to main content
Solved

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

  • June 13, 2022
  • 1 reply
  • 177 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.

View original
Did this topic help you find an answer to your question?

1 reply

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

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings