×
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

Nested if-statement in NX 7.5

Nested if-statement in NX 7.5

Nested if-statement in NX 7.5

(OP)
Hi,

Can someone please help me out with this nested if statement that does not work:

if(inner_d=<900)(100)else(if(1200>inner_d>900)(200)else(400))

Kind regards

FT

RE: Nested if-statement in NX 7.5

This give you what you want:

if(inner_d<=900)(100)else(if(inner_d>1200)(400)else(200))

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum:   http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Nested if-statement in NX 7.5

Try this...

if(inner_d<=900)(100)else(if(inner_d<1200 & inner_d>900)(200)else(400))

RE: Nested if-statement in NX 7.5

You're both making it more complex than it needs to be.  If there are only 3 conditions which you wish to test for:

A = less than or equal to 900
B = greater than 900 but less than 1200
C = greater than 1200

You really only need to make TWO tests.  If it does not meet 'A' or 'C', then by definition, it must be 'B'.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum:   http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Nested if-statement in NX 7.5

You are right John,

Just pointing out how to make use of operators.

Thanx,

Spada

RE: Nested if-statement in NX 7.5

(OP)
Thanks a lot!

I am also trying to make an expression that is related to an objects mass(centripetal force). I know that I can measure the mass by clicking 'analysis-measure bodies'..

 

RE: Nested if-statement in NX 7.5

(OP)
Figured it out.

Expression-Meassure bodies.

Thanks

RE: Nested if-statement in NX 7.5

Thanks Spadazenon for the ampersand idea.

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