Std SaveCopy/fr: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav
|[[Std_SaveAs|Std SaveAs]]
|[[Std_SaveAll|Std SaveAll]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_SaveAs.svg
|IconR=
|IconC=Freecad.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/fr
{{GuiCommand/fr
|Name=Std SaveaCopy
|Name=Std SaveaCopy
Line 9: Line 19:
|SeeAlso=[[Std_Save/fr|Std Enregistrer]], [[Std_SaveAs/fr|Std Enregistrer sous...]]
|SeeAlso=[[Std_Save/fr|Std Enregistrer]], [[Std_SaveAs/fr|Std Enregistrer sous...]]
}}
}}
</div>


<div class="mw-translate-fuzzy">
==Description==
==Description==
Enregistre une copie du document réel sous un nouveau nom de fichier.
Enregistre une copie du document réel sous un nouveau nom de fichier.
</div>


The '''Std SaveCopy''' command saves a copy of the active document under a new file name.

<div class="mw-translate-fuzzy">
==Utilisation==
==Utilisation==
</div>


<div class="mw-translate-fuzzy">
Choisir {{MenuCommand|Fichier → Sauvegarder une copie...}} à partir du menu supérieur.
Choisir {{MenuCommand|Fichier → Sauvegarder une copie...}} à partir du menu supérieur.
</div>

==Options==

* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.

==Preferences==

* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.

==Scripting==

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

To save a copy of a document use the {{incode|saveCopy}} method of the document object.

{{Code|code=
import FreeCAD
from pathlib import Path

# The folder and filename we will use:
fld = 'D:/testfiles/'
fnm = fld + 'testCopy.FCStd'

# Make sure fld exists:
Path(fld).mkdir(parents=True, exist_ok=True)

doc = FreeCAD.newDocument()
doc.saveCopy(fnm)
}}

{{Docnav
|[[Std_SaveAs|Std SaveAs]]
|[[Std_SaveAll|Std SaveAll]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_SaveAs.svg
|IconR=
|IconC=Freecad.svg
}}


{{Std Base navi/fr}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi/fr}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 21:36, 23 March 2020

Std Sauvegarder une copie

Emplacement du menu
Fichier → Sauvegarder une copie...
Ateliers
Tous
Raccourci par défaut
C
Introduit dans la version
-
Voir aussi
Std Enregistrer, Std Enregistrer sous...

Description

Enregistre une copie du document réel sous un nouveau nom de fichier.

The Std SaveCopy command saves a copy of the active document under a new file name.

Utilisation

Choisir Fichier → Sauvegarder une copie... à partir du menu supérieur.

Options

  • Press Esc or the Cancel button to abort the command.

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

To save a copy of a document use the saveCopy method of the document object.

import FreeCAD
from pathlib import Path

# The folder and filename we will use:
fld = 'D:/testfiles/'
fnm = fld + 'testCopy.FCStd'

# Make sure fld exists:
Path(fld).mkdir(parents=True, exist_ok=True)

doc = FreeCAD.newDocument()
doc.saveCopy(fnm)