Macro FCInfoToMouse

Description
Provides info about coordinates, length, and angles in real-time next to the mouse pointer in a bubble annotation displayed in the 3D view



Usage

 * 1) Install the FCInfoToMouse macro in your macros directory via the Addon Manager
 * 2) Run the Macro
 * Result: an annotation appears and the mouse coordinate information is displayed in real-time.


 * Macro FCInfoToMouse 01.png


 * X, Y, Z: mouse coordinates are displayed in the bubble (this only applies when "Single" mode is enabled) as seen in Fig. 1


 * Once the mouse is clicked for the first time, additional info is displayed (when "Forced" mode is enabled this setting will be solely displayed)


 * Macro FCInfoToMouse 02.png


 * X1, Y1, Z1 : Initial coordinates of the 1st mouse click
 * X2, Y2, Z2 : Current coordinates of the mouse
 * L : Length between the first mouse click and the location of the current mouse pointer
 * XY, YZ, XZ : Angles between the 1st point and moving mouse pointer in the XY, YZ, and XZ planes


 * Macro FCInfoToMouse 03.png


 * If the mouse hovers over an object, the object name appears at the top of the annotation (see Figure 3).

Keyboard Shortcuts
 + : Quit the FCInfoToMouse macro. Upon quitting the macro, the annotation remains at its current mouse pointer location. Begin using the mouse normally if you want to delete the annotation manually.

 + : Toggle the mode between:
 * single which displays only the coordinates of the mouse pointer (Figure 1)
 * force which displays the "comprehensive visualisation" (Figure 2)
 * normal which displays the default behavior of the macro

 +  : for "hidden / visible"

 +  : to "Open/Close" a Spreadsheet with the coordinates saved to:


 * {| class="wikitable" style="text-align: center; color: green;"

!Cell A !Cell B !Cell C !Cell D
 * x, y, z
 * x
 * y
 * z
 * }
 * }

Script
The icon FCInfoToMouse.png for the Customize_ToolsBar

Macro_FCInfoToMouse.FCMacro

or to Gists Macro_FCInfoToMouse.FCMacro or the zip Macro_FCInfoToMouse.FCMacro.zip

Limitation
It is possible that the macro does not recognize some keys

Links
The discussion on the forum From autocad to freecad

My macros on mario52a gists

Version
27/03/2018 ver 00.04 : add function "Save the coordinate in a spreadSheet key "D" flip/flop on,off

24/01/2016 ver 00.03 : add section configuration and replace key "C" to "M"

23/01/2016 ver 00.02 : add function "single", replace key "H" to "C" and correct bug

02/01/2016 : ver 0.1