Expression Formula frustration
Expression Formula frustration
(OP)
Ok, to some this is going to seem simple but its driving me nuts... (Yeah it was a short drive)
I am trying to simply do this in NX 7.5.
if diameter = ....then.... sta =
16.0 - 23.99 ....then.... 0.50
24.0 - 29.99 ....then.... 0.75
30.0 - 35.99 ....then.... 1.00
36.0 - 41.99 ....then.... 1.50
42.0 - 47.99 ....then.... 2.00
48.0 - 53.99 ....then.... 2.50
54.0 - 61.99 ....then.... 3.75
Help Help me Ronda!!
I am trying to simply do this in NX 7.5.
if diameter = ....then.... sta =
16.0 - 23.99 ....then.... 0.50
24.0 - 29.99 ....then.... 0.75
30.0 - 35.99 ....then.... 1.00
36.0 - 41.99 ....then.... 1.50
42.0 - 47.99 ....then.... 2.00
48.0 - 53.99 ....then.... 2.50
54.0 - 61.99 ....then.... 3.75
Help Help me Ronda!!





RE: Expression Formula frustration
If ( diameter<16 )
Then ( 0 )
Else If ( diameter<24 )
Then ( .5 )
Else If ( diameter<30 )
Then ( .75 )
Else If ( diameter<36 )
Then ( 1 )
Else If ( diameter<42 )
Then ( 1.5 )
Else If ( diameter<48 )
Then ( 2 )
Else If ( diameter<54 )
Then ( 2.5 )
Else If ( diameter<62 )
Then ( 3.75 )
Else ( 0 )
Daniel Sikes
Design Engineer
Young Touchstone
NX 8.0.3.4
RE: Expression Formula frustration
RE: Expression Formula frustration
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: Expression Formula frustration
Do you know if I can add this value to a dimension's actual tolerance instead of using a note to display the value?
RE: Expression Formula frustration
In this case the text string in the editor, which you would enter as 'Appended Text', would be: <T+<X1.3@tol>!-0.005> where 'tol' is the expression whose value is .002 and where the '1.3' is controlling the formatting of the numerical value, with the '1' indicating a leading zero (an 0 would have excluded the leading zero) and the '3' is controlling the number of decimal places.
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: Expression Formula frustration
Daniel Flora
RE: Expression Formula frustration
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: Expression Formula frustration
RE: Expression Formula frustration
Note that there is nothing preventing you from creating a series of expressions in your Part Family model which represents that various tolerance values that you would like to eventually use in either a PMI or Drawing Dimension 'appended text' or inclustion in some table, just that you'd have to create the so-called 'tolerance' block using the techniques described earlier in this thread.
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: Expression Formula frustration
RE: Expression Formula frustration
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.