We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-06-13 08:34 AM - edited 2023-06-13 08:36 AM
Hi Team,
I am new to GDL and am wondering if someone can point me in the right direction here.
I have created a new label from scratch to simply read a walls composite name and display the first code within a poly triangle.
It's all working smoothly except for the insertion point.
All other labels insert where I click except this one?
It's likely an issue between keyboard and chair. Hoping someone can assist 🙂
I have attached an empty pln with the object embedded if anyone can have a look at it.
Master Script:
HOTSPOT2 0, 0
HOTSPOT2 0.35, 0.6
HOTSPOT2 -0.35, 0.6
define style "Standard" AC_TextFont_1, AC_TextSize_1, 8, AC_TextStyle_1
frame_fill = 1
2D script
! Get Comp Code
string = WALL_COMPS_NAME
iDotPos = STRSTR (string, ":")
iOutput = STRSUB (string, 1, iDotPos - 1)
! Set Text Style - Defined under Master script
style "Standard"
! Write text box
TEXT2 0, 0.25, iOutput ! Should return prefix seperated from Composite name by a ":"
POLY2 4, frame_fill, 0, 0, 0.35, 0.6, -0.35, 0.6, 0, 0
Solved! Go to Solution.
2023-06-13 11:29 AM - edited 2023-06-13 12:23 PM
You need to eliminate the default leader line distance first.
Put this at the beginning of your 2D script:
add2 LABEL_POSITION[2][1],0
add2 LABEL_POSITION[3][1],LABEL_POSITION[3][2]
2023-06-13 11:29 AM - edited 2023-06-13 12:23 PM
You need to eliminate the default leader line distance first.
Put this at the beginning of your 2D script:
add2 LABEL_POSITION[2][1],0
add2 LABEL_POSITION[3][1],LABEL_POSITION[3][2]
2023-06-14 01:00 AM
Thanks Stefan,
This is exactly what I am after, Cheers !