Difference between revisions of "Std ViewFront"

From FreeCAD Documentation
Jump to navigation Jump to search
(Std ViewFront puts the camera in the 3D view looking towards the back from the front, in the direction of the positive Y axis, [0.0, 1.0, 0.0])
 
m (Add {{StdMenu}})
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
 +
<!--T:5-->
 
{{GuiCommand
 
{{GuiCommand
 
|Name=Std ViewFront
 
|Name=Std ViewFront
|MenuLocation=[[Std View Menu|View]] → Standard views → Front
+
|MenuLocation={{StdMenu|[[Std View Menu|View]]}} → Standard views → Front
 
|Workbenches=All
 
|Workbenches=All
 
|Shortcut=1
 
|Shortcut=1
Line 9: Line 10:
 
}}
 
}}
  
==Description==
+
==Description== <!--T:6-->
  
 +
<!--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]}}.
 
[[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]}}.
  
Line 19: Line 21:
 
{{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.}}
  
==How to use==
+
==Usage== <!--T:8-->
  
* Go to the menu {{MenuCommand|View → Standard views → [[File:Std_ViewFront.svg|16px]] [[Std_ViewFront|Front]]}}.
+
<!--T:9-->
 +
* Go to the menu {{MenuCommand|{{StdMenu|[[Std View Menu|View]]}} → Standard views → [[File:Std_ViewFront.svg|16px]] [[Std_ViewFront|Front]]}}.
 
* Or press the {{Button|[[File:Std_ViewFront.svg|16px]] [[Std_ViewFront|Front]]}} button.
 
* Or press the {{Button|[[File:Std_ViewFront.svg|16px]] [[Std_ViewFront|Front]]}} button.
 
* Or press {{KEY|1}} in the numerical pad of the keyboard.
 
* Or press {{KEY|1}} in the numerical pad of the keyboard.
  
== Scripting ==
+
== Scripting == <!--T:10-->
  
 +
<!--T:11-->
 
The front view can be set from the [[Python console|Python console]].
 
The front view can be set from the [[Python console|Python console]].
  
 +
<!--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.
 
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.
  
Line 40: Line 45:
 
<translate>
 
<translate>
  
{{Std Base}}
+
<!--T:13-->
 +
{{Std Base navi}}
 
{{Userdocnavi}}
 
{{Userdocnavi}}
 
</translate>
 
</translate>
 
{{clear}}
 
{{clear}}

Revision as of 03:38, 19 February 2020

Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎русский

Std ViewFront.svg Std ViewFront

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


Description

Std ViewFront puts the camera in the 3D view looking towards the back from the front, in the direction of the positive Y axis, [0.0, 1.0, 0.0].

FreeCAD views front.svg

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


Usage

  • Go to the menu View → Standard views → Std ViewFront.svg Front.
  • Or press the Std ViewFront.svg Front button.
  • Or press 1 in the numerical pad of the keyboard.

Scripting

The front view can be set from the Python console.

It is a method of the ActiveView of the ActiveDocument. The ActiveView only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.

import FreeCADGui as Gui
Gui.ActiveDocument.ActiveView.viewFront()

Gui.ActiveDocument.ActiveView.getViewDirection()