Std CloseAllWindows: Difference between revisions

From FreeCAD Documentation
(Fixed GuiCommand.)
mNo edit summary
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:7-->
<!--T:7-->
{{Docnav
{{Docnav
|[[Std_Close|Std CloseActiveWindow]]
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_Save|Std Save]]
|[[Std_Save|Save]]
|[[Std_File_Menu|Std File Menu]]
|[[Std_File_Menu|Std File Menu]]
|IconL=
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
Line 16: Line 17:
|MenuLocation=File → Close All
|MenuLocation=File → Close All
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_Close|Std Close]]
|SeeAlso=[[Std_CloseActiveWindow|Std Close]]
}}
}}


Line 22: Line 23:


<!--T:8-->
<!--T:8-->
The '''Std CloseAllWindows''' command closes all documents.
The '''Std CloseAllWindows''' command closes all windows, thereby closing all documents.


==Usage== <!--T:3-->
==Usage== <!--T:3-->


<!--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.
#* 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.
#* Press the {{Button|Cancel}} button to cancel the command.
#* If there are multiple unsaved documents you can check the {{KEY|[[Image:Case a cocher O.png|16px]] Apply answer to all}} checkbox to avoid being prompted for each unsaved document separately.


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

<!--T:14-->
* When the dialog box is displayed: press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
* If there are multiple unsaved documents: check the {{MenuCommand|Apply answer to all}} checkbox to avoid being prompted for each unsaved document separately.

==Notes== <!--T:18-->

<!--T:19-->
* A document can also be closed by right-clicking it in the [[Tree_view|Tree view]] and selecting {{MenuCommand|Close document}} from the context menu.

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

<!--T:16-->
{{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]].


<!--T:11-->
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.


<!--T:12-->
<!--T:12-->
{{Docnav
{{Docnav
|[[Std_Close|Std CloseActiveWindow]]
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_Save|Std Save]]
|[[Std_Save|Save]]
|[[Std_File_Menu|Std File Menu]]
|[[Std_File_Menu|Std File Menu]]
|IconL=
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
Line 50: Line 64:


</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 19:51, 20 April 2024

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.

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.