Std ViewTop: Difference between revisions

From FreeCAD Documentation
(→‎Description: The top view sets the camera looking down, in the direction of the negative Z axis.)
No edit summary
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:12-->
{{Docnav
|[[Std_ViewFront|ViewFront]]
|[[Std_ViewRight|ViewRight]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewFront.svg
|IconR=Std_ViewRight.svg
|IconC=Freecad.svg
}}

<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewTop
|Name=Std ViewTop
|MenuLocation=[[Std View Menu|View]] → Standard views → Top
|MenuLocation=View → Standard views → Top
|Workbenches=All
|Workbenches=All
|Shortcut=2
|Shortcut={{KEY|2}}
|SeeAlso=[[Std_ViewFront|Std ViewFront]], [[Std_ViewRight|Std ViewRight]]
|SeeAlso=[[Std_OrthographicCamera|Orthographic camera]]
}}
}}


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


<!--T:3-->
Puts the camera in the [[3D view|3D view]] looking down from above, in the direction of the negative Z axis.
The '''Std ViewTop''' command points the camera in the active [[3D_view|3D view]] in the direction of the negative Z axis.


</translate>
</translate>
[[File:FreeCAD_views_front.svg]]
[[Image:FreeCAD_views_front.svg]]
<translate>
<translate>
<!--T:4-->
{{Caption|The top view sets the camera looking down, in the direction of the negative Z axis.}}
{{Caption|Arrow 2 points in the direction of the top view}}


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


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


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


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


<!--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 top view use the {{incode|viewTop}} method of the ActiveView object. This method is not available if FreeCAD is in console mode.


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


FreeCADGui.ActiveDocument.ActiveView.viewTop()
import FreeCADGui as Gui
Gui.ActiveDocument.ActiveView.viewTop()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}
}}
<translate>
<translate>


<!--T:13-->
{{Std Base}}
{{Docnav
{{Userdocnavi}}
|[[Std_ViewFront|ViewFront]]
|[[Std_ViewRight|ViewRight]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewFront.svg
|IconR=Std_ViewRight.svg
|IconC=Freecad.svg
}}

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

Latest revision as of 20:27, 22 December 2020

Std ViewTop

Menu location
View → Standard views → Top
Workbenches
All
Default shortcut
2
Introduced in version
-
See also
Std ViewFront, Std ViewRight

Description

The Std ViewTop command points the camera in the active 3D view in the direction of the negative Z axis.

Arrow 2 points in the direction of the top view

Usage

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

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewTop()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()