Std Save: Difference between revisions

From FreeCAD Documentation
({{Std Base}} {{Userdocnavi}} to categorize the page)
No edit summary
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
<!--T:12-->
{{Docnav
|[[Std_CloseAllWindows|Std CloseAllWindows]]
|[[Std_SaveAs|Std SaveAs]]
|[[Std_File_Menu|Std File Menu]]
|IconL=
|IconR=Std_SaveAs.svg
|IconC=Freecad.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand|Name=Std Save|MenuLocation=[[Std_File_Menu|File]] → Save|Workbenches=All|Shortcut=Crtl+S|SeeAlso=[[Std_SaveAs|Save as...]]}}
|Name=Std Save
|MenuLocation=File → Save
|Workbenches=All
|Shortcut={{KEY|Ctrl}}+{{KEY|S}}
|SeeAlso=[[Std_SaveAs|Std SaveAs]], [[Std_SaveCopy|Std SaveCopy]], [[Std_SaveAll|Std SaveAll]]
}}

==Description== <!--T:13-->

<!--T:14-->
The '''Std Save''' command saves the active document.

==Usage== <!--T:15-->

<!--T:16-->
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_Save.svg|16px]] [[Std_Save|Std Save]]}} button.
#* Select the {{MenuCommand|File → [[Image:Std_Save.svg|16px]] Save}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|S}}.
# For new documents: enter a filename in the dialog box and press the {{Button|Save}} button.

==Options== <!--T:17-->


<!--T:2-->
<!--T:18-->
* For new documents: press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
The {{KEY|Save}} command stores the active document of the current project to a file. If there are other documents in the project, they are not saved.


<!--T:3-->
==Notes== <!--T:25-->
The first time a document is saved, a dialog to define the path and file name will appear.


<!--T:4-->
<!--T:26-->
* This command can also be used to save dependency graphs. See [[Std_DependencyGraph|Std DependencyGraph]].
[[Image:FileSaveAs.png]]


<!--T:5-->
==Preferences== <!--T:19-->
The name assigned to the document to save it also becomes the name used for the root in the document tree structure.


<!--T:6-->
<!--T:20-->
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.
Subsequent {{KEY|Save}} commands automatically use the path and file name defined in the first save. To save the file in a
different location, or assign to it a new name, you must use the Save As command.


<!--T:7-->
==Scripting== <!--T:21-->
When you try to close a modified document, or exit FreeCAD with modified documents in use, you will receive a warning:


<!--T:8-->
<!--T:22-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
[[Image:UnsavedDocument.png]]


<!--T:9-->
<!--T:23-->
To save a document use the {{incode|save}} method of the document object. A new document must first be saved with the {{incode|saveAs}} method of the document object. For a scripting example see [[Std_New|Std New]].
You can define a default location for opening and saving files using the menu {{MenuCommand|Tools → Edit Parameters → BaseApp → Preferences → General → FileOpenSavePath}}.


<!--T:10-->
<!--T:24-->
{{Docnav
[[Image:FileOpenSavePath.png|left]]
|[[Std_CloseAllWindows|Std CloseAllWindows]]
|[[Std_SaveAs|Std SaveAs]]
|[[Std_File_Menu|Std File Menu]]
|IconL=
|IconR=Std_SaveAs.svg
|IconC=Freecad.svg
}}


<!--T:11-->
{{Std Base}}
{{Userdocnavi}}
</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 21:53, 5 October 2020

Std Save

Menu location
File → Save
Workbenches
All
Default shortcut
Ctrl+S
Introduced in version
-
See also
Std SaveAs, Std SaveCopy, Std SaveAll

Description

The Std Save command saves the active document.

Usage

  1. There are several ways to invoke the command:
    • Press the Std Save button.
    • Select the File → Save option from the menu.
    • Use the keyboard shortcut: Ctrl+S.
  2. For new documents: enter a filename in the dialog box and press the Save button.

Options

  • For new documents: press Esc or the Cancel button to abort the command.

Notes

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

To save a document use the save method of the document object. A new document must first be saved with the saveAs method of the document object. For a scripting example see Std New.