Std CloseActiveWindow/en

Description
The Std CloseActiveWindow command closes the active document.

Usage

 * 1) There are several ways to invoke the command:
 * 2) * Select the option from the menu.
 * 3) * Use the keyboard shortcut: +.
 * 4) If the active document has not been saved a dialog box will prompt you to save it:
 * 5) * Press the button to save the document. If required enter a filename first.
 * 6) * Press the button to discard the document and lose all changes.

Options

 * If the active document has not been saved: 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.