FileDialog Class


File Dialog Class

Base class supporting display of the dialog used to navigate to and select a file from Autodesk Revit.
Inheritance Hierarchy

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class FileDialog : IDisposable

The FileDialog type exposes the following members.

Properties
Name Description
Public property DefaultFilterEntry The default entry (from the filter) to be selected in the dialog.
Public property Filter The filter string representing a collection of extensions allowed by the dialog.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property Title The title to show on the dialog.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the FileDialog
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetSelectedModelPath Returns the selected file path chosen by the user.
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method Static member IsValidFilterString Determines if the input string is acceptable as input for a FileDialog filter string.
Public method Show Shows the dialog using the stored settings.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
See Also