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

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

2d object labeling

Anonymous
Not applicable
In this case nb=a(length)

If labl then
DEFINE STYLE "mytext" "ariel", x_B, 1, 0
set style "mytext"
Text2 2", lw+1/2", x_A
endif

If labl2 then

DEFINE STYLE "mytext1" "ariel", x_B, 1, 0
set style "mytext1"
TEXT2 a-1'-2", lw+1/2", STR ("%ffi",nb)

If labl3 then
DEFINE STYLE "mytext2" "ariel", x_B, 1, 0
set style "mytext2"
TEXT2 a/2, lw+1/2", ............................................................


I'm trying to get this 3rd label to read

6x8x(Beam length) Beam over

I can't seem to combine the text with the length without "missing
parenthesis" errors.
4 REPLIES 4
Anonymous
Not applicable
4thorns wrote:
If labl3 then
DEFINE STYLE "mytext2" "ariel", x_B, 1, 0
set style "mytext2"
TEXT2 a/2, lw+1/2", ............................................................


I'm trying to get this 3rd label to read

6x8x(Beam length) Beam over

I can't seem to combine the text with the length without "missing
parenthesis" errors.
Try something like this:

var1 = "6x8x"
var2 = "Beam over"
TEXT2 x, y, var1 + BEAM_LENGTH + var2
where "BEAM_LENGTH" is the Beam length variable.

The following may also work (haven't needed to use it yet).
TEXT2 x, y, "6x8x" + BEAM_LENGTH + "Beam over"
Disclaimer: I am no GDL guru, but I've played around with it at times and there's probably cleaner codes out there. However, since nobody else replied...
Anonymous
Not applicable
Sergio,

The + sign was a HUGE plus!!!! I tried your suggestions and wound up tweaking one of them to get it to work. I grabbed the str("%ffi,nb) from one of the other labels above and put it between the + signs and "Bingo". Looking thru the help files I found out that ffi is feet & fractional inches. Unfortunately it wouldnt list the fractions on the first try so I'll have to work on that one. I'm pretty new to this so chances are I'll be posting more questions. I greatly appreciate your help. Thanks

If labl3 then
DEFINE STYLE "mytext2" "ariel", x_B, 1, 0
set style "mytext2"
TEXT2 a/2, lw+1/2", "6x8x"+STR ("%ffi",nb) +"Beam Over"
Anonymous
Not applicable
4thorns wrote:
Looking thru the help files I found out that ffi is feet & fractional inches. Unfortunately it wouldnt list the fractions on the first try so I'll have to work on that one.
The fractions depend on what accuracy you want. For 1/2" rounding try "%0.2ffi", and for 1/4" rounding try "%0.4ffi". Hope I'm getting this right. As for posting questions and being a beginner, take a number and join the line...
Anonymous
Not applicable
You're 2 for 2 Sergio!! Heres another. This is the first part of The Rafter 2_1 Property script. I'm trying to get the slope length of a rafter to show up in Interactive Schedule. I added the parameter lor..Length Of Rafter and made the type Length. I assume that L below is the sloped length. So far its not a happening thing. Any thoughts? And by the way, Thanks again.

S=ABS(G-90)

IF F=0 THEN
L=(A+O-(T/2)/COS(S))/COS(P)+H*TAN(P)+TAN(S)*(B/2)
ELSE
L=(A+O-(T/2)/COS(S))/COS(P)+H*TAN(P)+TAN(S)*(B/2)-(B/2)*TAN(P)

Length_Of_Rafter=l
lor = Length_Of_Rafter

Endif
!
IF R="Perpendicular" THEN L=L-H*TAN(P)
!
!COMPONENT "LENGTH", L, "m"
!COMPONENT "CROSS-SECTION WIDTH", B, "m"
!COMPONENT "CROSS-SECTION HEIGHT", H, "m"