Revit 2026 API
File |
The initial file name to be shown for this save operation.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public string InitialFileName { get; set; }
Public Property InitialFileName As String Get Set
public: property String^ InitialFileName { String^ get (); void set (String^ value); }
member InitialFileName : string with get, set
Property Value
StringThis would typically be a name derived by the application that matches the purpose of the save operation it intends to do. The user is permitted to alter the initial file name.
If the extension is not included, the file would be given the selected file extension for the active filter (when saved). If the extension is included, it will be ignored if the extension does not match one of the possible filter extensions. When not set, the file name entry field in the dialog will be blank and the user will have to enter a file name.

Exception | Condition |
---|---|
ArgumentException | When setting this property: initialFileName cannot include prohibited unprintable characters. |
ArgumentNullException | When setting this property: A non-optional argument was null |
See Also