GuiCommand: Name: Std SaveCopy MenuLocation: File , Save a Copy... Workbenches: All SeeAlso: Std_SaveAs, Std_Save
Std SaveCopy
Description
The Std SaveCopy command saves a copy of the active document under a new file name.
Usage
- Select the File →
Save a Copy... option from the menu.
- Enter a filename in the dialog box.
- Press the Save button.
Options
- Press Esc or the Cancel button to abort the command.
Scripting
See also: Autogenerated API documentation and 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)
⏵ documentation index > Std SaveCopy
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Std_SaveCopy.md