Is this Really the way to calculate Hypotenuse?

Is this Really the way to calculate Hypotenuse?

Anonymous
Not applicable
1,070 Views
4 Replies
Message 1 of 5

Is this Really the way to calculate Hypotenuse?

Anonymous
Not applicable

sqrt(( ( ( Height * Height ) / 1 mm ) + ( ( Width * Width ) / 1 mm ) ) / 1 mm) * 1 mm

 

Because Parameters can't be referenced from Driven dimensions!

That's the only way it solves, give or take some Parentheses, but I'd prefer to be VERY specific about order of operations when the system works this badly! Have a guess at how many guesses of *1 and /1 it takes to get it to solve! AND every unit is already mm
Someone needs to go back to school.. Not for Math, but for Coding! Because users need to unlearn what they've learned about units and simple equations to use Fusion360
Now if I needed to parametrise the dimensions on a Scalene triangle as in the image I'd be better off plunging my face into a molten hot bowl of Alphabetti Spaghetti and using the result of what's seared to my once baby soft flesh.

 

Isn't CAD supposed to simplify these things?


It looks like a lot of effort has been put into the system demanding you divide by 1 after User defined parameters but must multiply by 1 after a Static value.  SMH!

a²+b²=c²

0 Likes
1,071 Views
4 Replies
Replies (4)
Message 2 of 5

jhackney1972
Consultant
Consultant

You can create a much simpler formula in for finding the hypotenuse of a triangle by keeping your parameter table units to "unitless".  The result of the formula, the hypotenuse, can be applied to your sketch entity by referencing your calculated answer variable and adding "* 1".  This will pick up the units of your sketch and apply the value.  Much simpler way of doing this calculation.  I also noticed you did not use the standard Fusion 360 Functions in your equation, that would make it simpler also.

 

Unitless Parameters.jpg

 

John Hackney, Retired
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 3 of 5

g-andresen
Consultant
Consultant

Hi,

1. if you purge the quantities of their units and finally add them back, there is no problem.
2. i would like to see the situation from your screenshot in reality to analyze the ratios of lengths and angles.
Can you split the file directly or recreate the situation?

 

günther

0 Likes
Message 4 of 5

Anonymous
Not applicable

Thanks for that! Hadn't considered Unitless drawing.
I missed the pow() .. Been exploring Cos,Tan etc so got blurry eyed I think! School never drilled Trigonometry into us around here. Or I had "Tummy Hurts" that day 😇

 

Would you parametrise dimensions/calculations that would otherwise be Driven dimensions too?
I'm attempting to generate steps(a staircase of blocks) between 2 corners of 2 cubes randomly placed and would like the Extents to update on a Pattern along Path. I'm sure I can draw right angled triangles in any direction....

 

Recreate my image by making 2 rectangles at arbitrary points in a sketch.. Extrude both and make a plane between 3 points, then draw the triangle using Intersected geometry references.
1 corner of one cube to 2 of the other.

0 Likes
Message 5 of 5

jhackney1972
Consultant
Consultant

I add parameters when needed in my design so I cannot give you are particular example at this time.  When you get your design to a stage where you need help with parameters, or anything else, just return to the forum, post your question and your "model" and I am sure the many talented forum users can help you out.  Before you jump to conclusions about the software's ability be sure to ask, there are a lot of hidden methods of doing things.

John Hackney, Retired
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes