cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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
Hero

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 | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

8 REPLIES 8
Solution
runxel
Hero

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 | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «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.

SeaGeoff
Ace

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-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester

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
Graphisoft SE, Budapest

Is it work with Markers or only with Labels?

Works in labels & markers.