Request

Response

    ElementDataModel.DeleteElementGeometry method

    Deletes a single geometry from an element, matched by its unique identifier, leaving the others intact.

    public bool DeleteElementGeometry(IElement element, string geometryUniqueId)
    
    parameterdescription
    element The element that owns the geometry.
    geometryUniqueId The unique identifier of the geometry to delete (see UniqueId).

    Return Value

    True if the geometry was found and deleted, otherwise false.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when element is null.
    ArgumentException Thrown when geometryUniqueId is null or empty, or when element is not an SDK-provided IElement implementation.

    See Also