Std CloseAllWindows: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
Line 32: Line 32:
#* Press the {{Button|Discard}} button to discard the active document and lose all changes.
#* Press the {{Button|Discard}} button to discard the active document and lose all changes.


==Options==
==Options== <!--T:13-->


<!--T:14-->
* If there are multiple unsaved documents: check the {{KEY|[[Image:Case a cocher O.png|16px]] Apply answer to all}} checkbox to avoid being prompted for each unsaved document separately.
* If there are multiple unsaved documents: check the {{KEY|[[Image:Case a cocher O.png|16px]] Apply answer to all}} checkbox to avoid being prompted for each unsaved document separately.
* If there are unsaved documents: press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
* If there are unsaved documents: press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
Line 42: Line 43:
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.


==Scripting==
==Scripting== <!--T:15-->


<!--T:16-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:17-->
To close a document use the {{incode|closeDocument}} method of the FreeCAD application. For a scripting example see [[Std_New|Std New]].
To close a document use the {{incode|closeDocument}} method of the FreeCAD application. For a scripting example see [[Std_New|Std New]].



Revision as of 21:14, 23 March 2020

Std CloseAllWindows

Menu location
File → Close All
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std Close

Description

The Std CloseAllWindows command closes all documents.

Usage

  1. Select the File → Close All option from the menu.
  2. If there are unsaved documents a dialog box will prompt you to save them:
    • Press the Save button to save the active document. If required enter a filename first.
    • Press the Discard button to discard the active document and lose all changes.

Options

  • If there are multiple unsaved documents: check the Apply answer to all checkbox to avoid being prompted for each unsaved document separately.
  • If there are unsaved documents: press Esc or the Cancel button to abort the command.

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

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