cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Documentation
About Archicad's documenting tools, views, model filtering, layouts, publishing, etc.
SOLVED!

help with expression for roof pitch

RandyC
Advocate
With the new expressions - we should be able to create a label that gives - roof slope -- ie: 4/12 , 5/12 etc.
It should work with-- roof slope = tan(roof_angle)*12
I am unsure of what syntax to use,or if it is possible -- any ideas ?
Thanks Randy
ArchiCAD 4.5 --- 27 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
poco2013
Mentor
If you want The pitch format of 6/12 etc., the expression would be:

CONCAT ( STR ( TAN ( {Property:Roof/Pitch} ) * 12, 0 ), "/12 - Pitch" )

Both the expression and the element must have the same classification.
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27

View solution in original post

2 REPLIES 2
Solution
poco2013
Mentor
If you want The pitch format of 6/12 etc., the expression would be:

CONCAT ( STR ( TAN ( {Property:Roof/Pitch} ) * 12, 0 ), "/12 - Pitch" )

Both the expression and the element must have the same classification.
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
RandyC
Advocate
Thank you , worked perfect -- I will need to get my head around classification.
ArchiCAD 4.5 --- 27 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9