Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Reformatting an internal attribute in NX 10

Status
Not open for further replies.

BOPdesigner

Mechanical
Nov 15, 2005
434
Within a model you have this attribute W@$SH_PART_NAME which is the filename of your part. For me, this filename starts with 8 alphanumeric characters followed by some dash numbers like 123A1234-01. The first 8 characters are also our document number in PLM. What I am trying to do is create a new attribute that is able to automatically capture the first 8 characters of the filename (part name). First problem. When I create this attribute in the file or template, I list <W@$SH_PART_NAME> as the string. When I use this, in a PMI note for example, it actually spells out <W@$SH_PART_NAME> instead of resolving to the filename. 2nd problem, if you can help me resolve the first problem, is there a way to truncate the remaining characters in the name so that only the first 8 are captured and used? Thinking something along the lines of how in a drafting dimension you can use an expression in a note or appended in the format <X0.0@p0) where the X0.0 is the decimal precision to display the expression p0.
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor