Categories.Item
Description:
Retrieves a category object corresponding to a BuiltInCategory id.
Retrieves a category object corresponding to a BuiltInCategory id.
Remarks:
Unlike the method that obtains categories by name, this routine will obtain the handle even of built-in subcategories. Since 2016 it is advised to use either [!:Autodesk::Revit::DB::Category::GetCategory(Document,BuiltInCategory)] or [!:Autodesk::Revit::DB::Category::GetCategory(Document,ElementId)] method from Category class.
Unlike the method that obtains categories by name, this routine will obtain the handle even of built-in subcategories. Since 2016 it is advised to use either [!:Autodesk::Revit::DB::Category::GetCategory(Document,BuiltInCategory)] or [!:Autodesk::Revit::DB::Category::GetCategory(Document,ElementId)] method from Category class.
Overloads (2):
Item(BuiltInCategory)
public virtual Category this[
BuiltInCategory categoryId
] { get; }
-
categoryId