We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-09-04 04:54 PM - last edited on 2024-09-17 12:48 PM by Doreena Deng
Is there anyone know how to get attributes of each element getting from ACAPI_Element_Get and verify whether it is in used or not?
2023-09-05 12:26 PM
hehey newbie, waht do you mean with "in use"? do you mean:
1. if the property is available for a element?
2. if the property has its default value?
1. works like this:
you call "ACAPI_Element_GetPropertyDefinitions" to get the available properties for a element
if a property is not available, you wont recive the propertydefinition of that property.
2. works like this:
with the call "ACAPI_Element_GetPropertyValues" you get the "API_Property" struct
this has a member called "isDefault;" that member tells you if the property has its default value or a custom value set by the user or a api call.
https://archicadapi.graphisoft.com/documentation/api_property
2023-09-05 02:38 PM - last edited on 2023-09-12 02:49 AM by Laszlo Nagy
Hi Joel Buehler,
Actually my query is related to Attribute, knowing each attribute if in used it has to be tie to the element that use it. After getting the element list, I want to check if the element use such attribute or not. For example below, how AC know such attribute is 'InUse'?.
I am not sure whether my understanding is correct or not.
Please advise.