2025 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 Dispose() None (Inherited from FilterRule ) FilterRule
M ElementPasses(Element) Boolean Derived classes override this method to implement the test that determines whether the given element passes this rule or not. (Inherited from FilterRule ) FilterRule
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetEvaluator() FilterNumericRuleEvaluator Gets the evaluator that implements the test for this rule. (Inherited from FilterNumericValueRule ) FilterNumericValueRule
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
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. (Inherited from FilterRule ) FilterRule
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M SetEvaluator(FilterNumericRuleEvaluator) None Sets the evaluator that implements the test for this rule. (Inherited from FilterNumericValueRule ) FilterNumericValueRule
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
M UsesLevelFiltering(Document, ElementId) Boolean This function checks if a parameter uses level filtering.
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity. (Inherited from FilterRule ) FilterRule
P RuleValue ElementId The user-supplied value against which values from a Revit document will be tested.