Std SaveCopy/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "# Wybierz z menu opcję {{MenuCommand|Plik → 16px Zapisz jako kopię ...}}. # Wprowadź nazwę pliku w oknie dialogowym. # Naciśnij przycisk {{Bu...")
(Created page with "==Opcje==")
Line 27: Line 27:
# Naciśnij przycisk {{Button|Zapisz}}.
# Naciśnij przycisk {{Button|Zapisz}}.


==Options==
==Opcje==


* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.

Revision as of 13:41, 5 May 2022

Std: Zapisz jako kopię

Lokalizacja w menu
Plik → Zapisz jako kopię ...
Środowisko pracy
wszystkie
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
Zapisz wszystkie jako, Zapisz

Opis

Polecenie Zapisz jako kopię zapisuje kopię aktywnego dokument w pliku pod nową nazwą.

Użycie

  1. Wybierz z menu opcję Plik → Zapisz jako kopię ....
  2. Wprowadź nazwę pliku w oknie dialogowym.
  3. Naciśnij przycisk Zapisz.

Opcje

  • 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)