prevent expression from being deleted
prevent expression from being deleted
(OP)
Is there any way to keep an expression from being deleted during part cleanup? For example, an expression that sets a part attribute is not protected when it comes to part cleanup, even though it is being referenced. I am not referring to locking an expression, by the way.
NX9.0.3.4, windows 7
NX9.0.3.4, windows 7





RE: prevent expression from being deleted
What you can do is export your expressions to a text file for safety.
RE: prevent expression from being deleted
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: prevent expression from being deleted
John Baker, I'm using the 'ug_setPartAttrValue' function in expressions, not sure exactly what you are referring to by the "new Attribute functions". The component is based on one of your examples, the hand wheel I believe, and it holds some very intriguing possibilities for flexibility in a component.
To explain a little more completely, "file->utilities->attribute templates" is setup so the user can select certain options. These options are used to select expressions from a list which also set part attribute values for the bill of materials. It all works very slick until the part cleanup routine is run, then the bom attribute setting expression gets wiped out.
A call to gtac it is.
RE: prevent expression from being deleted
In the case of the replacement for the 'ug_setPartAttrValue' function, just go to the...
File -> Properties -> Attribute
...dialog and enter the name of the Attribute you wish to create, set the 'Date Type' to the appropriate option (note that you can only use Integer, Number of String Data Types) and then select the 'Link to Expression' icon to get a list of available Expressions.
Note that there is also new functions on the Expression dialog to create Expressions linked to existing Attributes so both 'directions' are now covered using built-in functions. And while it is true that the older KF functions are still supported, you'll note that if you were to go into the Expression 'Function' list, f(x), you would see that the Attribute functions have been removed since we no longer want our customers to use them.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.