Std CloseActiveWindow

Description
The Std CloseActiveWindow command closes the active window. To close a document all its windows must be closed.

Usage

 * 1) There are several ways to invoke the command:
 * 2) * Select the option from the menu.
 * 3) * Use the keyboard shortcut: +.
 * 4) To close a document: repeat this for all windows belonging to it.
 * 5) When closing the last window of a document that has not been saved, a dialog box will prompt you to save it:
 * 6) * Press the button to save the document. If required enter a filename first.
 * 7) * Press the button to discard the document and lose all changes.

Options

 * When the dialog box is displayed: press or the  button to abort the command.

Preferences

 * The last used file location is stored:.

Scripting
FreeCAD Scripting Basics.

To close a document use the method of the FreeCAD application. For a scripting example see Std New.