Macro WorkFeatures

Description
Tool utility to create plans of the axes, planes from 3 points, axes on a form, information on the coordinates of the shape and many other useful features to facilitate the creation of your project. This utility is up next in the combo view.



Uses
Work Features

Tag Origin




 * Tag Origin
 * : Create at origin: a point and X,Y and Z axis and XZ,XY and YZ planes. The Axis, Point and Planes origin hare directly keyed to hidden.

Tag Points




 * Tag Points
 * : Create a Point at center location of all selected Object(s).
 * : Create a Point at mid point location of each selected Line(s).
 * : Create Points at start and end location of each selected Line(s).
 * : Create a Point at center location of each selected Circle(s) or Arc(s).
 * : Create a Point on a line at some distance of the extremity point selected.
 * SpinBox : enter the displacement value
 * : Create a Point at center location of each selected Face(s).
 * : Create a point at the intersection of the Line and Plane selected.
 * : Create a projection Point of a Point onto a Line and symetric point.
 * : Create a projection Point of a Point onto a Face.
 * : Create Base Point of all selected Object(s).

Tag Axis




 * Tag Axis
 * : Create 3 Axes at center location of all selected Object(s).
 * : Create an Axis crossing 2 Points.
 * SpinBox : enter the displacement value
 * : Create the Axis of a Cylinder.
 * : Create an Axis between 2 Axes.
 * : Create 2 Perpendicular Axes at center location of a Plane.
 * : Create an Axis parallel to an Axis and crossing a Point.
 * : Create an Axis perpendicular to an Axis and crossing a Point.
 * SpinBox : enter the displacement value
 * : Create an Axis on a Plane by projection from another Axis.
 * : Create an Axis by intersect of 2 Planes.
 * : Create 3 Axes at Base location of all selected Object(s).

Tag Plane




 * Tag Plane
 * : Create a Plane crossing 3 Points.
 * : Create a plane crossing a Line and a Point. The point MUST not belongs to the Line !
 * : Create a plane perpendicular to a Line and crossing a Point.
 * : Create a plane crossing a Point and parallel to a Plane.
 * SpinBox : enter the displacement value
 * : Create a Plane crossing a Line and perpendicular to a Plane.
 * SpinBox : enter the displacement value
 * : Create 3 Planes (XY, XZ and YZ) at center location of all selected Object(s).

Tag Boxes




 * Tag Boxes
 * : Create bounding boxes around each of selected object(s).
 * : Create one bounding box around all of selected object(s).

Script
Download the file compressed here WorkFeatures_2014_12_23.zip

you must unzip the zip and copy all the files in your macro directory.

1 : click Menu > Macro > Macros or the click the bottom "Open a dialog to let you execute a macro Recorded"



2 : one dialog box open

3 : The address of "Macro destination" (here C:\Users\your_user_name\AppData\Roaming\FreeCAD\)

In Ubuntu, this is normally /home/your_user_name/.FreeCAD



Links
The forum discussion MACRO:Work Feature 2014_12