Std CloseAllWindows: Difference between revisions

From FreeCAD Documentation
m (Renatorivo moved page Std CloseAll to Std CloseAllWindows without leaving a redirect: Part of translatable page "Std CloseAll")
No edit summary
Line 3: Line 3:
<!--T:7-->
<!--T:7-->
{{Docnav
{{Docnav
|[[Std_Close|Std CloseActiveWindow]]
|[[Std_CloseActiveWindow|Std CloseActiveWindow]]
|[[Std_Save|Std Save]]
|[[Std_Save|Std Save]]
|[[Std_File_Menu|File Menu]]
|[[Std_File_Menu|File Menu]]
Line 18: Line 18:
|MenuLocation=File → Close All
|MenuLocation=File → Close All
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_Close|Std Close]]
|SeeAlso=[[Std_CloseActiveWindow|Std Close]]
}}
}}


Line 60: Line 60:
<!--T:12-->
<!--T:12-->
{{Docnav
{{Docnav
|[[Std_Close|Std CloseActiveWindow]]
|[[Std_CloseActiveWindow|Std CloseActiveWindow]]
|[[Std_Save|Std Save]]
|[[Std_Save|Std Save]]
|[[Std_File_Menu|File Menu]]
|[[Std_File_Menu|File Menu]]

Revision as of 21:04, 5 October 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.