Gets the ForgeTypeId identifying the given built-in category.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since: 2022
Syntax
C# |
---|
public static ForgeTypeId GetBuiltInCategoryTypeId( BuiltInCategory categoryId ) |
Visual Basic |
---|
Public Shared Function GetBuiltInCategoryTypeId ( _ categoryId As BuiltInCategory _ ) As ForgeTypeId |
Visual C++ |
---|
public: static ForgeTypeId^ GetBuiltInCategoryTypeId( BuiltInCategory categoryId ) |
Parameters
- categoryId
- Type: Autodesk.Revit.DB..::..BuiltInCategory
The built-in category.
Return Value
The identifier of the given built-in category.
Remarks
The given BuiltInCategory value must be valid according to
Category.IsBuiltInCategoryValid(BuiltInCategory).
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | categoryId is not a valid built-in category. See Category.IsBuiltInCategoryValid(BuiltInCategory). |