Std SaveCopy/de: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
m (FuzzyBot moved page Std SaveaCopy/de to Std SaveCopy/de without leaving a redirect: Part of translatable page "Std SaveaCopy")
(No difference)

Revision as of 19:41, 4 October 2020

Std SaveaCopy

Menüeintrag
Datei → Speichern einer Kopie...
Arbeitsbereich
Alle
Standardtastenkürzel
C
Eingeführt in Version
-
Siehe auch
Speichern, Speichern unter...

Beschreibung

Speichern eine Kopie des aktuellen Dokuments unter einem neuen Namen.

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

Anwendung

Wähle DateiSpeichern einer Kopie... aus der Menüleiste.

  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)