Std CloseActiveWindow/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "* Si le document actif n'a pas été enregistré: appuyez sur {{KEY|Echap}} ou sur le bouton {{Button|Annuler}} pour abandonner la commande.")
(Created page with "==Remarques==")
Line 35: Line 35:
* Si le document actif n'a pas été enregistré: appuyez sur {{KEY|Echap}} ou sur le bouton {{Button|Annuler}} pour abandonner la commande.
* Si le document actif n'a pas été enregistré: appuyez sur {{KEY|Echap}} ou sur le bouton {{Button|Annuler}} pour abandonner la commande.


==Notes==
==Remarques==


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

Revision as of 13:55, 29 March 2020

Std Fermer

Emplacement du menu
Fichier → Fermer
Ateliers
Tous
Raccourci par défaut
Ctrl+F4
Introduit dans la version
-
Voir aussi
Std Fermer tout

Description

La commande Std Fermer ferme le document actif.

Utilisation

  1. Il existe plusieurs façons d'appeler la commande:
    • Sélectionnez l'option Fichier → Fermer dans le menu.
    • Utilisez le raccourci clavier: Ctrl+F4.
  2. Si le document actif n'a pas été enregistré, une boîte de dialogue vous invite à l'enregistrer:
    • Appuyez sur le bouton Enregistre le document actif pour enregistrer le document. Si nécessaire, entrez d'abord un nom de fichier.
    • Appuyez sur le bouton Discard pour supprimer le document et perdre toutes les modifications.

Options

  • Si le document actif n'a pas été enregistré: appuyez sur Echap ou sur le bouton Annuler pour abandonner la commande.

Remarques

  • 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.