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)
| parameter | description |
|---|---|
| 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
| exception | condition |
|---|---|
| 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
- interface IElement
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface