Std SaveCopy/de: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/de |SpeichernUnter |AllesSpeichern |Std Menü Datei |IconL=Std_SaveAs.svg |IconR=Std_SaveAll.svg |IconC=Free...")
No edit summary
Line 9: Line 9:
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/de
{{GuiCommand/de
|Name=Std SaveCopy
|Name=Std SaveCopy
|Name/de=Std SaveCopy
|Name/de=Std KopieSpeichern
|MenuLocation=Datei → Speichern einer Kopie...
|MenuLocation=Datei → Speichern einer Kopie...
|Workbenches=Alle
|Workbenches=Alle
|Shortcut={{KEY|C}}
|Shortcut={{KEY|C}}
|SeeAlso=[[Std_Save/de|Speichern]], [[Std_SaveAs/de|Speichern unter...]]
|SeeAlso=[[Std_Save/de|Std Speichern]], [[Std_SaveAs/de|Std SpeichernUnter]]
}}
}}
</div>


==Beschreibung==
==Beschreibung==

Revision as of 10:06, 12 April 2022

Std KopieSpeichern

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

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)