| Revit 2022 API |
| LogicalAndFilter Constructor (ElementFilter, ElementFilter) |
| LogicalAndFilter Class See Also |
Constructs a new instance of the logical filter with two input filters.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since:
2011
Syntax
| C# |
|---|
public LogicalAndFilter( ElementFilter filter1, ElementFilter filter2 ) |
| Visual Basic |
|---|
Public Sub New ( _ filter1 As ElementFilter, _ filter2 As ElementFilter _ ) |
| Visual C++ |
|---|
public: LogicalAndFilter( ElementFilter^ filter1, ElementFilter^ filter2 ) |
Parameters
- filter1
- Type: Autodesk.Revit.DB..::..ElementFilter
The first filter.
- filter2
- Type: Autodesk.Revit.DB..::..ElementFilter
The second filter.
Remarks
The input filters will be copied.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |