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.

How to request values of custom properties in gdl?

I can request the list of all custom properties:

n = REQUEST ("PROPERTIES_OF_PARENT", "", parentProperties)
This gives the guid, GroupName, PropertyName. So I know the basic info about the required property.
 
But the value request requires "id", here:
mm = REQUEST("PROPERTY_VALUE_OF_PARENT","id",4,0,0,kod)
If I put the guid there, it shows an error message.
 
I cannot find any other approach.
 
 
Or maybe the "PROPERTY_VALUES_OF_PARENT" would be good, but that uses DICT dictionaries - and in the gdl reference guide you can't find proper examples of how to use those dictionaries.

 

 

And actually, the opposite direction would be good also: to get the gdl parameters in custom properties.
14 REPLIES 14

Nope. Unfortunately.

But the object works, after all; and updates with opening.

If your script to request the values is in the parameter script of the object, I think you have to open the object to force the parameter script to run.

But there is a command you could add to a menu or toolbar in your Work Environment.

 

BarryKelly_0-1747902331155.png

 

That might work?

I takes a little while to run though.

 

Or maybe have the script in the Master script and the rebuild & regenerate might work (I am not sure about that one).

 

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

It works well. Takes a quite while; but works. Thanks!

 

The master script workaround is a little bit misterious to me. Never used. The gdl reference guide is not so helpful to me. Do you know a good, comprehensive summary about it?


@talmacsi_petrolterv wrote:

Do you know a good, comprehensive summary about it?


No, sorry.

It is just the master script is always run, even on a screen refresh I believe.

The parameter script is only run when you change a parameter, i.e. open the object settings.

 

Most things in the parameter script work in the master script as well as far as I know.

 

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

Would you mind sharing the Master Script and the 2D Script? I'm with the same problem but can't solve this.