Std ViewIsometric/en: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
 
(Updating to match new version of source page)
Line 5: Line 5:
|Workbenches=All
|Workbenches=All
|Shortcut=0
|Shortcut=0
|SeeAlso=[[Std_OrthographicCamera|Orthographic camera]]
|SeeAlso=[[Std_OrthographicCamera|Orthographic camera]], [[Std_ViewDimetric|ViewDimetric]], [[Std_ViewTrimetric|ViewTrimetric]]
}}
}}


==Description==
==Description==


Puts the camera in the [[3D view|3D view]] in axonometric isometric view, with a view direction {{incode|[-0.5773, 0.5773, -0.5773]}}.
[[Std ViewIsometric|Std ViewIsometric]] command puts the camera in the [[3D view|3D view]] in [https://en.wikipedia.org/wiki/Isometric_projection axonometric isometric] projection, with a view direction {{incode|[-0.5773, 0.5773, -0.5773]}}.


[[File:FreeCAD_views_front.svg]]
[[File:FreeCAD_views_front.svg]]
Line 23: Line 23:
== Scripting ==
== Scripting ==


The isometric view can be set from the [[Python|Python]] console.
The isometric view can be set from the [[Python console|Python console]].


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.


{{Code|code=
{{Code|code=
import FreeCAD as App
App.Gui.ActiveDocument.ActiveView.viewIsometric()

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

Gui.ActiveDocument.ActiveView.getViewDirection()
}}
}}



Revision as of 15:41, 24 November 2019

Std ViewIsometric

Menu location
View → Standard views → Axonometric → Isometric
Workbenches
All
Default shortcut
0
Introduced in version
-
See also
Orthographic camera, ViewDimetric, ViewTrimetric

Description

Std ViewIsometric command puts the camera in the 3D view in axonometric isometric projection, with a view direction [-0.5773, 0.5773, -0.5773].

The isometric view looks slightly to the left (negative X), slightly to the back (positive Y), and slightly down (negative Z).

How to use

  • Go to the menu View → Standard views → Axonometric → Isometric.
  • Or press the Isometric button.
  • Or press 0 in the numerical pad of the keyboard.

Scripting

The isometric 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.viewIsometric()

Gui.ActiveDocument.ActiveView.getViewDirection()