Macro View Rotation: Difference between revisions

From FreeCAD Documentation
(Restore the version value as before)
(Removed intermediate <translate> tags, so everything is translated)
Line 22: Line 22:


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

</translate>


The lastest version of the macro is to be found at [https://github.com/FreeCAD/FreeCAD-macros/blob/master/PureGui/ViewRotation.FCMacro ViewRotation.FCMacro] but the easiest way to install this macro is through the [[Addon Manager]].
The lastest version of the macro is to be found at [https://github.com/FreeCAD/FreeCAD-macros/blob/master/PureGui/ViewRotation.FCMacro ViewRotation.FCMacro] but the easiest way to install this macro is through the [[Addon Manager]].


<translate>


==Option== <!--T:3-->
==Option== <!--T:3-->

Revision as of 08:48, 4 December 2018

Generic macro icon. Create your personal icon with the same name of the macro View Rotation

Description
Macro provides a GUI to permit precise rotation of the objects in the view.

Macro version: 1.0
Last modified: 2012-01-04
Author: Joe Dowsett
Author
Joe Dowsett
Download
None
Links
Macro Version
1.0
Date last modified
2012-01-04
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

This GUI allows the view to be rotated with more precision than when using the mouse. Rotation is according to axes fixed with respect to the user and not the objects, though the aim is that the objects rotate about their approximate shared centre rather than the view centre.
The GUI defaults to the top right of the screen, this behaviour can be changed by editing


Rotate view
Rotate view

Three icons are referred to to symbolise the rotation directions. A zip file containing these icons can be found here, the images should be placed in the folder containing your macros. Please feel free to contribute better ones!

Code

The lastest version of the macro is to be found at ViewRotation.FCMacro but the easiest way to install this macro is through the Addon Manager.

Option

at the end of the function 'initUI'. The first two arguments (right-300, 0) (line 91) provide the position for the top left corner of the window - my experience is that the behaviour was as intended on Ubuntu but Vista positioned the window too high and the 0 needed to be changed to ~30.

self.setGeometry(right-300, 0, 300, 150)


Discussion page

View+Rotation