Std CloseAllWindows/en: Difference between revisions

From FreeCAD Documentation
(Neue Version von externer Quelle importiert)
 
(Updating to match new version of source page)
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>


{{Docnav
{{Template:UnfinishedDocu}}
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_Save|Save]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
}}


{{GuiCommand
{{GuiCommand|Name=Std_CloseAll|MenuLocation=[[Std_File_Menu|File]] → Close All|Workbenches=All|Shortcut=...|SeeAlso=[[Std_Close|Close]], [[Std_SaveAs|Save As...]] e [[Std_Save|Save]]}}
|Name=Std CloseAllWindows
|MenuLocation=File → Close All
|Workbenches=All
|SeeAlso=[[Std_CloseActiveWindow|Std Close]]
}}


==Description==


The '''Std CloseAllWindows''' command closes all windows, thereby closing all documents.
ToDo.


==Usage==


# Select the {{MenuCommand|File → [[Image:Std_CloseAllWindows.svg|16px]] Close All}} option from the menu.
[[Category:UnfinishedDocu]]
# 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|Discard}} button to discard the active document and lose all changes.


==Options==
{{clear}}

<languages/>
* 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==

* 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==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

To close a document use the {{incode|closeDocument}} method of the FreeCAD application. For a scripting example see [[Std_New|Std New]].


{{Docnav
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_Save|Save]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_CloseActiveWindow.svg
|IconR=Std_Save.svg
|IconC=Freecad.svg
}}

{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 11:47, 21 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.