×
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

Expressions_Not_Match

Expressions_Not_Match

Expressions_Not_Match

(OP)
hello NX Experts,

I am still getting error in Expressions,

eg.
i wanna get variable sizes of keyway , but when i insert the value of that as below,

if(p0=120) then (25.0) else (20) & (if(p0=140) then (35.0) else (20)) & (if(p0=150) then (45.0) else (20.0)) & (if(p0=200) then (45.0) else (20.0)))

but when i change size,Size not changed, got error in expressions,

eg. for when i change size p0 to 120 it changed to 25 , but when i change p0 to 140 , it should be changed to 35.0 , but not got result., it should be changed as i given sizes.

i attached file for more information

anybody have idea for this


Best Regards,

Thomas Roman
Machine Designer

RE: Expressions_Not_Match

You have And statements which basically says that it has to comply to all conditions...
I think you are looking for below.

If ( p0 = 120 )
Then ( 25 )
Else If ( p0 = 140 )
Then ( 35 )
Else If ( p0 = 150 | p0 = 200 )
Then ( 45 )
Else ( 20 )

So;
120 produces 25
140 35
150 OR 200 45
All other values will produce 20

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

HP Zbook15
Intel(R) Core(TM) i7-4800MQ
CPU @ 2.70 GHz Win7 64b
Nvidia K1100M 2048 MB DDR5

RE: Expressions_Not_Match

(OP)
Hello@nutace (Mechanical

thanks for help man,

& one more thing

how can i get information like this!!!!!!!!!!!!!!!!

any idea

RE: Expressions_Not_Match

Quote (thomas)

how can i get information like this!!!!!!!!!!!!!!!!
When in Expression menu press the F1 button... :)

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

HP Zbook15
Intel(R) Core(TM) i7-4800MQ
CPU @ 2.70 GHz Win7 64b
Nvidia K1100M 2048 MB DDR5

RE: Expressions_Not_Match

(OP)
Got it brother

thanks again @ nutace (Mechanical


Best regards
Thomas Roman

RE: Expressions_Not_Match

(OP)
thanks for the video @ vnmold86

Best regards
Thomas Roman

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