IElementDataModel.GetElementByUniqueId method
Returns an IElement by its system-generated unique persistent Id (see UniqueId). Unlike GetElementsBySourceId, this lookup is unambiguous even when multiple elements share a SourceId.
public IElement GetElementByUniqueId(string uniqueId)
| parameter | description |
|---|---|
| uniqueId | The unique persistent Id of the element. |
Return Value
The IElement with the specified unique Id, or null when not found or the underlying asset is deleted.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when uniqueId is null. |
| ArgumentException | Thrown when uniqueId is empty. |
See Also
- interface IElement
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface