DeleteElementProperty
Makes a property definition unavailable for the given element.
def DeleteElementProperty (elemGuid, definitionGuid) -> None
Parameters
- elemGuid
- [in] GUID of an Element.
- definitionGuid
- [in] GUID of the Property Defition.
Return Values
This function does not have any return values.
Remarks
This function is analogous to the ACAPI_ElementList_DeleteProperty function of the C++ API.
Example
# Delete properties which have default value for the clicked element elemGuid = ClickElement () for d in GetElementPropertyDefinitionDictionary (elemGuid, API_PropertyDefinitionFilter_UserDefined).values (): p = GetElementProperty (elemGuid, d.guid) if p.isDefault == True: DeleteElementProperty (elemGuid, d.guid)
Requirements
- Version: Python API 0.1 or Later
- Module: GS
See Also
GetElementList
GetElementPropertyDefinitionDictionary,
GetElementProperty,
SetElementProperty,
AddElementProperty