GetBuiltInCategoryTypeId Method


Category Get Built In Category Type Id Method

Gets the ForgeTypeId identifying the given built-in category.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static ForgeTypeId GetBuiltInCategoryTypeId(
	BuiltInCategory categoryId
)

Parameters

categoryId BuiltInCategory
The built-in category.

Return Value

ForgeTypeId
The identifier of the given built-in category.
Exceptions
Exception Condition
ArgumentException categoryId is not a valid built-in category. See Category.IsBuiltInCategoryValid(BuiltInCategory).
Remarks
The given BuiltInCategory value must be valid according to Category.IsBuiltInCategoryValid(BuiltInCategory) .
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →