ElementDataModel.GetDesignByUniqueId method
Returns a design by its system-generated unique persistent Id (see UniqueId). Unlike GetDesignsBySourceId, this lookup is unambiguous. Mirrors GetElementByUniqueId for the design axis.
public IDesign GetDesignByUniqueId(string uniqueId)
| parameter | description |
|---|---|
| uniqueId | The unique persistent Id of the design. |
Return Value
The design 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 IDesign
- class ElementDataModel
- namespace Autodesk.DataExchange.DataModels