ElementDataModel.DeleteElementsBySourceId method
Deletes every element that shares the given SourceId and returns how many were deleted. Use this when a SourceId may be shared by multiple elements.
public int DeleteElementsBySourceId(string sourceId)
| parameter | description |
|---|---|
| sourceId | The element SourceId to delete all matches for. |
Return Value
The number of elements deleted (0 when none match).
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when sourceId is null. |
| ArgumentException | Thrown when sourceId is empty. |
See Also
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels