---
GuiCommand:
Name: Draft Offset
MenuLocation: Modification , Offset
Workbenches: Draft_Workbench, Arch_Workbench
Shortcut: **O** **S**
SeeAlso: Part_Offset2D
---
The Draft Offset command offsets each segment of a selected object over a given distance, or creates an offset copy of the selected object.
*Offsetting a Draft Wire*See also: Draft Snap and Draft Constrain.
- Optionally select one object. The object must lie on the current Draft working plane.
- There are several ways to invoke the command:
- Press the Offset button.
- Select the Modification → Offset option from the menu.
- Use the keyboard shortcut: O then S.
- If you have not yet selected an object: select an object in the 3D view.
- The Offset task panel opens. See Options for more information.
- To define the offset distance do one of the following:
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 0.22).
- If the OCC-style offset checkbox is checked a special offset style is used: open Draft Wires are offset on both sides, and new edges are connected with rounded corners. This only works for planar objects with at least two edges. Note that with this style a new non-parametric object is created, and if copy mode is off the original object is deleted.
- Press C or click the Copy checkbox to toggle copy mode. If copy mode is on, the command will create an offset copy instead of offsetting the original object.
- Holding down Alt before picking points in the 3D view will also toggle copy mode. While Alt is held down multiple offset points can be picked. Release Alt to finish the command and see the created copies.
- Hold down Shift to keep the offset distance linked to the current segment.
- Press S to switch Draft snapping on or off.
- Press Esc or the Close button to abort the command.
- To create an offset version of a Draft BSpline its points are offset individually, and from the new points a new spline is calculated. This new spline is not parallel to the original spline. For an exact parallel offset of a Draft BSpline the Part Offset2D command should be used.
- The Draft Offset command cannot handle Draft BezCurves. Use the Part Offset2D command instead.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To offset objects use the offset
method of the Draft module. The method can only handle Draft Wires, Draft Circles, Draft Rectangles, Draft Polygons and Draft BSplines.
offset_obj = offset(obj, delta, copy=False, bind=False, sym=False, occ=False)
-
obj
is the object to be offset. -
delta
contains the offset information:
- For [Draft Wires](Draft_Wire.md), [Draft Rectangles](Draft_Rectangle.md) and [Draft Polygons](Draft_Polygon.md) it is an offset vector that must be perpendicular to the first segment of the object.
- For [Draft Circles](Draft_Circle.md) it is the new radius.
- For [Draft BSplines](Draft_BSpline.md) it is a list of new points.
-
If
copy
isTrue
the original object is kept and a new object is created. -
If
bind
isTrue
a face is created by connecting the shape of the original object and the shape of its offset. This only works for open Draft Wires. -
If
sym
isTrue
, andbind
isTrue
as well, the offset is made on both sides of the original object, the total width being the length of the given vector. This only works for open Draft Wires. -
If
occ
isTrue
OCC-style offsetting is used. See Options. Ifocc
isTrue
thebind
andsym
arguments are ignored. -
offset_obj
is returned with the original offset object, or with the new object. Ifbind
isTrue
orocc
isTrue
, the new object is a[Part::Feature](Part_Feature.md)
object.
Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1500, 2000, 0)
p3 = App.Vector(4000, 0, 0)
wire = Draft.make_wire([p1, p2, p3])
doc.recompute()
vector = App.Vector(-200, 150, 0)
offset1 = Draft.offset(wire, vector, copy=True, bind=True, sym=True)
offset2 = Draft.offset(wire, 3*vector, copy=True)
offset3 = Draft.offset(wire, 6*vector, copy=True)
offset4 = Draft.offset(wire, 9*vector, copy=True)
offset5 = Draft.offset(wire, 1.5*vector, copy=True, occ=True)
doc.recompute()
⏵ documentation index > Draft > Draft Offset