2018-12-13
06:02 AM
- last edited on
2022-10-04
07:48 AM
by
Daniel Kassai
GS::Array<API_PropertyDefinition> propertyDefinitions; GS::Array<API_Property> properties; ACAPI_Element_GetPropertyDefinitions(guid, API_PropertyDefinitionFilter_UserDefined, propertyDefinitions); ACAPI_Element_GetPropertyValues(guid, propertyDefinitions, properties); ACAPI_Element_SetProperties(guid, properties)In the real code I modify the property values before writing them again, however even untouched (read properties, write properties) I get this error. For getting the property definitions and values I do not get any error with a curtain wall.
Solved! Go to Solution.
2018-12-14 05:46 AM
2018-12-15 12:50 AM
for (UIndex ii = properties.GetSize (); ii >= 1; --ii) { const API_Property& p = properties.Get (ii - 1); if (p.definition.canValueBeEditable == false || p.isEvaluated == false) properties.Delete (ii - 1); } ACAPI_Element_SetProperties (guid, properties);