The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussion of non-graphical data: Properties, Property Expressions, Classifications, Interactive Schedules

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, Gordana Radonic, nbalogh, mnguyen, gkmethy

User avatar
By _Salmon
#322554
Hi,
i'm trying to convert from degrees to percent using this formula: "percent = tan (angle) x 100"
why doesn`t work?
thanks
Attachments
TAN.png
TAN.png (42.44 KiB) Viewed 176 times
User avatar
By Barry Kelly
#322557
If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?

(angle * 100) / 90 should give you the %

i.e. (45° * 100) / 90 = 50


Barry.
User avatar
By runxel
#322560
Barry Kelly wrote: Thu Feb 18, 2021 9:38 am If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?
That is a common misconception, but in reality of course 100% inclination equals 45°.
(It's easier to remember, if you know, what x% inclination even means: after 100 meters going "flat", how many meters did the slope go up? (= imagine a right-angled triangle) If the answer is "100", then this triangle obviously has 45° angle)

So, if all you got is the angle, then the inclination in percent is indeed the TAN of the angle * 100.

What's not working on the other side is the additional "STRCALUNIT".
Just use
"TAN ( {the Property of incl.} ) * 100"
and you're good to go.
Last edited by runxel on Fri Feb 19, 2021 9:47 am, edited 1 time in total.
User avatar
By _Salmon
#322561
thanks for your help!
But which expression i have to use to publish the % result in a string?
The error is still there
Attachments
error1.png
error1.png (309.99 KiB) Viewed 162 times
User avatar
By _Salmon
#322563
Ok. Solved!
So now i'm trying to quit those decimals in the pipe diameter.
Any idea?
Attachments
Inkedunits2_LI.jpg
Inkedunits2_LI.jpg (107.62 KiB) Viewed 156 times
User avatar
By Barry Kelly
#322596
runxel wrote: Thu Feb 18, 2021 10:21 am
Barry Kelly wrote: Thu Feb 18, 2021 9:38 am If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?
That is a common misconception, but in reality of course 100% inclination equals 45°.
(It's easier to remember, if you know, what x% inclination even means: after 100 meters going "flat", how many meters did the slope go up? (= imagine a right-angled triangle) If the answer is "100", then this triangle obviously has 45° angle)

So, if all you got is the angle, then the inclination in percent is indeed the TAN of the angle * 100.

Thanks runxel.
You can tell I don't use % for slopes. :shock:

Barry.
User avatar
By _Salmon
#322603
Done! Thanks Runxel

I started using archicad 21 years ago thanks to people like you.

I hope graphisoft takes into account the importance of the help service we need in the forum
Attachments
OK.png
OK.png (223.6 KiB) Viewed 78 times