License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Labels: how to show a roof angle in percentage?

Anonymous
Not applicable
I want to create a roof label that shows the angle of the roof on a percentage base. I assume that the GDL string expression only shows the value of the angle as a gradi, as in the following expression: [STR(ROOF_ANGLE xxx)].
What is the mathematical expression for the percentage equivalent value?
3 REPLIES 3
Anonymous
Not applicable
TEXT2 0,1,STR(100*tan(ac_roofang),6,2)

OR

TEXT2 0, 0, STR ("%10.3dd",100*tan(ac_roofang) )

CU mirco
www.3dsmile.it
Anonymous
Not applicable
"CU mirco" wrote:
TEXT2 0,1,STR(100*tan(ac_roofang),6,2)

OR

TEXT2 0, 0, STR ("%10.3dd",100*tan(ac_roofang) )
!******************************************************
Graziae Mirco Sorgato!
It works fine...not with ac_roofang but with Roof_Angle:

STR(100*tan(ROOF_ANGLE), 6, 2)

Congratulations for your site and associated objects. They are very good!
I am exploring the "Ponte FL (m)". A very parametric bridge! How did you scripted the main hyperbolic pillars?

Jaime Neto
Archicad 9.0; PowerBook G4, 1Ghz Ram
Anonymous
Not applicable
Hi Jaime,
It works fine...not with ac_roofang but with Roof_Angle:
ac_roofangle is a parameter name inside :
Accessories extra and
Skylight.

But you asked Roof_Angle ..... You have right!! Sorry.

Congratulations for your site and associated objects. They are very good!
Thx for the sit .
For my objects instead ..... i think they're not good but even bad.

How did you scripted the main hyperbolic pillars
Is'nt a really hiperbolic form

A = 50
B = 30
ZZYZX = 20
aa=1.5
bb =1
cc =.5
render = 0
num3 = 15
path= 1

FOR iii = 1 to 2
konta = 0
FOR ii = 1 to 2
Konta = 1 + konta
For i = 180 to 270
IF pippo THEN num3 = 360-360*2/180*i ELSE num3 = 15
PUT -((a*3/4-A/10)*cos(i/2)), -(b/2-aa)*sin(i), -zzyzx*sin(i), num3
IF path THEN HOTSPOT -((a*3/4-A/10)*cos(i/2)), -(b/2-aa)*sin(i) , -zzyzx*sin(i)
NEXT i

For i = 90 to 180
IF pippo THEN num3 = 360*2/180*i ELSE num3 = 15
PUT a-((a*3/4-a/10)*cos(i/2)) ,(b/2-aa)*sin(i), zzyzx*sin(i), num3
IF path THEN HOTSPOT a-((a*3/4-a/10)*cos(i/2)) , (b/2-aa)*sin(i) , zzyzx*sin(i)
NEXT i

TUBE 7,nsp/4,1+2+4+8+16+32+64*render,
0,0,2,
-cc,bb/2,2,
0,bb,2,
aa,bb,2,
aa+cc,bb/2,2,
aa,0,2,
0,0,-1,
get (nsp)

Addy B
MULy - 1

NEXT ii
DEL konta * 2
pippo = 1
ADDy B*2
NEXT iii
DEL 2

CU mirco
www.3dsmile.it