Std SaveCopy/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "==Опции==")
Line 30: Line 30:
# Press the {{Button|Save}} button.
# Press the {{Button|Save}} button.


==Options==
==Опции==


* Нажмите {{KEY|Esc}} или кнопку {{Button|Отмена}}, чтобы прервать выполнение команды.
* Нажмите {{KEY|Esc}} или кнопку {{Button|Отмена}}, чтобы прервать выполнение команды.

Revision as of 21:52, 2 August 2021

Other languages:

Std SaveCopy

Системное название
Std SaveCopy
Расположение в меню
Файл → Сохранить копию...
Верстаки
All
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Сохранить, Сохранить как...

Описание

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

Применение

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

Опции

  • Нажмите Esc или кнопку Отмена, чтобы прервать выполнение команды.

Настройки

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