Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression Help Please 1

Status
Not open for further replies.

Yoeri

Mechanical
Feb 21, 2011
2
I would like to create an expression based on the following:


I have an extrude, with 1 expression 'x'

If x =< 10, then the extrude shouldn't occur at all.
If x > 10, then the extrude should be (20)



Sidenote:
Using NX 7.5
 
Replies continue below

Recommended for you

Take a look at making use of "Suppression By Expression"

NX 6.0.5.3
Windows XP32
 
First create your Extrude feature, then go to...

Edit -> Feature -> Suppress by Expression...

...and select the Extrude feature and hit OK. Now go to the Expressions dialog and you will see a new Expression which indicates that it's controlling the 'suppression' status of the extrude feature and its value should be '1'.

Now just edit that Expression using an IF statement Expression, something along the lines of...

<name of suppression expression>=IF(x=<10)(0)else(1)

Note that when the value of the 'supression expression' is equal to '1', the feature will be present (unsuppressed). If the value is equal to '0', the feature will be suppressed.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Thanks, got it! :)


God bless you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor