×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NX - Renumber Expressions - Revisited

NX - Renumber Expressions - Revisited

NX - Renumber Expressions - Revisited

(OP)
I see that this has been asked before - but I would like to revisit the question. Because of various importing/exporting of bits in my model it has gotten very "riddled" with primed expressions. To the point that I cannot make out the dimensions on my sketch (see attached) because the expression names are so long.

How can I renumber the expressions so that I can once again see what I am working with?

I'm using NX7.5

Thanks,
Jeff

RE: NX - Renumber Expressions - Revisited

Attached is a GRIP program which will replace all of the 'hashed' (what you call 'primed' expressions) expression names with a name with no 'hash' marks unless this would create a duplicate name, in which case it will be left with the 'hashed' name.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: NX - Renumber Expressions - Revisited

(OP)
John,

When I run the program it errors with "Error 1548999 at line 32 in Rename_Exp. No write access"

What does it need write access to?

Thanks,
Jeff

RE: NX - Renumber Expressions - Revisited

OK, what it does is extract a list of expression names and writes them to a file which is created in the same folder where NX was installed. In my case that would be the D:\ folder but if you installed NX out-of-the-box and accepted the defaults you'll probably find that it's the C:\Program Files\Siemens\ folder (depending how old your version of NX is it might be in the C:\Program Files (x86)\UGS\ folder). Anyway, the issue is that you will need write access to this folder, which is not always the case unless you have admin privileges and do your own software installs.

That being said, to get around the problem of people not having write access to the folder where NX was installed, I changed the program (new files attached) so that the temporary text file where the expression names are written is now being created in the Windows 'Temp' folder so this should now work for everyone.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: NX - Renumber Expressions - Revisited

(OP)
It worked, but of course, just my luck that the expressions which it considers "duplicates" are the ones in my sketch. So is there no way to modify this so that it simply starts a p0 and increments each expression it finds from there?

Thanks,
Jeff

RE: NX - Renumber Expressions - Revisited

Not without a lot of extra programming. If you look at the source you will see that this program is rather simple in how it goes about doing what it does, but then it doesn't try to anything more than what was advertised sad

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources