Skip to main content

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



 

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


Hi David,



 



It works



thanks



 



kevin


Reply