Gets the ForgeTypeId identifying the given built-in category.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2022
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- categoryId
- Type: Autodesk.Revit.DBBuiltInCategory
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.ExceptionsArgumentException | categoryId is not a valid built-in category. See Category.IsBuiltInCategoryValid(BuiltInCategory). |