Macro Delta xyz/en

Description
Gives the Delta values and distance between 2 points.

If the key is pressed, the Delta value begin on coordinate 0,0,0 to point clicked  (the coordinate 0,0,0 is displayed in red).

One option is possible for the macro stay resident (continuous) then push to quit the macro, and one option for impose the number of decimals.

Usage

 * 1) Start the macro
 * 2) Select the first point in 3D view
 * 3) Select the second point in 3D view

If the key is pressed, the Delta value begin on coordinate 0,0,0 to point clicked (the coordinate 0,0,0 is displayed in red).

If its is configured "Permanent" (continuous), click the key for quit the macro

Configure
For modify the value : go to : FreeCAD → Menu → Tools → Edit parameters... → BaseApp/Preferences/Macros/FCMmacros/Delta_XYZ.

_____switchDecimalsPref_____
 * 1 : the round value takes the global preferences value
 * 0 : the round value takes your choice

_____setArrondi_____
 * set your choice round value
 * if your choice = 0 : the round value is 3 by default

_____switchResident_____
 * 1 : the macro stay resident (Type to quit)
 * 0 : the macro is used on run and quit after use



Script
ToolBar Icon

Macro_Delta_xyz.FCMacro

Version
Version 0.2 2020-10-23 : adding push the key, click one point and the delta value begin 0,0,0 to point clicked, for quit the macro Adding options configurable in preference FC

Version 0.1 2013-11-29 : view toolbar : measure distance tool