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

Insert a variable into a custom made 2D GDL object

Anonymous
Not applicable
Hi all,

I'm very new to GDL modelling so this is (I would imagine) a basic question. I have created a 2D object which consists of a circle and in the middle of the circle is a number. I would like the user to be able to define the number through the parametric settings but I don't know how to adjust the Archicad Generated GDL script to insert my variable. Currently all i'm getting is the name of the variable (number) but I would like the value to be shown. Below is my script and attached is a screen shot of my object settings. Any help in this would be fantastic!

Thanks

!
! Name : Number Label.gsm
! Date : Wednesday, 20 June 2012
! Version : 15.00
! Written by ArchiCAD
!

mul2 A/0.006000, B/0.006000
add2 -0.1629285901089, -0.4751558825301
pen 146
line_property 0
circle2 0.1659285901089, 0.4781558825301, 0.003
define style{2} "AC_STYLE_1" "Arial", 3, 0

paragraph "AC_PRG_2" 2, 0, 0, 0, 1
pen 7
set style "AC_STYLE_1"
"Number"
endparagraph
textblock "AC_TEXTBLOCK_2" 0, 2, 0, 1, 1, 1,
"AC_PRG_2"
richtext2 0.1659285901089, 0.4805130381563, "AC_TEXTBLOCK_2"

Screen Shot 2012-06-20 at 11.08.08.png
2 REPLIES 2
Anonymous
Not applicable
Try to use this nice object " Hotspot Switch.gsm" from Olivier Dentan.
You can enter numbers and letters in the circle.
If you open it, you can learn about GDL programming.
Anonymous
Not applicable
Great - thanks very much!