Std SaveCopy/it: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Emphasis|Vedere anche:}} Script di base per FreeCAD")
(Created page with "{{Docnav/it |Salva con nome |Salva tutto |Menu File |IconL=Std_SaveAs.svg |IconR= |IconC=Freecad.svg }}")
Line 57: Line 57:
}}
}}


{{Docnav
{{Docnav/it
|[[Std_SaveAs|Std SaveAs]]
|[[Std_SaveAs/it|Salva con nome]]
|[[Std_SaveAll|Std SaveAll]]
|[[Std_SaveAll/it|Salva tutto]]
|[[Std_File_Menu|Std File Menu]]
|[[Std_File_Menu/it|Menu File]]
|IconL=Std_SaveAs.svg
|IconL=Std_SaveAs.svg
|IconR=
|IconR=

Revision as of 21:19, 17 April 2020

Salva una copia

Posizione nel menu
File → Salva una copia...
Ambiente
All
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Salva con nome, Salva

Descrizione

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

Utilizzo

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

Opzioni

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

Preferenze

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

Script

Vedere anche: Script di base per FreeCAD

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)