Gets the filters applied to the view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public ICollection<ElementId> GetFilters()
Return Value
ICollection<ElementId>
The ElementIds of the Filters.
Exceptions
| Exception | Condition |
|---|
| InvalidOperationException |
The element "this View" does not belong to a project document.
-or-
The view type does not support Visibility/Graphics Overriddes.
|
Remarks
Note that this method returns filters in a set sorted according to their ids.
To get filters in the order they are applied to the view use
GetOrderedFilters().
See Also
Reference