FileOpenDialog Constructor


Constructs a new instance of a File Open dialog.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public FileOpenDialog(
	string filter
)
Visual Basic
Public Sub New ( _
	filter As String _
)
Visual C++
public:
FileOpenDialog(
	String^ filter
)

Parameters

filter
Type: SystemString
The filter string. See the remarks for Filter for details.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The input filter string does not meet the minimal requirements for a valid filter string.
Autodesk.Revit.ExceptionsArgumentNullException 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 →