We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

2d symbol with width x depth parameters as text

LOA
Participant

Hello! I'm creating a 2d symbol for a parking stall and I would like for the text on the symbol to show the width x depth of the stall based on the dimensions entered for the object. Is this possible? Please see attached.  

 

Screenshot (208).png

2 REPLIES 2

You just have to convert the number to text.

Search the gdl reference guide for STR.

Domagoj Lukinic
Booster

You can do that but I would code it directly in to textbox like this:

 

paragraph		"AC_PRG_2" 1,0,0,0,1
    STR{2} ("%cm",a)+"x"+STR{2} ("%cm",b)
endparagraph

 

no need to add extra variable. 

However if you really want it in a variable you still need to use STR{2} and also VALUES/VALUES{2} and then link that variable in text:

 

values "STALL_SIZE",STR{2} ("%cm",a)+"x"+STR{2} ("%cm",b)

 

 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!