표준 사본 저장(Std SaveCopy)

From FreeCAD Documentation
Revision as of 07:34, 25 December 2020 by Saltsalt (talk | contribs) (Created page with "<!--Empty=1 to suppress icon--> {{GuiCommand/ko |Name=Std SaveCopy |Name/ko=표준 사본 저장 |MenuLocation=파일 → 사본 저장... |Workbenches=모두 |SeeAlso=Std_S...")

표준 사본 저장

메뉴 위치
파일 → 사본 저장...
작업대
모두
기본 단축키
없음
도입 버전
-
참조
표준 다른 이름으로 저장, 표준 저장

Description

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

Usage

  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)