2018-12-13 03:02 PM - last edited on 2022-10-04 04:48 PM 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-15 09: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);
2018-12-14 02:46 PM
2018-12-15 09: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);