Skip to main content

Retrieve current object number in NS with macro


Hello,


I would like to retrieve current object number in Macro while I choose ZPL macro in solveing type of x position in  pure NS editor.


I check Manual and found there is a function that can get the object number.


NPRO(surf, object, code,face), but the object parameter  in this function is object number which is what I want to retrieve.


How can I retrieve current object number in NS mode while I write ZPL code?


Best regards


Kevin


 

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

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2

Hi Kevin,


 


I'm not on my work's laptop, and don't have access to the Help File, but I believe the numeric function you need is:



SOSO(1)

Note that you can change the argument to zero for the sequential surface number.


NPRO is to retrieve non-sequential object parameters, and not the object number itself. The object number is in fact an argument of this numeric function.


Let me know if this helps.


Take care,




David


  • Author
  • Infrared
  • 10 replies
  • April 2, 2021

Hi David,


 


It works


thanks


 


kevin


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