SetIgnoredCategoryIds Method


Sets the ElementIds for Category elements which are ignored by route calculation.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2020

Syntax

C#
public void SetIgnoredCategoryIds(
	ICollection<ElementId> categoryIds
)
Visual Basic
Public Sub SetIgnoredCategoryIds ( _
	categoryIds As ICollection(Of ElementId) _
)
Visual C++
public:
void SetIgnoredCategoryIds(
	ICollection<ElementId^>^ categoryIds
)

Parameters

categoryIds
Type: System.Collections.Generic ICollection ElementId
The ids of Categories to be ignored by route calculation.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException One or more ElementIds in categoryIds are not valid Category element ids.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

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 →