GDL
About building parametric objects with GDL.
SOLVED!

I want to know the file name of the selected object.

LeeJaeYoung
Virtuoso

1. Object was selected as the label.
I want to know the file name of the selected object.

 

I'm trying to create an annotation label.
I want to put a different value in _stringValue with the name of the object.

 

LeeJaeYoung_1-1700152157683.png

 

Is it possible to create a two-tier label like this?
I know that letters can be created.
But I think there is no way to create a line.
I think I asked a question before...

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

The 'Property Label' is a label in the default library.

I am not sure what else I can tell you about it.

 

BarryKelly_0-1700190747212.png

 

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

View solution in original post

5 REPLIES 5
Barry Kelly
Moderator

Have you studied the 'Property Label'?

It might already do what you want.

 

BarryKelly_0-1700184862606.png

 

 

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
LeeJaeYoung
Virtuoso

I'm searching right now, could you give me a little more hints? ^^

AC27 on window 11
Solution

The 'Property Label' is a label in the default library.

I am not sure what else I can tell you about it.

 

BarryKelly_0-1700190747212.png

 

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

I'm studying label_content_macro, but I can't find it ^^

AC27 on window 11

I found it in "label_content_macro" with your help. ^^
With your help, I smile twice.

 

_dummy = request("Assoclp_Name", "", _compNameText)

 

n = REQUEST ("ASSOCLP_NAME", "", name)
Returns in the given variable the name of the library part associated with the label or marker object. For elements (Walls, Slabs, etc.) the name
is an empty string. Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning.

AC27 on window 11