Std ViewLeft: Difference between revisions

From FreeCAD Documentation
m (moved templates out of translation tags + Added {{KEY}})
(Removed 'In Progress'.)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

{{Docnav
|[[Std_ViewBottom|Std ViewBottom]]
|[[Std_ViewRotateLeft|Std ViewRotateLeft]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewBottom.svg
|IconR=Std_ViewRotateLeft.svg
|IconC=Freecad.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewLeft
|Name=Std ViewLeft
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Left
|MenuLocation=View → Standard views → Left
|Workbenches=All
|Workbenches=All
|Shortcut={{KEY|6}}
|Shortcut={{KEY|6}}
|SeeAlso=[[Std_ViewRear|ViewRear]], [[Std_ViewBottom|ViewBottom]]
|SeeAlso=[[Std_ViewRear|Std ViewRear]], [[Std_ViewBottom|Std ViewBottom]]
}}
}}


Line 13: Line 23:


<!--T:3-->
<!--T:3-->
[[Std_ViewLeft|Std ViewLeft]] puts the camera in the [[3D view|3D view]] looking from the left, towards the right, in the direction of the positive X axis, {{incode|[1.0, 0.0, 0.0]}}.
The '''Std ViewLeft''' command points the camera in the active [[3D_view|3D view]] in the direction of the positive X axis.


</translate>
</translate>
[[File:FreeCAD_views_rear.svg]]
[[Image:FreeCAD_views_rear.svg]]
<translate>
<translate>
<!--T:4-->
<!--T:4-->
{{Caption|The left view sets the camera looking right, in the direction of the positive X axis.}}
{{Caption|Arrow 6 points in the direction of the left view}}


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


<!--T:6-->
<!--T:6-->
# There are several ways to invoke the command:
* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → [[File:Std_ViewLeft.svg|16px]] [[Std_ViewLeft|Left]]}}.
* Or press the {{Button|[[File:Std_ViewLeft.svg|16px]] [[Std_ViewLeft|Left]]}} button.
#* Press the {{Button|[[Image:Std_ViewLeft.svg|16px]] [[Std_ViewLeft|Std ViewLeft]]}} button.
#* Select the {{MenuCommand|View → Standard views → [[Image:Std_ViewLeft.svg|16px]] Left}} option from the menu.
* Or press {{KEY|6}} in the numerical pad of the keyboard.
#* Select the {{MenuCommand|Standard views → [[Image:Std_ViewLeft.svg|16px]] Left}} option from the [[3D_view|3D view]] context menu.
#* Use the keyboard shortcut: {{KEY|6}}.


== Scripting == <!--T:7-->
==Scripting== <!--T:7-->


<!--T:8-->
<!--T:8-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
The left view can be set from the [[Python console|Python console]].


<!--T:9-->
<!--T:9-->
It is a method of the {{incode|ActiveView}} of the {{incode|ActiveDocument}}. The {{incode|ActiveView}} only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.
To change to left view use the {{incode|viewLeft}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


</translate>
</translate>
{{Code|code=
{{Code|code=
import FreeCADGui as Gui
import FreeCADGui
Gui.ActiveDocument.ActiveView.viewLeft()


Gui.ActiveDocument.ActiveView.getViewDirection()
FreeCADGui.ActiveDocument.ActiveView.viewLeft()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}
}}
<translate>
<translate>

{{Docnav
|[[Std_ViewBottom|Std ViewBottom]]
|[[Std_ViewRotateLeft|Std ViewRotateLeft]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewBottom.svg
|IconR=Std_ViewRotateLeft.svg
|IconC=Freecad.svg
}}


</translate>
</translate>
{{clear}}
{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 17:28, 1 April 2020

Std ViewLeft

Menu location
View → Standard views → Left
Workbenches
All
Default shortcut
6
Introduced in version
-
See also
Std ViewRear, Std ViewBottom

Description

The Std ViewLeft command points the camera in the active 3D view in the direction of the positive X axis.

Arrow 6 points in the direction of the left view

Usage

  1. There are several ways to invoke the command:
    • Press the Std ViewLeft button.
    • Select the View → Standard views → Left option from the menu.
    • Select the Standard views → Left option from the 3D view context menu.
    • Use the keyboard shortcut: 6.

Scripting

See also: FreeCAD Scripting Basics.

To change to left view use the viewLeft method of the ActiveView object. This method is not available if FreeCAD is in console mode.

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewLeft()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()