Revit 2025 API
Filter |
Sets the rule's categories.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool SetCategories( ICollection<ElementId> categories )
Public Function SetCategories ( categories As ICollection(Of ElementId) ) As Boolean
public: bool SetCategories( ICollection<ElementId^>^ categories )
member SetCategories : categories : ICollection<ElementId> -> bool
Parameters
- categories ICollectionElementId
- The categories.
Return Value
BooleanTrue if the set of categories was changed, false if no change was necessary.
| Exception | Condition |
|---|---|
| ArgumentException | One of the given categories is not filterable |
| ArgumentNullException | A non-optional argument was null |
See Also