rmarkham
Automotive
- Nov 14, 2014
- 12
I am trying to write a conditional statement to control bushing clearance size, based on bushing OD.
There are difference clearance requirements for different diameter bushings.
NX 8.5 if that makes a difference.
Below is the information:
Range_____clearance
0-3mm____0.010mm____________1
3-6_______0.012_______________2
6-10______0.015_______________3
10-18_____0.018_______________4
18-30_____0.021_______________5
30-50_____0.025____TOLERANCE_6
50-80_____0.030_______________7
80-120____0.035_______________8
expressions are set at:
"BUSHING_OD"____30
"TOLERANCE_6"___0.025
So this is what I have so far which works as intended:
"BUSHING_CLEAR" = IF((BUSHING_OD>=30)&&(BUSHING_OD<50))THEN(TOLERANCE_6)
"BUSHING_CLEAR" = IF((BUSHING_OD>=50)&&(BUSHING_OD<80))THEN(TOLERANCE_7)
"BUSHING_CLEAR" = ETC.....
What I want to do is CONNECT multiple if/then/else statements under the expression "BUSHING_CLEAR"
How do I connect multiple conditional statements together, is it possible?
Everything above 120mm should be set at TOLERANCE_8
There are difference clearance requirements for different diameter bushings.
NX 8.5 if that makes a difference.
Below is the information:
Range_____clearance
0-3mm____0.010mm____________1
3-6_______0.012_______________2
6-10______0.015_______________3
10-18_____0.018_______________4
18-30_____0.021_______________5
30-50_____0.025____TOLERANCE_6
50-80_____0.030_______________7
80-120____0.035_______________8
expressions are set at:
"BUSHING_OD"____30
"TOLERANCE_6"___0.025
So this is what I have so far which works as intended:
"BUSHING_CLEAR" = IF((BUSHING_OD>=30)&&(BUSHING_OD<50))THEN(TOLERANCE_6)
"BUSHING_CLEAR" = IF((BUSHING_OD>=50)&&(BUSHING_OD<80))THEN(TOLERANCE_7)
"BUSHING_CLEAR" = ETC.....
What I want to do is CONNECT multiple if/then/else statements under the expression "BUSHING_CLEAR"
How do I connect multiple conditional statements together, is it possible?
Everything above 120mm should be set at TOLERANCE_8