cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
SeaGeoff
Ace

Label Pointer Starting Point

Hello. I have a custom label that I typically use with the pointer turned off, but occasionally I want it on. When the pointer is enabled it anchors automatically to the edge of the label's bounding box as expected. But I have a separator line that is not always centered. I want to fix the starting point to the end of that line.

 

In the screenshot the bottom example (MAIN LEVEL) shows the label without a pointer. The middle example (UPPER LEVEL) shows the pointer when the separator line is centered. The top example (UPPER LEVEL w/ Custom Text) shows how the pointer stays centered when the separator is offset. That is the situation I want to correct.

 

I believe this is possible but so far I have not figured out how. Any help is appreciated, thanks.

 

Screenshot 2026-02-08 at 11.48.43 AM.png

Regards, Geoff Briggs
I & I Design, Seattle, USA
AC7-29, M1 Mac, OS Tahoe
Graphisoft Insider's Panel, Beta Tester
1 Solution

Accepted Solutions
SeaGeoff
Ace

That is exactly what I did. I coded two hotlines at equal distances above and below my separator line, triggered when the third line of text is active.

 

I will note that if your label offers the opaque text frame, as mine does, you need to account for the offset parameter or it will throw off the center point again.

 

I was hoping there is a more direct way to handle this, but all in all not too difficult. Thanks everyone.

Regards, Geoff Briggs
I & I Design, Seattle, USA
AC7-29, M1 Mac, OS Tahoe
Graphisoft Insider's Panel, Beta Tester

Go to post

8 Replies 8
Barry Kelly
Moderator

The leader line can only anchor to the top, centre or bottom of the label box.

I am not sure that there is anything you can do in GDL to change that.

 

One thing I can think of though is that it is the extra line of custom text that is that is moving the position of the line in the label.

Maybe when you add the custom text line, you also allow for the contents to me moved down by the same line height so everything is still centred.

Effectively adding a blank line of text to the top of the label as well.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

If you use Textblock, you could set a matching Fixed_Height to both your upper and lower text determined by your maximum number of lines between the two. If you have variable text sizes, then you would just need to calculate that too.

 

Ling.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
SeaGeoff
Ace

Thanks for your suggestions. I will look into both.

 

As for a GDL solution, the procedure at this bottom of this page seems to indicate that you can designate the starting point for a the pointer, but I have not been able to get it work.

 

https://gdl.graphisoft.com/reference-guide/parameters-for-labels/

Regards, Geoff Briggs
I & I Design, Seattle, USA
AC7-29, M1 Mac, OS Tahoe
Graphisoft Insider's Panel, Beta Tester
Barry Kelly
Moderator

I think that still only allows you to set top, centre, bottom and bottom with underscore.

Your label is off-centre because of the extra line of custom text, that is why it doesn't line up.

I think you need to allow for an 'empty' custom line of text above as well when you have the custom text below, so it re-centres your marker.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Jochen Suehlo
Moderator Emeritus

If you choose not to use the frame created by the label and create your own frame instead, you can place a ghost point or ghost line outside the frame, calculated so that the label pointer then hits your off-center line exactly.

RECT2 0, 0, 4, 2
LINE2 0, 0.8, 4, 0.8
!HOTSPOT2 0, - 0.4
HOTLINE2 0, -0.4, 4, -0.4
Jochen Suehlo . AC12-29 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
SeaGeoff
Ace

That is exactly what I did. I coded two hotlines at equal distances above and below my separator line, triggered when the third line of text is active.

 

I will note that if your label offers the opaque text frame, as mine does, you need to account for the offset parameter or it will throw off the center point again.

 

I was hoping there is a more direct way to handle this, but all in all not too difficult. Thanks everyone.

Regards, Geoff Briggs
I & I Design, Seattle, USA
AC7-29, M1 Mac, OS Tahoe
Graphisoft Insider's Panel, Beta Tester
Lingwisyer
Guru

Using a Hotline introduces faux snapping points...

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
SeaGeoff
Ace

It does introduce snapping points but they're not really faux. Not that different than turning on the bounding box hotspots. 

Regards, Geoff Briggs
I & I Design, Seattle, USA
AC7-29, M1 Mac, OS Tahoe
Graphisoft Insider's Panel, Beta Tester

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!