File: Salva una copia

From FreeCAD Documentation
Revision as of 21:36, 23 March 2020 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

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)