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