Std SaveCopy/de: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "# Menüeintrag {{MenuCommand|Datei → 16px Speichern einer Kopie...}} auswählen. # Einen Dateinamen im Dialogfeld eingeben. # Schaltfläche {{Butt...")
Line 24: Line 24:
==Anwendung==
==Anwendung==


# Select the {{MenuCommand|File → [[Image:Std_SaveCopy.svg|16px]] Save a Copy...}} option from the menu.
# Menüeintrag {{MenuCommand|Datei → [[Image:Std_SaveCopy.svg|16px]] Speichern einer Kopie...}} auswählen.
# Einen Dateinamen im Dialogfeld eingeben.
# Enter a filename in the dialog box.
# Press the {{Button|Save}} button.
# Schaltfläche {{Button|Speichern}} drücken.


==Options==
==Options==

Revision as of 10:52, 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

Der Befehl Std KopieSpeichern speichert eine Kopie des aktiven Dokuments unter einem neuen Dateinamen.

Anwendung

  1. Menüeintrag Datei → Speichern einer Kopie... auswählen.
  2. Einen Dateinamen im Dialogfeld eingeben.
  3. Schaltfläche Speichern drücken.

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)