×
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

Adding a check to an expression
3

Adding a check to an expression

Adding a check to an expression

(OP)
How do you set a limit of travel for an expression in NX10. I have an expression that needs a limit of +.375 to -.375.

RE: Adding a check to an expression

You can use a secondary expression to check and limit the value of an existing expression.

CODE

if(input < -0.375)(-0.375)else(if(input > 0.375)(0.375)else(input)) 

The above expression formula will check the value of an expression named "input" and will constrain the output.

www.nxjournaling.com

RE: Adding a check to an expression

2
We don't physically limit the bounds of an expression in NX (yet) but we can add checks that will tell you if you're out of bounds.

The easiest way is to select an expression, and choose "Add a Check" from the MB3 menu. smile (There's a button for this at the bottom of the Expressions dialog too, but the MB3 is a bit more direct.)



If you've not previously created any requirements in your part, choose "Create New Requirement", and fill out the form:



You can choose a severity here (Error, Warning or Information) and choose from several ways of defining the requirement. Note that the requirement is formulated as a positive statement of what the value should be, as opposed to a description of the bad case.

Once you press APPLY in the Expressions dialog, the check will start to give graphical feedback in the expressions dialog:



...and in the Part Navigator:



This requirement and accompanying requirement check can also be examined, edited, etc. in the Requirements Validation HD3D tool:



...and if the expression is directly related to some geometry on the screen (feature parameter, or measurement expression, for instance) then it will automatically start to add HD3D tags to the screen whenever the Requirements Validation tool is active:



...and if it's not directly related to some geometry on the screen yet, you can tell the tag where you'd like it to appear when things go wrong:



And yeah, there are many more cool things you can do with this. winky smile

And last but not least, you'll be pleased to know that no extra licenses are required, either... This is all part of base NX. smile

Does that help a bit?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

RE: Adding a check to an expression

(OP)
This worked pretty good, not all that hard once you know what to do. Thanks Taylor.

RE: Adding a check to an expression

My pleasure!

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

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