Std ViewFront: Difference between revisions

From FreeCAD Documentation
No edit summary
(Revised. 'In progress' for now.)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

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

{{GuiCommand
{{GuiCommand
|Name=Std ViewFront
|Name=Std ViewFront
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Front
|MenuLocation=View → Standard views → Front
|Workbenches=All
|Workbenches=All
|Shortcut=1
|Shortcut={{KEY|1}}
|SeeAlso=[[Std_ViewTop|ViewTop]], [[Std_ViewRight|ViewRight]]
|SeeAlso=[[Std_ViewTop|Std ViewTop]], [[Std_ViewRight|Std ViewRight]]
}}
}}


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


The '''Std ViewFront''' command changes the view direction of the active 3D view to match the direction of the positive Y axis.
<!--T:7-->
[[Std_ViewFront|Std ViewFront]] puts the camera in the [[3D view|3D view]] looking towards the back from the front, in the direction of the positive Y axis, {{incode|[0.0, 1.0, 0.0]}}.


</translate>
</translate>
[[File: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|The front view sets the camera looking back, in the direction of the positive Y axis.}}


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


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


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


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


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.
<!--T:12-->
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.


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


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


{{Docnav
|[[Std_ViewTrimetric|Std ViewTrimetric]]
|[[Std_ViewTop|Std ViewTop]]
|[[Std_View_Menu|Std View Menu]]
|IconL=
|IconR=Std_ViewTop.svg
|IconC=Freecad.svg
}}


</translate>

{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 13:52, 27 March 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


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 changes the view direction of the active 3D view to match the direction of the positive Y axis.

The front view sets the camera looking back, in the direction of the positive Y axis.

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 the active view 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()