| Revit 2020.1 API | 
| PhaseFilter..::..Create Method | 
| PhaseFilter Class See Also | 
   Creates a new phase filter with default status presentation.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 20.0.0.0 (20.1.1.1)
Since: 
   2013
 Syntax
Syntax
| C# | 
|---|
| public static PhaseFilter Create( Document document, string name ) | 
| Visual Basic | 
|---|
| Public Shared Function Create ( _ document As Document, _ name As String _ ) As PhaseFilter | 
| Visual C++ | 
|---|
| public: static PhaseFilter^ Create( Document^ document, String^ name ) | 
Parameters
- document
- Type: Autodesk.Revit.DB..::..Document
 The document.
- name
- Type: System..::..String
 The name.
Return Value
The newly created phase filter. Remarks
Remarks
   The default status presentation is ShowByCategory for New status, and ShowOverriden for Existing,
   Demolished and Temporary statuses.
 Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions..::..ArgumentException | name is already in use. | 
| Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |