×
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

NX expression

NX expression

NX expression

(OP)
Hi everybody,

I am trying to find NX expression for this situation:

If parametr_62=0 and parametr_65=0 then return 0, else return 1.

IF(p62=0)(0)else(1) ... works
IF(0=p65)(0)else(1) ... works
IF(p62=p65=0)(0)else(1) ... doesnt works (but is excepted)

Do you have any experince with this ???
Could you help me ?

Thanx

Jara

RE: NX expression

try instead:
IF(p62=0 AND p65=0)(0)else(1)

----
kukelyk

RE: NX expression

I have tried something like this:
IF(p7=200)(IF(p8=200)(200)else(100))else(100)

This means, that:
when p7 dimension is 200, next IF statemnet is checked. Next statement says, that if p8 dimension is also 200, the third dimension will also be 200. If this second dimension (p8) is not 200, the third dimension is going to be 100.
when p7 dimension is anything else but 200, next IF statement is not relevant. The third dimension is automatically 100.

Hope that this will help.

RE: NX expression

Instead of AND in kukelyk example, write down &. So, that expression would like like this:
IF(p62=0 & p65=0)(0)else(1)
Then it will work as you would like.

RE: NX expression

(OP)
Hi again,
thank you for the answers!

2Kukelyk: AND doesn´t work
2SvenBom: yy, that is OK!

IF(p62>0)(1)ELSE(IF(p65>0)(1)ELSE(0))

and funny is this:
IF(p62+P65=0)(0)else(1)

Take care

Jara

RE: NX expression

What's so funny about 'IF(p62+P65=0)(0)else(1)'? It's actually pretty elegant to say nothing of being very creative.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

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

RE: NX expression

(OP)
Exactly !!!
I have totally omitted so simple solution smile
Jara

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