Skip to main content

Retrieve current object number in NS with macro

  • April 2, 2021
  • 2 replies
  • 336 views

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

 

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1159 replies
  • April 2, 2021

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