Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX5 will not accept less than or greater than expression

Status
Not open for further replies.

Tripton

Industrial
Feb 28, 2010
2
I am trying to create a conditional expression and find that using the less than symbol gives the following error: Dimension mismatch (binary operation)
Attempt to use the "<" operation on the Length and Angle
Expression: arm_angle = if(arm_length<100)(102)else(90)

This expression was taken right out of CAST. It will accept the = symbol but not the < or > symbols.

Any help would be greatly appreciated. Thanks
 
Replies continue below

Recommended for you

I can't explain exactly why this works this way, but you can't mix units inside a logic command. So the workaround is to create another Expression which has units 'Constant' equal to your Length Expression and then use THAT expression in the logic command. I know it feels like a bit of a kludge, but it's the best that I can offer you.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Thank you so much John. I don't know how I missed making the arm_length expression constant in CAST. It makes perfect sense now and worked out perfectly. It's little things like this that really make NX overwhelming to some of us new guys. I struggled for hours and even recreated the model several times before your help. Again, thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor