cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Franks3y
Participant

Custom Label object inserts in wrong location

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

 

 

 


Insertion Point.JPG
1 Solution

Accepted Solutions
Stefan L_
Rockstar

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 ...-29GER, WIN11

Go to post

2 Replies 2
Stefan L_
Rockstar

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 ...-29GER, WIN11
Franks3y
Participant

Thanks Stefan, 

 

This is exactly what I am after, Cheers !

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!