Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 5 column 14
---
GuiCommand:
Name: Std CloseActiveWindow
MenuLocation: File , Close
Workbenches: All
Shortcut: **Ctrl**+**F4**
SeeAlso: Std_CloseAllWindows
---
The Std CloseActiveWindow command closes the active window. To close a document all its windows must be closed.
- There are several ways to invoke the command:
- To close a document: repeat this for all windows belonging to it.
- When closing the last window of a document that has not been saved, a dialog box will prompt you to save it:
- Press the Save button to save the document. If required enter a filename first.
- Press the Discard button to discard the document and lose all changes.
- When the dialog box is displayed: press Esc or the Cancel button to abort the command.
- The command can only close docked windows.
- A document can also be closed by right-clicking it in the Tree view and selecting Close document from the context menu.
- The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.
See also:
To close a document use the closeDocument
method of the FreeCAD application. For a scripting example see Std New.
{{Std Base navi}}
⏵ documentation index > Std CloseActiveWindow