GetBuiltInCategoryDisciplines Method


Category Get Built In Category Disciplines Method

Get the ForgeTypeId identifier for each discipline for the given built-in category.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public static IList<ForgeTypeId> GetBuiltInCategoryDisciplines(
	BuiltInCategory categoryId
)

Parameters

categoryId BuiltInCategory
The built-in category.

Return Value

IList ForgeTypeId
The identifiers of disciplines for the given built-in category.
Exceptions
Exception Condition
ArgumentException categoryId is not a valid built-in category. See Category.IsBuiltInCategoryValid(BuiltInCategory).
Remarks
The returned list contains one or more identifiers of disciplines that can be compared with [!:Autodesk::Revit::DB::DisciplineTypeId] . The given BuiltInCategory value must be valid according to Category.IsBuiltInCategoryValid(BuiltInCategory) .
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →