pythaogras on Parameters? sqrt. i dont get it .. again!

pythaogras on Parameters? sqrt. i dont get it .. again!

Alexrose1942
Advocate Advocate
2,233 Views
5 Replies
Message 1 of 6

pythaogras on Parameters? sqrt. i dont get it .. again!

Alexrose1942
Advocate
Advocate

Hello 

how do I calculate this: x=3mm y=5mm now i want to know sqrt(3^2+5^2), i know there's units issue and i was trying to solve it by dividing it to 1 and multiply by 1 again, but i still get the error. 

I'm trying to get the sqrt of (Woodthickness^2)+(AxisLength^2)

 

hope i was clear

 

Thank you!

 

image.png

0 Likes
Accepted solutions (1)
2,234 Views
5 Replies
Replies (5)
Message 2 of 6

rohit.bapat
Autodesk
Autodesk

Hello @Alexrose1942

 

I will recommend using a combination of Unit Parameter (1mm) and parameters with No Units. Following is the parameters table I came up with. 

 

Parameter Table (Pythagoras).JPG

 

I hope this will be helpful.

 

Thank you,

Best Regards

 

Rohit Bapat





Rohit Bapat
Product Owner
Message 3 of 6

HughesTooling
Consultant
Consultant
Accepted solution

You can write it like this sqrt((Woodthickness/mm)^2 +(AxisLength/mm)^2 ) units in the parameter set to mm.

 

Mark

 

Edit just noticed * 1mm is automatically added when you press enter.

Mark Hughes
Owner, Hughes Tooling
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 4 of 6

Alexrose1942
Advocate
Advocate

@HughesTooling thanks, that's a simple solution that works. I don't get why the power (^) needs to be outside the parenthesis. 

0 Likes
Message 5 of 6

HughesTooling
Consultant
Consultant

I think it because you'd end up with square mm so you need to make the parameter unitless first. For example (2mm^2)/(mm*mm) works because dividing by (mm*mm) converts back to mm from the square mm created by 2mm^2.

 

Mark

Mark Hughes
Owner, Hughes Tooling
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
Message 6 of 6

joscha.wagner
Observer
Observer

But doesn't https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-76272551-3275-46C4-AE4D-10D58B408C20 say sqrt() can do any unit and will return unit^1/2? ist this just a Bug that is not fixed yet and if so when will it be fixed or is this expected behaviour and the support document is wrong. 

0 Likes