IElementDataModel.DeleteElementByUniqueId method
Deletes an element identified by its system-generated unique persistent Id.
public bool DeleteElementByUniqueId(string uniqueId)
| parameter | description |
|---|---|
| uniqueId | The unique persistent Id of the element to delete (see UniqueId). |
Return Value
True if the element was found and deleted; false when no element with the specified unique Id exists.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when uniqueId is null. |
| ArgumentException | Thrown when uniqueId is empty. |
See Also
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface