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)
| parameter | description |
|---|---|
| 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
| exception | condition |
|---|---|
| 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
- interface IElement
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels