Revit 2026 API
Direct |
Find a DirectShapeType element by definition id. The element will be used for creating instances of that definition.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ElementId FindDefinitionType( string id )
Public Function FindDefinitionType ( id As String ) As ElementId
public: ElementId^ FindDefinitionType( String^ id )
member FindDefinitionType : id : string -> ElementId
Parameters
- id String
- Definition id. Expected to be unique.
Return Value
ElementIdElement id of a DirectShapeTypeElement
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
See Also