Revit 2026 API
DocumentGet |
Gets the default element type id with the given DefaultElementType id.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ElementId GetDefaultElementTypeId( ElementTypeGroup defaultTypeId )
Public Function GetDefaultElementTypeId ( defaultTypeId As ElementTypeGroup ) As ElementId
public: ElementId^ GetDefaultElementTypeId( ElementTypeGroup defaultTypeId )
member GetDefaultElementTypeId : defaultTypeId : ElementTypeGroup -> ElementId
Parameters
- defaultTypeId ElementTypeGroup
- The default element type id.
Return Value
ElementIdThe element type id.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
See Also