Request

Response

    IElementDataModel.DeleteElementGeometries method

    Deletes multiple geometries from an element, each matched by its unique identifier, leaving the others intact.

    public IReadOnlyDictionary<string, bool> DeleteElementGeometries(IElement element, 
        IEnumerable<string> geometryUniqueIds)
    
    parameterdescription
    element The element that owns the geometries.
    geometryUniqueIds The unique identifiers of the geometries to delete.

    Return Value

    A map of each supplied unique identifier to whether it was found and removed (unknown identifiers map to false).

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when element or geometryUniqueIds is null.
    ArgumentException Thrown when a supplied unique identifier is null or empty, or when element is not an SDK-provided IElement implementation.

    See Also