Got a minute? We appreciate your feedback:

Graphisoft Learn survey
GDL
About building parametric objects with GDL.

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

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...

AC25 5010 / AC26 4019 on window 11
1 ACCEPTED SOLUTION
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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

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

AC25 5010 / AC26 4019 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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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 ^^

AC25 5010 / AC26 4019 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.

AC25 5010 / AC26 4019 on window 11

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!