|Draft -> Offset|
The Offset tool offsets the selected object by a given distance on the current work plane. If no object is selected, you will be invited to select one.
How to use
- Select objects you wish to offset
- Press the button, or press then keys
- Click a point on the 3D view, or type a distance.
- Press or click the checkbox to check/uncheck the button. If continue mode is on, the Offset tool will restart after you finish or close it, allowing you to offset or copy the objects another time without pressing the Offset button again.
- Pressing or or clicking the button will make a copy of the objects, instead of moving them. If you keep pressed after clicking the second point, you will be able to place more copies, until you release the key.
- Press snapping your point to the nearest snap location, independently of the distance. while drawing to force
- Pressing constrain you to the current segment, instead of picking the closest one. will
- Press or the button to abort the current command.
The Offset tool can by used in macros and from the python console by using the following function:
offset (object,Vector,[copymode],[bind],[sym]): Offsets the given wire by applying the given Vector to its first vertex. If copymode is True, another object is created, otherwise the same object gets offsetted. If bind is True, and provided the wire is open, the original and the offsetted wires will be bound by their endpoints, forming a face. If sym is True, the offset is made on both sides, the total width being the length of the given vector. Returns the offsetted object (or its copy if copymode as True).
import FreeCAD,Draft Draft.offset(FreeCAD.ActiveDocument.ActiveObject,FreeCAD.Vector(2,2,0))