Hi! I've already given some time to check the previous answers within GDL center and previous topics.
Is there a way to predefine the parameter to search by AC Property string name? Bring something out of teamwork or placing it at it will reset Property unique IDs, making all of the custom labels loose their previously chosen properties.
The only other way I could think of solving that is placing the request at a Master, so all child labels would read the same parameter and wouldn't loose it.
n = REQUEST ("Property_Name", myProperty, _typeName, _groupName, _propertyName)
Archicad User Since 2013
Experimenting with API
name = "Fire Resistance Rating"
n = REQUEST ("Properties_Of_Parent", "", _parentProperties)
for i = 1 to vardim1(_parentProperties) step 4
_propertyGuid = _parentProperties[i]
_typeName = _parentProperties[i+1]
_groupName = _parentProperties[i+2]
_propertyName = _parentProperties[i+3]
if (_propertyName = name) then
! Use the found property here
With the other request you mean "Property_name"? If so, then I think that would not be necessary, since you already have all the same data and can assume that the parent element has the property (since it was found in its properties list).
Also now that I think of it I don't understand fully understand the context of your question. Because once a property is created, I think it keeps the same GUID. Or does that change when working with teamwork?