Std CloseAllWindows: Difference between revisions

From FreeCAD Documentation
(Undo revision 797410 by David69 (talk))
Tag: Undo
(Added icons from src.)
Line 6: Line 6:
|[[Std_Save|Std Save]]
|[[Std_Save|Std Save]]
|[[Std_File_Menu|File Menu]]
|[[Std_File_Menu|File Menu]]
|IconL=
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
Line 15: Line 15:
{{GuiCommand
{{GuiCommand
|Name=Std CloseAllWindows
|Name=Std CloseAllWindows
|Empty=1
|MenuLocation=File → Close All
|MenuLocation=File → Close All
|Workbenches=All
|Workbenches=All
Line 29: Line 28:


<!--T:9-->
<!--T:9-->
# Select the {{MenuCommand|File → Close All}} option from the menu.
# Select the {{MenuCommand|File → [[Image:Std_CloseAllWindows.svg|16px]] Close All}} option from the menu.
# If there are unsaved documents a dialog box will prompt you to save them:
# If there are unsaved documents a dialog box will prompt you to save them:
#* Press the {{Button|Save}} button to save the active document. If required enter a filename first.
#* Press the {{Button|Save}} button to save the active document. If required enter a filename first.
Line 57: Line 56:
<!--T:17-->
<!--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]].



<!--T:12-->
<!--T:12-->
Line 63: Line 63:
|[[Std_Save|Std Save]]
|[[Std_Save|Std Save]]
|[[Std_File_Menu|File Menu]]
|[[Std_File_Menu|File Menu]]
|IconL=
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
|IconC=Freecad.svg

Revision as of 10:08, 7 December 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 windows, thereby closing 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

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

Notes

  • A document can also be closed by right-clicking it in the Tree view and selecting Close document from the context menu.

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.