Std SaveCopy/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "Sdt: Zapisz jako kopi")
 
(Created page with "{{Docnav/pl |Zapisz jako |Zapisz wszystkie |Menu Plik |IconL=Std_SaveAs.svg |IconR=Std_SaveAll.svg |IconC=Freecad.svg }}")
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav
{{Docnav/pl
|[[Std_SaveAs|SaveAs]]
|[[Std_SaveAs/pl|Zapisz jako]]
|[[Std_SaveAll|SaveAll]]
|[[Std_SaveAll/pl|Zapisz wszystkie]]
|[[Std_File_Menu|Std File Menu]]
|[[Std_File_Menu/pl|Menu Plik]]
|IconL=Std_SaveAs.svg
|IconL=Std_SaveAs.svg
|IconR=Std_SaveAll.svg
|IconR=Std_SaveAll.svg

Revision as of 13:33, 5 May 2022

Std SaveCopy

Menu location
File → Save a Copy...
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std SaveAs, Std Save

Description

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

Usage

  1. Select the File → Save a Copy... option from the menu.
  2. Enter a filename in the dialog box.
  3. Press the Save button.

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)