Std ViewFront: Difference between revisions

From FreeCAD Documentation
(Revised. 'In progress' for now.)
mNo edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>


<!--T:14-->
{{Docnav
{{Docnav
|[[Std_ViewHome|ViewHome]]
|[[Std_ViewTrimetric|Std ViewTrimetric]]
|[[Std_ViewTop|Std ViewTop]]
|[[Std_ViewTop|ViewTop]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=
|IconL=Std_ViewHome.svg
|IconR=Std_ViewTop.svg
|IconR=Std_ViewTop.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
}}
}}


<!--T:5-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewFront
|Name=Std ViewFront
Line 22: Line 21:
}}
}}


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


<!--T:7-->
The '''Std ViewFront''' command changes the view direction of the active 3D view to match the direction of the positive Y axis.
The '''Std ViewFront''' command points the camera in the active [[3D_view|3D view]] in the direction of the positive Y axis.


</translate>
</translate>
[[Image:FreeCAD_views_front.svg]]
[[Image:FreeCAD_views_front.svg]]
<translate>
<translate>
<!--T:4-->
{{Caption|The front view sets the camera looking back, in the direction of the positive Y axis.}}
{{Caption|Arrow 1 points in the direction of the front view}}


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


<!--T:9-->
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_ViewFront.svg|16px]] [[Std_ViewFront|Std ViewFront]]}} button.
#* Press the {{Button|[[Image:Std_ViewFront.svg|16px]] [[Std_ViewFront|Std ViewFront]]}} button.
Line 39: Line 41:
#* Use the keyboard shortcut: {{KEY|1}}.
#* Use the keyboard shortcut: {{KEY|1}}.


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


<!--T:11-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:12-->
To change the active view to front view use the {{incode|viewFront}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.
To change to front view use the {{incode|viewFront}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


</translate>
</translate>
Line 54: Line 58:
<translate>
<translate>



<!--T:15-->
{{Docnav
{{Docnav
|[[Std_ViewHome|ViewHome]]
|[[Std_ViewTrimetric|Std ViewTrimetric]]
|[[Std_ViewTop|Std ViewTop]]
|[[Std_ViewTop|ViewTop]]
|[[Std_View_Menu|Std View Menu]]
|[[Std_View_Menu|Std View Menu]]
|IconL=
|IconL=Std_ViewHome.svg
|IconR=Std_ViewTop.svg
|IconR=Std_ViewTop.svg
|IconC=Freecad.svg
|IconC=Freecad.svg

Latest revision as of 14:52, 6 January 2021

Std ViewFront

Menu location
View → Standard views → Front
Workbenches
All
Default shortcut
1
Introduced in version
-
See also
Std ViewTop, Std ViewRight

Description

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

Arrow 1 points in the direction of the front view

Usage

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

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewFront()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()