Std StoreWorkingView: Difference between revisions

From FreeCAD Documentation
m (Typo in description)
m (Typo again -- preview will be my friend soon --)
Line 24: Line 24:


<!--T:3-->
<!--T:3-->
The '''Std StoreWorkingView'''command 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 current view -- camera parameters -- in a temporary slot called 'working view' where it can then be recalled.
The working view is a per-view(tab) temporary unique slot, which means:
The working view is a per-view(tab) temporary unique slot, which means:
* '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 --.
* '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 --.

Revision as of 13:34, 6 October 2022

Std StoreWorkingView

Menu location
View → Standard views → Store working view
Workbenches
All
Default shortcut
Shift+End
Introduced in version
-
See also
Std_RecallWorkingView

Description

The Std StoreWorkingView command stores the current view -- camera parameters -- in a temporary slot called 'working view' where it can then be recalled. The working view is a per-view(tab) temporary unique slot, which means:

  • '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.
  • 'unique' : only one working view exists in its own scope. Storing a new working view will override the former one if exists.

Usage

  1. 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 view of the active window as working view, run

import FreeCADGui

FreeCADGui.runCommand('Std_StoreWorkingView',0)