Std ViewTop

From FreeCAD Documentation
Revision as of 22:32, 27 March 2020 by Roy 043 (talk | contribs) (Revised. 'In progress' for now.)
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 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 changes the view direction of the active 3D view to match 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 the active view 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()