Revit 2022 API |
FilterElementIdRule..::..UsesLevelFiltering Method |
FilterElementIdRule Class See Also |
This function checks if a parameter uses level filtering.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2022
Syntax
C# |
---|
public static bool UsesLevelFiltering( Document doc, ElementId parameterId ) |
Visual Basic |
---|
Public Shared Function UsesLevelFiltering ( _ doc As Document, _ parameterId As ElementId _ ) As Boolean |
Visual C++ |
---|
public: static bool UsesLevelFiltering( Document^ doc, ElementId^ parameterId ) |
Parameters
- doc
- Type: Autodesk.Revit.DB..::..Document
The document which owns the parameter.
- parameterId
- Type: Autodesk.Revit.DB..::..ElementId
The id of the parameter that will be tested to see if it uses level filtering.
Return Value
True if the parameter uses level filtering, false otherwise.
Remarks
When level-filtering parameters are compared, the comparisons will
first compare the values of the levels' elevations, then compare the
levels' names, and finally the levels' element ids to rank and sort the levels.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |