Macro MoveToOrigin

Description
This macro translates the Placement of an object so that a selected location becomes its new origin. This may be useful when imported objects from other formats like STL or STEP are inconveniently located for further processing by FreeCAD.

Usage

 * Copy the macro into your Macro Directory. (You can copy and paste into the Macro Editor and save.)
 * First select, then run the macro. Undo is available.

The following selections are supported:

-- Single Vertex --   moved to origin

-- Single Line Segment -- mid-point moved to origin

-- Single Circle or Circular Arc -- center moved to origin

-- Single Face -- C.G. moved to origin

-- Single Object -- C.G. moved to origin (supports Solid, Shell, Compound and CompSolid)

-- Three Vertices -- Center of circle through the vertices moved to the origin (useful for tessellated circles)

Macro MoveToOrigin.FCMacro

Link
The discussion forum MoveToOrigin Macro