We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-02-16 04:41 AM - last edited on 2024-09-24 10:23 AM by Doreena Deng
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.
2024-02-16 04:45 AM
You just have to convert the number to text.
Search the gdl reference guide for STR.
2024-02-21 03:20 PM - edited 2024-02-21 03:25 PM
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)