Std ViewDimetric: Difference between revisions

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

<!--T:10-->
{{Docnav
|[[Std_ViewIsometric|ViewIsometric]]
|[[Std_ViewTrimetric|ViewTrimetric]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewIsometric.svg
|IconR=Std_ViewTrimetric.svg
|IconC=Freecad.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Std ViewDimetric
|Name=Std ViewDimetric
|MenuLocation=[[Std View Menu|View]] → Standard views → Axonometric → Dimetric
|MenuLocation=View → Standard views → Axonometric → Dimetric
|Workbenches=All
|Workbenches=All
|SeeAlso=[[Std_ViewIsometric|ViewIsometric]], [[Std_ViewTrimetric|ViewTrimetric]]
|SeeAlso=[[Std_ViewIsometric|Std ViewIsometric]], [[Std_ViewTrimetric|Std ViewTrimetric]]
|Empty=1
}}
}}


Line 13: Line 23:


<!--T:3-->
<!--T:3-->
[[Std_ViewDimetric|Std ViewDimetric]] command puts the camera in the [[3D view|3D view]] in [https://en.wikipedia.org/wiki/Axonometric_projection#Three_types axonometric dimetric] projection, with a view direction {{incode|[-0.3333, 0.8819, -0.3333]}}.
The '''Std ViewDimetric''' command realigns the camera in the active [[3D_view|3D view]] to obtain a [https://en.wikipedia.org/wiki/Axonometric_projection#Three_types dimetric] view. For a truly dimetric view the 3D view must be in [[Std_OrthographicCamera|orthographic mode]], but the command also works if the view is in [[Std_PerspectiveCamera|perspective mode]].


</translate>
</translate>
[[File:FreeCAD_views_front.svg]]
[[Image:Std_ViewDimetric_example.svg]]
<translate>
<translate>
<!--T:11-->
{{Caption|The [[Std_AxisCross|axis cross]] and a cube in dimetric view}}


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


<!--T:5-->
<!--T:5-->
* Go to the menu {{MenuCommand|View → Standard views → Axonometric → [[Std_ViewDimetric|Dimetric]]}}.
# Select the {{MenuCommand|View → Standard views → Axonometric → [[Image:Std_ViewDimetric.svg|16px]] Dimetric}} option from the menu.


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


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


<!--T:8-->
<!--T:8-->
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 dimetric view use the {{incode|viewDimetric}} 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.viewDimetric()


Gui.ActiveDocument.ActiveView.getViewDirection()
FreeCADGui.ActiveDocument.ActiveView.viewDimetric()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()
}}
}}
<translate>
<translate>



<!--T:9-->
<!--T:12-->
{{Std Base navi}}
{{Docnav
{{Userdocnavi}}
|[[Std_ViewIsometric|ViewIsometric]]
|[[Std_ViewTrimetric|ViewTrimetric]]
|[[Std_View_Menu|Std View Menu]]
|IconL=Std_ViewIsometric.svg
|IconR=Std_ViewTrimetric.svg
|IconC=Freecad.svg
}}

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

Latest revision as of 14:51, 6 January 2021

Std ViewDimetric

Menu location
View → Standard views → Axonometric → Dimetric
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Std ViewIsometric, Std ViewTrimetric

Description

The Std ViewDimetric command realigns the camera in the active 3D view to obtain a dimetric view. For a truly dimetric view the 3D view must be in orthographic mode, but the command also works if the view is in perspective mode.

The axis cross and a cube in dimetric view

Usage

  1. Select the View → Standard views → Axonometric → Dimetric option from the menu.

Scripting

See also: FreeCAD Scripting Basics.

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

import FreeCADGui

FreeCADGui.ActiveDocument.ActiveView.viewDimetric()
FreeCADGui.ActiveDocument.ActiveView.getViewDirection()