Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX extracting parts of file name

Status
Not open for further replies.

Lars1978

Mechanical
Dec 30, 2015
327
Hi I’m new here and using NX10 for two weeks. when I’m saving a NX file it is in this manner:
xxxxxx_yy__zzzzzzzz.prt
xxxxxxxxxx:= unique number length is not fixed)
yy:= revision number (max two digits)
zzzzzzzz:= name of the part (length is not fixed)
In the title block I’d like to have the x,y and z part separated.
I think it’s possible for someone to write a Grip code which extracts the x,y and z parts and loads them into separate attributes ?
The separators between x,y and z may vary, something like a double dash or a triple dash to make a difference.
Who can help ?
 
Replies continue below

Recommended for you

Ok thnx this helped a lot.

Happy new year :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor