Macro Rotate View

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Macro Rotate View and the translation is 100% complete.

Rotate View by 90°

Beschreibung
Dieses Makro dreht die aktuelle Ansicht um 90 ° nach links. Funktioniert nur, wenn Sie sich in der Draufsicht befinden

Versionsmakro : 01.00
Datum der letzten Änderung : 2010-11-17
FreeCAD version : All
Herunterladen : Werkzeugleistensymbol
Autor: Yorik
Autor
Yorik
Herunterladen
Werkzeugleistensymbol
Links
Macro-Version
01.00
Datum der letzten Änderung
2010-11-17
FreeCAD-Version(s)
All
Standardverknüpfung
None
Siehe auch
Macro Rotate ViewAxonometric, Macro Rotate View Free

Beschreibung

Dieses Makro dreht die aktuelle Ansicht um 90° nach links.

Beschränkungen

Funktioniert nur in der Draufsicht: Std_ViewTop Draufsicht

Script

Werkzeugleistensymbol

Macro_Rotate_View_90_Degrees.FCMacro

import math
from pivy import coin
cam = Gui.ActiveDocument.ActiveView.getCameraNode()
rot = coin.SbRotation()
rot.setValue(coin.SbVec3f(0,0,1),math.pi/2)
nrot = cam.orientation.getValue() * rot
cam.orientation = nrot