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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.

GDL: Interactions with project classifications and properties

Otavio Augusto
Certified Trainer

Hello,

 

I was wondering if anyone know how to pull reference from a classification of the project in a GDL object.

The objective is to automatize the finish code of a zone, to give automatcly a number by the position of an option in a classification proprierty.

 

Thanks guys!

 

8 REPLIES 8
Lingwisyer
Guru

Have you tried the Request "Properties_Of_Parent"?

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

I did, but it enables the option to chose a property from a list, right?

I would like to link the number of the options in a specific property of the project. Is there a way to pre-determine which property i want using something like it GUID? Or does it require more than just GDL commands?

I am not sure what you are trying to do.

You can request the property value by using the property ID (name).

You will get the value of the property for that object. you won't get the list of options available.

 

Maybe if you can give an example of what you are trying to do, we can help more.

 

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

we have this zone stamp, in which we chose the finishes for the ambient, as shown in img 2 by it's classification and propertys, but the number that is shown in the stamp need to be inputed manually...

i would like to automatize the number shown, by the choice of the property.

 

is there a way to do that? 


Sem Título-1.pngSem Título-2.png

To read the value of the property you show in image 2, you need to use (I think) either ...

 

n = REQUEST("PROPERTIES_OF_PARENT", propertyType, parentProperties)

 

or

 

n = REQUEST("PROPERTY_VALUE_OF_PARENT", "id", type, dim1, dim2, propertyValues)

 

I am not sure which without experimenting myself.

 

But that will be the entire name in the property value.

So you will need to SPLIT the value to just get the "01"  (or maybe split it further to get just the second character "1" ?).

Then you display that split value in your stamp instead of the value list where you choose the number.

 

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

that almost worked @Barry Kelly , i actualy needed to set a property stamp with the property that i need and save it as a custom stamp to get to know what is the property ID to do that, but there's some projects that i can't get the property ID by doing it, how can i know what the property ID of a specifc property is?

I am not sure but isn't it ID just the property name?

 

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

Unfortunally not Barry, but i find in a old topic that you can make a textbox and tag the property with autotext and then save it as an object or a label, and in the 2D script, it will give the GUID of the property!

 

With that i was able to make a call for the "Property label 26" label and use it the way i wanted!!!

Thx for the help man!