Std CloseActiveWindow/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Replaced content with "==Descrizione==")
Line 19: Line 19:
}}
}}


==Descrizione==
<div class="mw-translate-fuzzy">
=== Descrizione ===

Il comando chiude solo il documento attivo e permette di continuare a lavorare su altri documenti del progetto.

Se il documento non è stato salvato, o ha subito delle modifiche, visualizza un messaggio e chiede se si desidera salvarlo:


[[Image:UnsavedDocument.png]]



In caso di risposta affermativa,
* se il documento è già stato salvato, usa il nome e l'indirizzo impostati,
* se il documento non è mai stato salvato, apre la finestra per definire il percorso e assegnare un nome al documento:

[[Image:FileSaveAs.png|left]]
{{clear}}



Il comando {{KEY/it|Chiudi tutto}} chiude invece tutti i documenti del progetto.

Con questo comando non si esce da FreeCAD.
</div>


The '''Std CloseActiveWindow''' command closes the active document.
The '''Std CloseActiveWindow''' command closes the active document.

Revision as of 20:59, 17 April 2020

Chiudi

Posizione nel menu
File → Chiudi
Ambiente
Tutti
Avvio veloce
Ctrl+F4
Introdotto nella versione
-
Vedere anche
Chiudi tutto

Descrizione

The Std CloseActiveWindow command closes the active document.

Usage

  1. There are several ways to invoke the command:
    • Select the File → Close option from the menu.
    • Use the keyboard shortcut: Ctrl+F4.
  2. If the active document has not been saved a dialog box will prompt you to save it:
    • Press the Save button to save the document. If required enter a filename first.
    • Press the Discard button to discard the document and lose all changes.

Options

  • If the active document has not been saved: press Esc or the Cancel button to abort the command.

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.