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
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
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
thanks for help man,
& one more thing
how can i get information like this!!!!!!!!!!!!!!!!
any idea
RE: Expressions_Not_Match
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
https://www.youtube.com/watch?v=tm59xwUMxwM
RE: Expressions_Not_Match
thanks again @ nutace (Mechanical
Best regards
Thomas Roman
RE: Expressions_Not_Match
Best regards
Thomas Roman