We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-06-28 10:54 PM - last edited on 2023-07-03 10:03 PM by Doreena Deng
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!
2023-06-29 06:09 AM
Have you tried the Request "Properties_Of_Parent"?
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2023-06-29 09:53 PM
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?
2023-06-30 02:58 AM
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.
2023-06-30 03:30 PM
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?
2023-07-03 03:17 AM
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.
2023-07-07 04:38 PM
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?
2023-07-10 04:36 AM
I am not sure but isn't it ID just the property name?
Barry.
2023-07-10 03:24 PM
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!