Std StoreWorkingView: Difference between revisions

From FreeCAD Documentation
(Page creation)
 
(V1.0 -> V0.21)
 
(21 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:7-->
<!--T:1-->
{{Docnav
{{Docnav
|[[Std_ViewRotateRight|ViewRotateRight]]
|[[Std_ViewRotateRight|ViewRotateRight]]
Line 12: Line 12:
}}
}}


<!--T:1-->
<!--T:2-->
{{GuiCommand
{{GuiCommand
|Name=Std Std_StoreWorkingView
|Name=Std StoreWorkingView
|MenuLocation=View → Standard views → Store working view
|MenuLocation=View → Standard views → Store working view
|Workbenches=All
|Workbenches=All
|Shortcut={{KEY|Shift}}+{{KEY|End}}
|Shortcut={{KEY|Shift}}+{{KEY|End}}
|Version=0.21
|SeeAlso=[[Std_RecallWorkingView]]
|SeeAlso=[[Std_RecallWorkingView|Std RecallWorkingView]], [[Std_FreezeViews|Std FreezeViews]]
}}
}}


==Description== <!--T:2-->
==Description== <!--T:3-->


<!--T:3-->
<!--T:4-->
The '''Std StoreWorkingView''' stores the current view -- camera parameters -- in a temporary slot called 'working view' where it can then be recalled.
The '''Std StoreWorkingView''' command stores the camera settings of the active [[3D_view|3D view]] in its temporary working view. This view can be recalled with the [[Std_RecallWorkingView|Std RecallWorkingView]] command.

The working view is a per-view(tab) temporary unique slot, which means:
<!--T:5-->
* 'per-view' : the working view exists only in the scope of the current tab viewport. Storing doesn't (and can't) affect other tabs -- which may be other documents, or different views of same document --.
* 'temporary' : the working view will be lost as soon as the tab is closed.
Each 3D view has its own working view. Storing a new working view will overwrite the existing working view of the active 3D view. When a 3D view is closed its working view is lost.
* 'unique' : only one working view exists in its own scope. Storing a new working view will override the former one if exists.


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


<!--T:4-->
<!--T:7-->
# Make sure a [[3D_view|3D view]] is active.
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Select the {{MenuCommand|View → Standard views → Store working view}} option from the menu.
#* Select the {{MenuCommand|View → Standard views → Store working view}} option from the menu.
Line 43: Line 44:


<!--T:10-->
<!--T:10-->
To store the current view of the active window as working view, run
To store the current camera settings of the active 3D view in a working view:

</translate>
</translate>
{{Code|code=
{{Code|code=
import FreeCADGui
import FreeCADGui


FreeCADGui.runCommand('Std_StoreWorkingView',0)
FreeCADGui.runCommand("Std_StoreWorkingView", 0)
}}
}}
<translate>
<translate>



<!--T:11-->
<!--T:11-->
Line 65: Line 68:
{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 13:16, 4 June 2023

Std StoreWorkingView

Menu location
View → Standard views → Store working view
Workbenches
All
Default shortcut
Shift+End
Introduced in version
0.21
See also
Std RecallWorkingView, Std FreezeViews

Description

The Std StoreWorkingView command stores the camera settings of the active 3D view in its temporary working view. This view can be recalled with the Std RecallWorkingView command.

Each 3D view has its own working view. Storing a new working view will overwrite the existing working view of the active 3D view. When a 3D view is closed its working view is lost.

Usage

  1. Make sure a 3D view is active.
  2. There are several ways to invoke the command:
    • Select the View → Standard views → Store working view option from the menu.
    • Use the keyboard shortcut: Shift+End.

Scripting

See also: FreeCAD Scripting Basics.

To store the current camera settings of the active 3D view in a working view:

import FreeCADGui

FreeCADGui.runCommand("Std_StoreWorkingView", 0)