BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.
SOLVED!

GDL - How can I get user-defined properties?

Yohei Sekiguchi
Contributor

Hello.

 

I can retrieve the core and IFC properties with Application Query Options.
But I cannot retrieve the user-defined properties with this query.
The reference guide describes it as follows.

 

These queries don’t return user-defined properties.

 

Then how can I get user-defined properties?

 

Thank you🙂

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
runxel
Legend

Short story: You can't.

Long story: You can, if you're a label.

Then you can do "REQUEST('Property_Value_Of_Parent',....)"

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

8 REPLIES 8
Solution
runxel
Legend

Short story: You can't.

Long story: You can, if you're a label.

Then you can do "REQUEST('Property_Value_Of_Parent',....)"

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Yohei Sekiguchi
Contributor

Thank you for your reply, runxel.

Now I can retrieve user-defined properties with my label.

there is one "but"...You can map Your property to IFC property...and then use the routine You used for it.

Geoff Briggs
Mentor

I am coding a new Zone label for Archicad 25 and want to display the a user selected property in the label, typically floor finish. I used "REQUEST('Property_Value_Of_Parent',....)" to retrieve the Zone Name and Zone Number. But it does not appear that same method works for user defined properties.

 

Here's what works:

ZoneName = "ROOM"
DIM propertyValues[]
rrr = REQUEST ("Property_Value_Of_Parent", "Builtin.Zone_ZoneName", type, dim1, dim2, propertyValues)
IF rrr > 0 THEN ZoneName = propertyValues[1]

 

Here's what does not work. In this case rrr returns zero. (bot_prop is the parameter where you nominate the name of the property you want to display.)

ZoneProp = "FLOOR"
DIM propertyValues[]
rrr = REQUEST ("Property_Value_Of_Parent", bot_prop, type, dim1, dim2, propertyValues)
IF rrr > 0 THEN ZoneProp = propertyValues[1]

 

Any ideas? Thanks.

Regards,
Geoff Briggs
I & I Design, Seattle, USA
AC7-27, M1 Mac, OS 14.x

Hi, Geoff.

 

You should post this in the forum, not in this post.

I have not tried zone label yet.

Hi,

the UI nomenclature might be outdated but this is the way: https://gdl.graphisoft.com/tips-and-tricks/display-properties-with-labels

 

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

Is it work with Markers or only with Labels?

Works in labels & markers.

Learn and get certified!