deleting nx expressions
deleting nx expressions
(OP)
hi,
i am trying to figure out a way to clear/delete all expressions and interpart data from a ug model , is there a command in ug to do this or is it possible to create a macro or jounal for it . any help would be appreciated...
cheers......
chetan herur
i am trying to figure out a way to clear/delete all expressions and interpart data from a ug model , is there a command in ug to do this or is it possible to create a macro or jounal for it . any help would be appreciated...
cheers......
chetan herur





RE: deleting nx expressions
The quickest way to do this would be to go to...
File -> Export -> Part...
...and with the 'Feature Parameters' option set to 'Remove Parameters', select all of the bodies and curves which you wish to retain in their 'dumb' state, enter the name of new file and hit OK. Now you'll have a new part file with all of the features and parameters removed.
An alternative, in case you don't want to create a new Part file, is to go to...
Edit -> Feature -> Remover Parameters...
...select all of the features in the Part model and hit OK. You may still need to go to open the Expression dialog and delete any leftover expressions.
BTW, why are you so interested in "...clearing/deleteing all expressions and interpart data..." from your Part model?
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: deleting nx expressions
RE: deleting nx expressions
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: deleting nx expressions
RE: deleting nx expressions
Go Tools - Expressions - Edit interpart references - Delete Reference / Delete All References.
Regards,
Tomas
RE: deleting nx expressions
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: deleting nx expressions
"a number of parts and a assembly which uses inter-part link and values from a external spread sheet"
Maybe the cleaning can be simplified by exporting the expressions to a separate file, clean the external file , import.
( Tools- expression - export expressions to file and Import...)
Sadly the expression in the text file only shows as expression, not the current value.
i.e
ug_excel_read( "C:\temp\Book1.xlsx", "B2" )
and not that the current value of cell "B2" happens to be "100"
Regards,
Tomas
RE: deleting nx expressions
CODE --> vb.net
RE: deleting nx expressions
RE: deleting nx expressions
RE: deleting nx expressions
RE: deleting nx expressions
the following code fixes that.
CODE -->
The following code uses a recursive function to find the unique parts in a assembly with the displayed part as root. It then loops over the parts and "simplifies" the expressions. As always the code is provided as is, I would not run it on anything critical before testing that it works in your environment.
CODE -->
RE: deleting nx expressions
the second code works well on nx7.5 but as i have used measure in the some parts the program stops at measure snd does not continue further. it would be great if the program could be modified to skip measure and continue to simplify the expression .
RE: deleting nx expressions
CODE -->
RE: deleting nx expressions
RE: deleting nx expressions
RE: deleting nx expressions
Here is an extended program that "cleans" the assembly of any supressed components, supressed features and expression formulas.
CODE --> vb.net
RE: deleting nx expressions
RE: deleting nx expressions
CODE --> vb.net
RE: deleting nx expressions
CODE -->
RE: deleting nx expressions