Std SaveCopy/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(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">
<div class="mw-translate-fuzzy">
{{GuiCommand/it|Name=Std SaveaCopy|Name/it=Salva una copia|MenuLocation=[[Std_File_Menu/it|File]] → Salva una copia...|Workbenches=Tutti|Shortcut=C|SeeAlso=[[Std_Save/it|Salva]], [[Std_SaveAs/it|Salva come...]] }}
{{GuiCommand/it|Name=Std SaveaCopy|Name/it=Salva una copia|MenuLocation=[[Std_File_Menu/it|File]] → Salva una copia...|Workbenches=Tutti|Shortcut=C|SeeAlso=[[Std_Save/it|Salva]], [[Std_SaveAs/it|Salva come...]] }}
</div>
</div>


<div class="mw-translate-fuzzy">
==Descrizione==
==Descrizione==
Salva una copia del documento attuale con un nuovo nome di file.
Salva una copia del documento attuale con un nuovo nome di file.
</div>


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

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

Scegliere {{MenuCommand|File → Salva una copia...}} dal menu principale.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Scegliere {{MenuCommand|File → Salva una copia...}} dal menu principale.
{{Std Base/it}}
{{Userdocnavi/it}}
</div>
</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{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 21:36, 23 March 2020

Salva una copia

Posizione nel menu
File → Salva una copia...
Ambiente
Tutti
Avvio veloce
C
Introdotto nella versione
-
Vedere anche
Salva, Salva come...

Descrizione

Salva una copia del documento attuale con un nuovo nome di file.

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

Uso

Scegliere File → Salva una copia... dal menu principale.

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)