We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

How can I get the zone name from label gdl?

LeeJaeYoung
Virtuoso

How can I get the zone name from label gdl?

ROOM_NAME is Room parameters (available for Zone Stamps)

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

!see ac25 built-in parameters
!

!2d script >>

n = REQUEST ( "Property_Value_Of_Parent", "Builtin.Zone_ZoneName", type, dim1, dim2, propertyValues) !see ac25 built-in parameters


!!define style....

text2 0,0,propertyValues

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1

View solution in original post

5 REPLIES 5
Solution

!see ac25 built-in parameters
!

!2d script >>

n = REQUEST ( "Property_Value_Of_Parent", "Builtin.Zone_ZoneName", type, dim1, dim2, propertyValues) !see ac25 built-in parameters


!!define style....

text2 0,0,propertyValues

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1

LeeJaeYoung_0-1655875518597.png

thank you
But when I do this, it doesn't link with the zone
n = 0, so no value appears.
It would be really appreciated if you could tell me the function for linking in the label.

AC27 on window 11

I found out while testing that the zone label 25 and zone could not be linked with the label tool.
Up to this point, I forgot to link with the label created when creating the zone.
thank you ^^

AC27 on window 11

see ac25 built-in parameters

: how can i see it?

 

propertyValues

: DIM propertyValues?, propertyValues[]??,propertyValues[]??

  Which one?

 

text2 0,0,propertyValues

:  Is it possible?   I can't do it now.   What should I study?

AC27 on window 11
Peter Baksa
Graphisoft
Graphisoft

Hi,

 

Property_Value_Of_Parent always returns a one-dimensional array. It also returns the array size dim1 and dim2. You have to interpret the array accordingly.

dim1 = 0, dim2 = 0: simple, scalar value at array[1]

As far as I know, property values can't be two-dimensional.

 

 

 

 

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest