Constructs a new instance of the FilterDialog class,
while setting the name of the new ParameterFilterElement to be created and selected for editing.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:
2015
Syntax
| C# |
|---|
public FilterDialog(
Document doc,
string name
) |
| Visual Basic |
|---|
Public Sub New ( _
doc As Document, _
name As String _
) |
| Visual C++ |
|---|
public:
FilterDialog(
Document^ doc,
String^ name
) |
Parameters
- doc
- Type: Autodesk.Revit.DB..::..Document
The document that owns the FilterElements displayed and edited in the dialog.
- name
- Type: System..::..String
The user-visible name for the new ParameterFilterElement.
Remarks
Exceptions
| Exception | Condition |
|---|
| Autodesk.Revit.Exceptions..::..ArgumentException |
name is an empty string.
-or-
name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~".
-or-
The given value for name is already in use as a filter element name.
|
| Autodesk.Revit.Exceptions..::..ArgumentNullException |
A non-optional argument was null
|
See Also