FilterDialog Constructor (Document, String)


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: 23.0.0.0 (23.1.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

Show the dialog with the Show() method after setting the desired options.

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

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →