Using Logical Statements with Expressions
Using Logical Statements with Expressions
(OP)
Way back in UG version 16 I designed a complex dynamic assembly in which I used logic statements (if-then, etc.) Does that function still exist in NX? Also, as I recall, UG had its own format for the various statements.
Thanks for any info on this.
Thanks for any info on this.





RE: Using Logical Statements with Expressions
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: Using Logical Statements with Expressions
RE: Using Logical Statements with Expressions
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: Using Logical Statements with Expressions
RE: Using Logical Statements with Expressions
Assemblies -> Components -> Edit Suppression Status...
...after selecting the Component and the above option, enter the name of teh expression is the enter window below the option but remember to first create an Expression to control the Suppression state. Setting the Expression value to '1' will unsuppress the Component. Seeting it to '0' (zero) will suppress the Component.
As for setting up the Expression Logic statements, you can either type them directly into the Expression editor or you can select the the 'Extended Text Entry' icon in the lower right side of the Expression dialog. Once in the new text entry window is open, select the second icon at the top labeled 'Insert Conditional'. Here you will find a sort of 'wizard' for formatting logical IF statemetns.
Anyway, that should point you in the right direction since you say you've done this sort of thing in the past, it should all come back to you, like never forgetting how to ride a bike
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: Using Logical Statements with Expressions
Those "other" new functions are under the Functions [f(x)] button in the lower right corner of the Expressions dialog. (Red circle in the attached image...)
This same Functions dialog is available inside the Extended Text Area, which you can use to format your complex logical expression in a more understandable way. (Red square in the attached image...)
Does that help?
Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
RE: Using Logical Statements with Expressions
RE: Using Logical Statements with Expressions
They are nice but can cause trouble too, you will know what I mean when it happens to you.