Revit 2026 API
Filter |
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: 26.0.4.0 (26.0.4.0)
Syntax
public FilterDialog( Document doc, string name )
Public Sub New ( doc As Document, name As String )
public: FilterDialog( Document^ doc, String^ name )
new : doc : Document * name : string -> FilterDialog
Parameters
- doc Document
- The document that owns the FilterElements displayed and edited in the dialog.
- name String
- The user-visible name for the new ParameterFilterElement.
| Exception | Condition |
|---|---|
| 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. |
| ArgumentNullException | A non-optional argument was null |
Show the dialog with the Show() method after setting the desired options.
See Also