Got a minute? We appreciate your feedback:

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

Custom Label object inserts in wrong location

Franks3y
Participant

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?

Insertion Point.JPG

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

 

 

 

1 ACCEPTED SOLUTION
2 REPLIES 2

Solution
Stefan L_
Advocate

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]

 

 

--
Stefan
AC ...-27, WIN10

Thanks Stefan, 

 

This is exactly what I am after, Cheers !

Start a new conversation!

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!