Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Open - Rename tools based on parent Machine Pocket

Status
Not open for further replies.

stevie6410

Aerospace
Aug 10, 2011
4
Hi,

I need to rename a tool based on the name of the parent machine pocket it sits in. See the attached image for operation navigator layout...

This example is based on how the tools sit in the operations navigator.
I already have the code to cycle through all of the pocket objects however I need to find out what tool(s) are beneath that pot.

The end aim is to have the Journal loop through all pockets and rename all of its child tools.. e.g. "0.5-END-MILL" would become "T01-0.5-END-MILL" and "5MM-HSS-DRILL" would become "T02-5MM-HSS-DRILL"

Many Thanks

Steve
 
Replies continue below

Recommended for you

I think you want this:

Namespaces ► NXOpen.CAM ► NCGroup ► GetMembers()



Mark Rief
Product Manager
Siemens PLM
 
Thanks for your help! this worked perfectley...

Is it possible to have this journal trigger whenver a tool is moved from one pocket to another? Or doest it have to remain a user command button...

Thanks again
 
No, there is no user exit there.
I would not recommend using the tool name to indicate the tool number, becasue you can not assure that it is up to date. Interactively, the user can see the tool number in a column in the Navigator. In both post and shop docs, the tool number is available as a variable to be output.


Mark Rief
Product Manager
Siemens PLM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor