Std ViewFront: Difference between revisions

From FreeCAD Documentation
({{Std Base navi}} to categorize page)
mNo edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

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

<!--T:5-->
<!--T:5-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewFront
|Name=Std ViewFront
|MenuLocation=[[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]]
}}
}}


Line 13: Line 24:


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


</translate>
</translate>
[[File:FreeCAD_views_front.svg]]
[[Image:FreeCAD_views_front.svg]]
<translate>
<translate>
<!--T:4-->
<!--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}}


==How to use== <!--T:8-->
==Usage== <!--T:8-->


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


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


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


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



<!--T:13-->
<!--T:15-->
{{Std Base navi}}
{{Docnav
{{Userdocnavi}}
|[[Std_ViewHome|ViewHome]]
|[[Std_ViewTop|ViewTop]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewHome.svg
|IconR=Std_ViewTop.svg
|IconC=Freecad.svg
}}

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

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()