Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Simple Angle expression

Status
Not open for further replies.

hnam2003

Automotive
Joined
Mar 29, 2014
Messages
23
Location
US
Hi,
I am trying to write the simple expression ( L and K ) for the angle that i will use it in sketch (NX10). But it did not work.
Could you guy please point out what is wrong in my expression? Some how the value is always 0 degree.

Thanks.
 
 https://files.engineering.com/getfile.aspx?folder=e9f9c524-8154-4c96-993d-f727b66f0855&file=Angle_expression.jpg
What is the "type" of expression, constant, linear, etc.?

NX 12.0.1.7 Windows 10
 
I think what you are seeing is the result of trying to compare 2 floating point numbers. Due to the way computers store the numbers, it is difficult to test 2 real numbers (as opposed to integers) for equality. I've rewritten your equation below to use greater than and less than tests rather than equality. I think the results agree with your intentions.

NX_expression_2020-06-10_tffqec.png


www.nxjournaling.com
 
Multicaducer. It is number type.
Cowski: Thank you i will try your suggestion next.
 
Multicaducer: It works after I changed Type from Angle to Constant. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top