Applies the filter to a given element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2011
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document.
- id
- Type: Autodesk.Revit.DBElementId
The element id.
Return Value
True if the element is accepted by the filter. False if the element is rejected.Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |