2023 Class
Changes 2
C

FilterElementIdRule

Description:
A filter rule that operates on ElementId values in a Revit project.
Remarks:
When GetRuleParameter. returns a parameter that UsesLevelFiltering(Document, ElementId), then 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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.FilterRule
    Autodesk.Revit.DB.FilterValueRule
      Autodesk.Revit.DB.FilterNumericValueRule
        Autodesk.Revit.DB.FilterElementIdRule
Name Return Type Description Inherited From
C FilterElementIdRule(FilterableValueProvider, FilterNumericRuleEvaluator, ElementId) None Constructs an instance of FilterElementIdRule.
Name Return Type Description Inherited From
M UsesLevelFiltering(Document, ElementId) bool This function checks if a parameter uses level filtering.
M Dispose() None Releases all resources used by the FilterRule
M ElementPasses(Element) bool Derived classes override this method to implement the test that determines whether the given element passes this rule or not. FilterRule
M GetRuleParameter() ElementId Returns the ElementId of the parameter associated to this FilterRule if there is one, or invalidElementId if there is no associated parameter. FilterRule
M GetEvaluator() FilterNumericRuleEvaluator Gets the evaluator that implements the test for this rule. FilterNumericValueRule
M SetEvaluator(FilterNumericRuleEvaluator) None Sets the evaluator that implements the test for this rule. FilterNumericValueRule
Name Return Type Description Inherited From
P RuleValue ElementId The user-supplied value against which values from a Revit document will be tested.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. FilterRule