×
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

Using Logical Statements with Expressions

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.

RE: Using Logical Statements with Expressions

The logic statments IF and IF/THEN/ELSE are still supported in Expressions and you can still control the Suppression status of Components using Expressions, so I guess the answer to your question is, YES, you can still do whatever you did back in UG V16.0. And in fact we've added some additional Expression functions since then so you'll probably have even more ways to control the content of an Assembly. As for the Logic formats, we've even added a function, called the 'Conditional Builder', which is part of the 'Extended Text Entry' tool, to make it even easier to set-up logic statements.

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

(OP)
Thanks, John. Only one more question, where do I find the commands? I'm just back on NX after 5 years of Catia, still learning where all the buttons are.

RE: Using Logical Statements with Expressions

What version of NX are you running?

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

(OP)
Currently running 8.5, soon will be 9.0

RE: Using Logical Statements with Expressions

You can find the Suppress (Component) by Expression at...

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 winky smile

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

tooldeziner --

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

(OP)
Thanks John and Taylor.

RE: Using Logical Statements with Expressions

Units are also new with expressions since the last time you used NX.
They are nice but can cause trouble too, you will know what I mean when it happens to you.

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