Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX - Renumber Expressions - Revisited

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
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
 
Replies continue below

Recommended for you

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.
 
 http://files.engineering.com/getfile.aspx?folder=8fbcf3ff-9991-4bc1-aba2-a7e04d3addab&file=Rename_Exp.zip
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
 
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.
 
 http://files.engineering.com/getfile.aspx?folder=763f795e-b001-4ad7-8200-625707c84a68&file=Rename_Exp.zip
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
 
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 :-(

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor