Draft Workbench: Difference between revisions
(Marked this version for translation) |
(Updated the description of Draft_SelectGroup.) |
||
(27 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Page in progress}} |
|||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:32--> |
<!--T:32--> |
||
{{Docnav |
{{Docnav |
||
Line 20: | Line 20: | ||
<!--T:1--> |
<!--T:1--> |
||
The [[File:Workbench_Draft.svg|32px]] |
The [[File:Workbench_Draft.svg|32px]] '''Draft Workbench''' is primarily focused on the creation and modification of 2D objects in FreeCAD. But it is not restricted to the XY plane of the global coordinate system. Its objects can have any orientation and position in 3D space, and some Draft objects can either be planar or non-planar. |
||
<!--T:29--> |
<!--T:29--> |
||
Draft objects can be used for general drafting, similar to what can be done with Inkscape or AutoCAD. But they can also form the base for the creation of 3D objects in other workbenches. A [[Draft_Wire|Draft Wire]] may define the path of an [[Arch_Wall|Arch Wall]], a [[Draft_Polygon|Draft Polygon]] can be extruded with [[Part_Extrude|Part Extrude]], etc. Many of the [[#Modification|Draft modifier tools]] can be applied to 2D and 3D objects created with other workbenches as well. You can, for example, [[Draft_Move|move]] a [[Sketcher_Workbench|Sketch]] or create a [[Draft_OrthoArray|Draft OrthoArray]] from a [[Part_Workbench|Part]] object. |
|||
<!--T:109--> |
|||
The Draft Workbench also provides tools to define a [[Draft_SelectPlane|working plane]], a [[Draft_Snap_Grid|grid]], and a [[Draft_Snap|snapping system]] to precisely control the position of geometry. |
|||
<!--T:30--> |
<!--T:30--> |
||
If your primary goal is the production of complex 2D drawings and [[DXF|DXF]] files, and you don't need 3D modelling, FreeCAD may not be the right choice for you. You may wish to consider a dedicated software program for technical drafting instead, such as [https://en.wikipedia.org/wiki/LibreCAD LibreCAD] or [https://en.wikipedia.org/wiki/QCad QCad]. |
|||
</translate> |
</translate> |
||
[[Image:Draft_Workbench_Example.png |
[[Image:Draft_Workbench_Example.png]] |
||
<translate> |
<translate> |
||
<!--T:110--> |
|||
{{Caption|The image shows the [[Draft_Snap_Grid|grid]] aligned with the XY plane.<br> |
|||
On the left, in white, several planar objects.<br> |
|||
On the right a non-planar [[Draft_Wire|Draft Wire]] used as the Path Object of a [[Draft_PathArray|Draft PathArray]].}} |
|||
== |
== Drafting == <!--T:111--> |
||
<!--T: |
<!--T:112--> |
||
* [[Image:Draft_Line.svg|32px]] [[Draft_Line|Line]]: creates a straight line. |
|||
These are tools for creating objects. |
|||
<!--T: |
<!--T:113--> |
||
* [[Image: |
* [[Image:Draft_Wire.svg|32px]] [[Draft_Wire|Polyline]]: creates a polyline, a sequence of several connected line segments. |
||
* [[Image:Draft_Wire.svg|32px]] [[Draft_Wire|Polyline]]: draws a line made of multiple line segments (polyline). |
|||
* [[Image:Draft_Fillet.svg|32px]] [[Draft_Fillet|Fillet]]: draws a fillet (rounded corner) or a chamfer (straight line) between two simple [[Draft_Line|Lines]]. {{Version|0.19}} |
|||
* [[Image:Draft_Arc.svg|32px]] [[Draft_Arc|Arc]]: draws an arc segment from center, radius, start angle and end angle. |
|||
* [[Image:Draft_Arc_3Points.svg|32px]] [[Draft_Arc_3Points|Arc 3Points]]: draws a circular arc segment from three points that are located in the circumference. {{Version|0.19}} |
|||
* [[Image:Draft_Circle.svg|32px]] [[Draft_Circle|Circle]]: draws a circle from center and radius. |
|||
* [[Image:Draft_Ellipse.svg|32px]] [[Draft_Ellipse|Ellipse]]: draws an ellipse from two corner points. |
|||
* [[Image:Draft_Rectangle.svg|32px]] [[Draft_Rectangle|Rectangle]]: draws a rectangle from two corner points. |
|||
* [[Image:Draft_Polygon.svg|32px]] [[Draft_Polygon|Polygon]]: draws a regular polygon from center, radius, and number of sides. |
|||
* [[Image:Draft_BSpline.svg|32px]] [[Draft_BSpline|BSpline]]: draws a B-Spline from a series of points. |
|||
* [[Image:Draft_CubicBezCurve.svg|32px]] [[Draft_CubicBezCurve|Cubic Bezier Curve]]: draws a Bezier curve of third degree by dragging two points. {{Version|0.19}} |
|||
* [[Image:Draft_BezCurve.svg|32px]] [[Draft_BezCurve|Bezier Curve]]: draws a Bezier curve from a series of points. |
|||
* [[Image:Draft_Point.svg|32px]] [[Draft_Point|Point]]: inserts a point object. |
|||
* [[Image:Draft_Facebinder.svg|32px]] [[Draft_Facebinder|Facebinder]]: creates a new object from selected faces on existing objects. |
|||
* [[Image:Draft_ShapeString.svg|32px]] [[Draft_ShapeString|ShapeString]]: inserts a compound shape representing a text string at a given point. |
|||
<!--T:114--> |
|||
* [[Image:Draft_Fillet.svg|32px]] [[Draft_Fillet|Fillet]]: creates a fillet, a rounded corner, or a chamfer, a straight edge, between two [[Draft_Line|Draft Lines]]. {{Version|0.19}} |
|||
<!--T: |
<!--T:115--> |
||
* [[Image: |
* [[Image:Draft_Arc.svg|32px]] Arc tools |
||
* [[Image:Draft_Dimension.svg|32px]] [[Draft_Dimension|Dimension]]: draws a dimension annotation. |
|||
* [[Image:Draft_Label.svg|32px]] [[Draft_Label|Label]]: places a label with an arrow pointing to a selected element. |
|||
* [[Image:Draft_AnnotationStyleEditor.svg|32px]] [[Draft_AnnotationStyleEditor|Annotation style editor]]: opens an editor to change the annotation style of these objects. {{Version|0.19}} |
|||
<!--T:116--> |
|||
:* [[Image:Draft_Arc.svg|32px]] [[Draft_Arc|Arc]]: creates a circular arc from a center, a radius, a start angle and an aperture angle. |
|||
<!--T: |
<!--T:117--> |
||
:* [[Image:Draft_Arc_3Points.svg|32px]] [[Draft_Arc_3Points|Arc by 3 points]]: creates a circular arc from three points that define its circumference. {{Version|0.19}} |
|||
These are tools for modifying existing objects. They work on selected objects, but if no object is selected, you will be invited to select one. |
|||
<!--T: |
<!--T:118--> |
||
* [[Image:Draft_Circle.svg|32px]] [[Draft_Circle|Circle]]: creates a circle from a center and a radius. |
|||
Many operation tools (move, rotate, array, etc.) also work on solid objects ([[Part_Workbench|Part]], [[PartDesign_Workbench|PartDesign]], [[Arch_Workbench|Arch]], etc.). |
|||
<!--T: |
<!--T:119--> |
||
* [[Image: |
* [[Image:Draft_Ellipse.svg|32px]] [[Draft_Ellipse|Ellipse]]: creates an ellipse from two points defining a rectangle in which the ellipse will fit. |
||
* [[Image:Draft_Rotate.svg|32px]] [[Draft_Rotate|Rotate]]: rotates objects from a start angle to an end angle. |
|||
* [[Image:Draft_Scale.svg|32px]] [[Draft_Scale|Scale]]: scales selected objects around a base point. |
|||
* [[Image:Draft_Mirror.svg|32px]] [[Draft_Mirror|Mirror]]: mirrors the selected objects. |
|||
* [[Image:Draft_Offset.svg|32px]] [[Draft_Offset|Offset]]: offsets segments of an object a certain distance. |
|||
* [[Image:Draft_Trimex.svg|32px]] [[Draft_Trimex|Trim/Extend (Trimex)]]: trims or extends an object. |
|||
* [[Image:Draft_Stretch.svg|32px]] [[Draft_Stretch|Stretch]]: stretches the selected objects. |
|||
<!--T: |
<!--T:120--> |
||
* [[Image: |
* [[Image:Draft_Rectangle.svg|32px]] [[Draft_Rectangle|Rectangle]]: creates a rectangle from two points. |
||
* [[Image:Draft_Array.svg|32px]] Array tools. |
|||
** [[Image:Draft_OrthoArray.svg|32px]] [[Draft_OrthoArray|Ortho Array]]: creates an orthogonal array from the selected object. It can also create [[App_Link|App Link]] copies. {{Version|0.19}} |
|||
** [[File:Draft_PolarArray.svg|32px]] [[Draft_PolarArray|Polar Array]]: creates an array in a polar pattern, that is, sweeping an angle. It can also create [[App_Link|App Link]] copies. {{Version|0.19}} |
|||
** [[File:Draft_CircularArray.svg|32px]] [[Draft_CircularArray|Circular Array]]: creates an array in a circular pattern, that is, starting from a center and moving outwards radially. It can also create [[App_Link|App Link]] copies. {{Version|0.19}} |
|||
** [[Image:Draft_PathArray.svg|32px]] [[Draft_PathArray|Path Array]]: creates an array of objects by placing the copies along a path. |
|||
** [[Image:Draft_PathLinkArray.svg|32px]] [[Draft_PathLinkArray|Path LinkArray]]: like [[Image:Draft_PathArray.svg|32px]] [[Draft_PathArray|Path Array]], but creates [[App_Link|App Links]] instead of regular copies. {{Version|0.19}} |
|||
** [[Image:Draft_PointArray.svg|32px]] [[Draft_PointArray|Point Array]]: creates an array of objects by placing the copies at certain points. |
|||
** [[File:Draft_PointLinkArray.svg|32px]] [[Draft_PointLinkArray|Point LinkArray]]: like [[Image:Draft_PointArray.svg|32px]] [[Draft_PointArray|Point Array]], but creates [[App_Link|App Links]] instead of regular copies. {{Version|0.19}} |
|||
<!--T: |
<!--T:121--> |
||
* [[Image: |
* [[Image:Draft_Polygon.svg|32px]] [[Draft_Polygon|Polygon]]: creates a regular polygon from a center and a radius. |
||
* [[Image:Draft_SubelementHighlight.svg|32px]] [[Draft_SubelementHighlight|Subelement highlight]]: enters an edit mode that allows editing different objects. {{Version|0.19}} |
|||
<!--T: |
<!--T:122--> |
||
* [[Image: |
* [[Image:Draft_BSpline.svg|32px]] [[Draft_BSpline|B-spline]]: creates a B-spline curve from several points. |
||
* [[Image:Draft_Split.svg|32px]] [[Draft_Split|Split]]: splits a wire into two at a point. |
|||
* [[Image:Draft_Upgrade.svg|32px]] [[Draft_Upgrade|Upgrade]]: upgrades objects into a higher-level object. |
|||
* [[Image:Draft_Downgrade.svg|32px]] [[Draft_Downgrade|Downgrade]]: downgrades objects into lower-level objects. |
|||
<!--T: |
<!--T:123--> |
||
* [[Image:Draft_CubicBezCurve.svg|32px]] Bézier tools |
|||
* [[Image:Draft_WireToBSpline.svg|32px]] [[Draft_WireToBSpline|Wire to BSpline]]: converts a wire to a B-Spline and vice-versa. |
|||
* [[Image:Draft_Draft2Sketch.svg|32px]] [[Draft_Draft2Sketch|Draft to Sketch]]: converts a Draft object to a [[Sketcher Workbench|Sketcher Workbench]] Sketch and vice-versa. |
|||
* [[Image:Draft_Slope.svg|32px]] [[Draft Slope|Slope]]: changes the elevation slope of the currently selected [[Draft Line|Draft Line]] or [[Draft Wire|Draft Wire]]. |
|||
* [[Image:Draft_FlipDimension.svg|32px]] [[Draft_FlipDimension|Flip Dimension]]: flips the orientation of the text of a [[Draft Dimension|Draft Dimension]]. |
|||
<!--T: |
<!--T:124--> |
||
* [[Image: |
:* [[Image:Draft_CubicBezCurve.svg|32px]] [[Draft_CubicBezCurve|Cubic Bézier curve]]: creates a Bézier curve of the third degree. {{Version|0.19}} |
||
<!--T:125--> |
|||
:* [[Image:Draft_BezCurve.svg|32px]] [[Draft_BezCurve|Bézier curve]]: creates a Bézier curve from several points. |
|||
<!--T:126--> |
|||
* [[Image:Draft_Point.svg|32px]] [[Draft_Point|Point]]: creates a simple point. |
|||
<!--T:127--> |
|||
* [[Image:Draft_Facebinder.svg|32px]] [[Draft_Facebinder|Facebinder]]: creates a surface object from selected faces. |
|||
<!--T:128--> |
|||
* [[Image:Draft_ShapeString.svg|32px]] [[Draft_ShapeString|ShapeString]]: creates a compound shape that represents a text string. |
|||
<!--T:190--> |
|||
* [[Image:Draft_Hatch.svg|32px]] [[Draft_Hatch|Hatch]]: creates hatches on the planar faces of a selected object. {{Version|0.20}} |
|||
== Annotation == <!--T:129--> |
|||
<!--T:130--> |
|||
* [[Image:Draft_Text.svg|32px]] [[Draft_Text|Text]]: creates a multi-line text at a given point. |
|||
<!--T:131--> |
|||
* [[Image:Draft_Dimension.svg|32px]] [[Draft_Dimension|Dimension]]: creates a linear dimension, a radial dimension or an angular dimension. |
|||
<!--T:132--> |
|||
* [[Image:Draft_Label.svg|32px]] [[Draft_Label|Label]]: creates a multi-line text with a 2-segment leader line and an arrow. |
|||
<!--T:133--> |
|||
* [[Image:Draft_AnnotationStyleEditor.svg|32px]] [[Draft_AnnotationStyleEditor|Annotation styles...]]: allows you to define styles that affect the visual properties of annotation-like objects. {{Version|0.19}} |
|||
== Modification == <!--T:134--> |
|||
<!--T:135--> |
|||
* [[Image:Draft_Move.svg|32px]] [[Draft_Move|Move]]: moves or copies selected objects from one point to another. |
|||
<!--T:136--> |
|||
* [[Image:Draft_Rotate.svg|32px]] [[Draft_Rotate|Rotate]]: rotates or copies selected objects around a center point by a given angle. |
|||
<!--T:137--> |
|||
* [[Image:Draft_Scale.svg|32px]] [[Draft_Scale|Scale]]: scales or copies selected objects around a base point. |
|||
<!--T:138--> |
|||
* [[Image:Draft_Mirror.svg|32px]] [[Draft_Mirror|Mirror]]: creates mirrored copies from selected objects. |
|||
<!--T:139--> |
|||
* [[Image:Draft_Offset.svg|32px]] [[Draft_Offset|Offset]]: offsets each segment of a selected object over a given distance, or creates an offset copy of the selected object. |
|||
<!--T:140--> |
|||
* [[Image:Draft_Trimex.svg|32px]] [[Draft_Trimex|Trimex]]: trims or extends a selected object. |
|||
<!--T:141--> |
|||
* [[Image:Draft_Stretch.svg|32px]] [[Draft_Stretch|Stretch]]: stretches objects by moving selected points. |
|||
<!--T:142--> |
|||
* [[Image:Draft_Clone.svg|32px]] [[Draft_Clone|Clone]]: creates linked copies, clones, of selected objects. |
|||
<!--T:143--> |
|||
* [[Image:Draft_OrthoArray.svg|32px]] Array tools |
|||
<!--T:144--> |
|||
:* [[Image:Draft_OrthoArray.svg|32px]] [[Draft_OrthoArray|Array]]: creates an orthogonal array from a selected object. It can optionally create a [[App_Link|Link]] array. {{Version|0.19}} |
|||
<!--T:145--> |
|||
:* [[File:Draft_PolarArray.svg|32px]] [[Draft_PolarArray|Polar array]]: creates an array from a selected object by placing copies along a circumference. It can optionally create a [[App_Link|Link]] array. {{Version|0.19}} |
|||
<!--T:146--> |
|||
:* [[File:Draft_CircularArray.svg|32px]] [[Draft_CircularArray|Circular array]]: creates an array from a selected object by placing copies along concentric circumferences. It can optionally create a [[App_Link|Link]] array. {{Version|0.19}} |
|||
<!--T:147--> |
|||
:* [[Image:Draft_PathArray.svg|32px]] [[Draft_PathArray|Path array]]: creates an array from a selected object by placing copies along a path. |
|||
<!--T:148--> |
|||
:* [[Image:Draft_PathLinkArray.svg|32px]] [[Draft_PathLinkArray|Path Link array]]: idem, but create a [[App_Link|Link]] array instead of a regular array. {{Version|0.19}} |
|||
<!--T:149--> |
|||
:* [[Image:Draft_PointArray.svg|32px]] [[Draft_PointArray|Point Array]]: creates an array from a selected object by placing copies at the points from a point compound. |
|||
<!--T:150--> |
|||
:* [[File:Draft_PointLinkArray.svg|32px]] [[Draft_PointLinkArray|Point Link array]]: idem, but create a [[App_Link|Link]] array instead of a regular array. {{Version|0.19}} |
|||
<!--T:151--> |
|||
* [[Image:Draft_Edit.svg|32px]] [[Draft_Edit|Edit]]: puts selected objects in Draft Edit mode. In this mode the properties of objects can be edited graphically. |
|||
<!--T:152--> |
|||
* [[Image:Draft_SubelementHighlight.svg|32px]] [[Draft_SubelementHighlight|Subelement highlight]]: temporarily highlights selected objects, or the base objects of selected objects. |
|||
<!--T:153--> |
|||
* [[Image:Draft_Join.svg|32px]] [[Draft_Join|Join]]: joins [[Draft_Line|Draft Lines]] and [[Draft_Wire|Draft Wires]] into a single wire. |
|||
<!--T:154--> |
|||
* [[Image:Draft_Split.svg|32px]] [[Draft_Split|Split]]: splits a [[Draft_Line|Draft Line]] or [[Draft_Wire|Draft Wire]] at a specified point or edge. |
|||
<!--T:155--> |
|||
* [[Image:Draft_Upgrade.svg|32px]] [[Draft_Upgrade|Upgrade]]: upgrades selected objects. |
|||
<!--T:156--> |
|||
* [[Image:Draft_Downgrade.svg|32px]] [[Draft_Downgrade|Downgrade]]: downgrades selected objects. |
|||
<!--T:157--> |
|||
* [[Image:Draft_WireToBSpline.svg|32px]] [[Draft_WireToBSpline|Wire to B-spline]]: converts [[Draft_Wire|Draft Wires]] to [[Draft_BSpline|Draft BSplines]] and vice versa. |
|||
<!--T:158--> |
|||
* [[Image:Draft_Draft2Sketch.svg|32px]] [[Draft_Draft2Sketch|Draft to Sketch]]: converts [[Draft Workbench|Draft]] objects to [[Sketcher_NewSketch|Sketcher Sketches]] and vice versa. |
|||
<!--T:159--> |
|||
* [[Image:Draft_Slope.svg|32px]] [[Draft Slope|Set slope]]: slopes selected [[Draft_Line|Draft Lines]] or [[Draft_Wire|Draft Wires]] by increasing, or decreasing, the Z coordinate of all points after the first one. |
|||
<!--T:160--> |
|||
* [[Image:Draft_FlipDimension.svg|32px]] [[Draft_FlipDimension|Flip dimension]]: rotates the dimension text of selected [[Draft_Dimension|Draft Dimensions]] 180° around the dimension line. |
|||
<!--T:161--> |
|||
* [[Image:Draft_Shape2DView.svg|32px]] [[Draft_Shape2DView|Shape 2D view]]: creates 2D projections from selected objects. |
|||
== Draft Tray == <!--T:57--> |
== Draft Tray == <!--T:57--> |
||
Line 117: | Line 200: | ||
[[Image:Draft_tray_default.png]] |
[[Image:Draft_tray_default.png]] |
||
<translate> |
<translate> |
||
<!--T:75--> |
|||
Its tools are also available in the {{MenuCommand|Draft → Utilities}} menu: |
|||
<!--T:59--> |
<!--T:59--> |
||
* [[Image: |
* [[Image:Draft_tray_button_plane.png]] [[Draft_SelectPlane|Select Plane]]: selects the current Draft working plane. Also available in the menu: {{MenuCommand|Draft → Utilities → [[Image:Draft_SelectPlane.svg|16px]] Select Plane}}. |
||
<!--T:76--> |
<!--T:76--> |
||
* [[Image: |
* [[Image:Draft_tray_button_style.png]] [[Draft_SetStyle|Set style]]: sets the default style for new objects. Also available in the menu: {{MenuCommand|Draft → Utilities → [[Image:Draft_SetStyle.svg|16px]] Set style}}. {{Version|0.19}} |
||
<!--T:77--> |
<!--T:77--> |
||
* [[Image: |
* [[Image:Draft_tray_button_construction.png]] [[Draft_ToggleConstructionMode|Toggle construction mode]]: switches Draft construction mode on or off. Also available in the menu: {{MenuCommand|Draft → Utilities → [[Image:Draft_ToggleConstructionMode.svg|16px]] Toggle construction mode}}. |
||
<!--T:78--> |
<!--T:78--> |
||
* [[Image: |
* [[Image:Draft_tray_button_layer.png]] [[Draft_AutoGroup|AutoGroup]]: changes the active [[Draft_Layer|Draft Layer]] or, optionally, the active [[Std_Group|Std Group]] or group-like [[Arch_Workbench|Arch]] object. |
||
== Draft annotation scale widget == <!--T:69--> |
== Draft annotation scale widget == <!--T:69--> |
||
Line 145: | Line 225: | ||
<!--T:73--> |
<!--T:73--> |
||
The [[Draft_snap_widget|Draft snap widget]] can be used as an alternative for the [[# |
The [[Draft_snap_widget|Draft snap widget]] can be used as an alternative for the [[#Draft_Snap_toolbar|Draft Snap toolbar]]. {{Version|0.19}} |
||
</translate> |
</translate> |
||
Line 156: | Line 236: | ||
The Draft Snap toolbar allows selecting the active snap options. The buttons belonging to active options stay depressed. For general information about snapping see: [[Draft_Snap|Draft Snap]]. |
The Draft Snap toolbar allows selecting the active snap options. The buttons belonging to active options stay depressed. For general information about snapping see: [[Draft_Snap|Draft Snap]]. |
||
<!--T: |
<!--T:162--> |
||
* [[Image:Draft_Snap_Lock.svg|32px]] [[Draft_Snap_Lock| |
* [[Image:Draft_Snap_Lock.svg|32px]] [[Draft_Snap_Lock|Snap Lock]]: enables or disables snapping globally. |
||
* [[Image:Draft_Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Endpoint]]: snaps to the endpoints of line, arc and spline segments. |
|||
<!--T:163--> |
|||
* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Midpoint]]: snaps to the middle point of line and arc segments. |
|||
* [[Image: |
* [[Image:Draft_Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Snap Endpoint]]: snaps to the endpoints of edges. |
||
* [[Image:Draft_Snap_Angle.svg|32px]] [[Draft_Snap_Angle|Angle]]: snaps to the special cardinal points of circles and arcs, at 45° and 90°. |
|||
<!--T:164--> |
|||
* [[Image:Draft_Snap_Intersection.svg|32px]] [[Draft_Snap_Intersection|Intersection]]: snaps to the intersection of two line or arc segments. Hover the mouse over the two desired objects to activate their intersection snaps. |
|||
* [[Image: |
* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Snap Midpoint]]: snaps to the midpoint of edges. |
||
* [[Image:Draft_Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Extension]]: snaps on an imaginary line that extends beyond the endpoints of line segments. Hover the mouse over the desired object to activate its extension snap. |
|||
<!--T:165--> |
|||
* [[Image:Draft_Snap_Parallel.svg|32px]] [[Draft_Snap_Parallel|Parallel]]: snaps on an imaginary line parallel to a line segment. Hover the mouse over the desired object to activate its parallel snap. |
|||
* [[Image:Draft_Snap_Center.svg|32px]] [[Draft_Snap_Center|Snap Center]]: snaps to the center point of faces and circular edges, and to the {{PropertyData|Placement}} point of [[Draft_WorkingPlaneProxy|Draft WorkingPlaneProxies]] and [[Arch_BuildingPart|Arch BuildingParts]]. |
|||
* [[Image:Draft_Snap_Special.svg|32px]] [[Draft_Snap_Special|Special]]: snaps on special points defined by the object. |
|||
* [[Image:Draft_Snap_Near.svg|32px]] [[Draft_Snap_Near|Near]]: snaps to the closest point or edge on the nearest object. |
|||
<!--T:166--> |
|||
* [[Image:Draft_Snap_Ortho.svg|32px]] [[Draft_Snap_Ortho|Ortho]]: snaps on imaginary lines that cross the last point, and extend at 0°, 45° and 90°. |
|||
* [[Image: |
* [[Image:Draft_Snap_Angle.svg|32px]] [[Draft_Snap_Angle|Snap Angle]]: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°. |
||
* [[Image:Draft_Snap_WorkingPlane.svg|32px]] [[Draft_Snap_WorkingPlane|Working plane]]: always places the snapped point on the current [[Draft SelectPlane|working plane]], even if you snap to a point outside that working plane. |
|||
<!--T:167--> |
|||
* [[Image:Draft_Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Dimensions]]: shows temporary X and Y dimensions while snapping. |
|||
* [[Image: |
* [[Image:Draft_Snap_Intersection.svg|32px]] [[Draft_Snap_Intersection|Snap Intersection]]: snaps to the intersection of two edges. |
||
<!--T:168--> |
|||
* [[Image:Draft_Snap_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Snap Perpendicular]]: snaps to the perpendicular point on edges. |
|||
<!--T:169--> |
|||
* [[Image:Draft_Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Snap Extension]]: snaps to an imaginary line that extends beyond the endpoints of straight edges. |
|||
<!--T:170--> |
|||
* [[Image:Draft_Snap_Parallel.svg|32px]] [[Draft_Snap_Parallel|Snap Parallel]]: snaps to an imaginary line parallel to straight edges. |
|||
<!--T:171--> |
|||
* [[Image:Draft_Snap_Special.svg|32px]] [[Draft_Snap_Special|Snap Special]]: snaps to special points defined by the object. |
|||
<!--T:172--> |
|||
* [[Image:Draft_Snap_Near.svg|32px]] [[Draft_Snap_Near|Snap Near]]: snaps to the nearest point on faces or edges. |
|||
<!--T:173--> |
|||
* [[Image:Draft_Snap_Ortho.svg|32px]] [[Draft_Snap_Ortho|Snap Ortho]]: snaps to imaginary lines that cross the previous point at 0°, 45°, 90° and 135°. |
|||
<!--T:174--> |
|||
* [[Image:Draft_Snap_Grid.svg|32px]] [[Draft_Snap_Grid|Snap Grid]]: snaps to the intersections of grid lines. |
|||
<!--T:175--> |
|||
* [[Image:Draft_Snap_WorkingPlane.svg|32px]] [[Draft_Snap_WorkingPlane|Snap WorkingPlane]]: projects the snap point onto the current [[Draft_SelectPlane|working plane]]. |
|||
<!--T:176--> |
|||
* [[Image:Draft_Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Snap Dimensions]]: shows temporary X and Y dimensions. |
|||
<!--T:177--> |
|||
* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_ToggleGrid|Toggle Grid]]: switches the grid on or off. |
|||
== Draft utility tools toolbar == <!--T:22--> |
== Draft utility tools toolbar == <!--T:22--> |
||
<!--T: |
<!--T:178--> |
||
* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer|Layer]]: creates a |
* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer|Layer]]: creates a [[Draft_Layer|Draft Layer]]. {{Version|0.19}} |
||
* [[Image:Draft_WorkingPlaneProxy.svg|32px]] [[Draft_WorkingPlaneProxy|Working Plane Proxy]]: create a proxy object to store the current [[Draft_SelectPlane|Working Plane]] position. |
|||
<!--T:191--> |
|||
* [[Image:Draft_ToggleDisplayMode.svg|32px]] [[Draft_ToggleDisplayMode|Toggle display mode]]: switches the display mode of selected objects between "Flat Lines" and "Wireframe". |
|||
* [[Image: |
* [[Image:Draft_AddNamedGroup.svg|32px]] [[Draft_AddNamedGroup|Add a new named group]]: creates a named [[Std_Group|Std Group]] and moves selected objects to that group. {{Version|0.20}} |
||
* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group contents]]: selects the contents of a selected [[Std Group|Std Group]] or [[Draft_Layer|Draft Layer]]. |
|||
<!--T:181--> |
|||
* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: add selected objects to the Construction group. |
|||
* [[Image: |
* [[Image:Draft_AddToGroup.svg|32px]] [[Draft_AddToGroup|Move to group...]]: moves objects to a [[Std_Group|Std Group]]. It can also ungroup objects. |
||
<!--T:182--> |
|||
* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group]]: selects the contents of [[Std_Group|Std Groups]] or group-like [[Arch_Workbench|Arch]] objects. |
|||
<!--T:183--> |
|||
* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: moves objects to the [[Draft_ToggleConstructionMode|Draft construction group]]. |
|||
<!--T:180--> |
|||
* [[Image:Draft_ToggleDisplayMode.svg|32px]] [[Draft_ToggleDisplayMode|Toggle normal/wireframe display]]: switches the {{PropertyView|Display Mode}} property of selected objects between {{Value|Flat Lines}} and {{Value|Wireframe}}. |
|||
<!--T:179--> |
|||
* [[Image:Draft_WorkingPlaneProxy.svg|32px]] [[Draft_WorkingPlaneProxy|Create working plane proxy]]: creates a working plane proxy to save the current [[Draft_SelectPlane|Draft working plane]]. |
|||
== Additional tools == <!--T:64--> |
== Additional tools == <!--T:64--> |
||
Line 190: | Line 312: | ||
The {{MenuCommand|Draft → Utilities}} menu contains several tools. Most of them can also be accessed from toolbars or the [[Draft_Tray|Draft Tray]] and have already been mentioned above. For the following tools this is not the case: |
The {{MenuCommand|Draft → Utilities}} menu contains several tools. Most of them can also be accessed from toolbars or the [[Draft_Tray|Draft Tray]] and have already been mentioned above. For the following tools this is not the case: |
||
<!--T: |
<!--T:186--> |
||
* [[Image: |
* [[Image:Draft_ApplyStyle.svg|32px]] [[Draft_ApplyStyle|Apply current style]]: applies the current style settings to selected objects. |
||
* [[Image:Draft_ApplyStyle.svg|32px]] [[Draft_ApplyStyle|Apply current style]]: applies the current style to selected objects and groups. |
|||
<!--T:184--> |
|||
* [[Image:Draft_ShowSnapBar.svg|32px]] [[Draft_ShowSnapBar|Show snap bar]]: shows the [[#Draft_Snap_toolbar|Draft Snap toolbar]]. |
|||
* [[Image:Draft_Heal.svg|32px]] [[Draft_Heal|Heal]]: heals problematic Draft objects found in very old files. |
|||
<!--T:185--> |
|||
* [[Image:Draft_ToggleContinueMode.svg|32px]] [[Draft_ToggleContinueMode|Toggle continue mode]]: switches continue mode on or off. |
|||
<!--T:187--> |
|||
* [[Image:Draft_ShowSnapBar.svg|32px]] [[Draft_ShowSnapBar|Show snap toolbar]]: shows the [[#Draft_Snap_toolbar|Draft Snap toolbar]]. |
|||
== Additional features == <!--T:6--> |
== Additional features == <!--T:6--> |
||
<!--T:7--> |
<!--T:7--> |
||
* [[ |
* [[Draft_SelectPlane|Working plane]]: the plane in the [[3D_view|3D view]] where new Draft objects are created. |
||
* [[ |
* [[Draft_Snap|Snapping]]: select exact geometric points on, or defined by, existing objects or the grid. |
||
* [[ |
* [[Draft_Constrain|Constraining]]: for each subsequent point you can constrain the movement of the cursor to the X, Y, or Z direction. |
||
* [[ |
* [[Draft_ToggleConstructionMode|Construction mode]]: places new Draft objects in a dedicated group making it easier to hide or delete them. |
||
* [[Draft_Pattern|Pattern]]: Draft objects with a |
* [[Draft_Pattern|Pattern]]: Draft objects with a {{PropertyData|Make Face}} property can display an SVG pattern instead of a solid face color. |
||
== Tree view context menu == <!--T:79--> |
== Tree view context menu == <!--T:79--> |
||
Line 209: | Line 338: | ||
The following additional options are available in the [[Tree_view|Tree view]] context menu: |
The following additional options are available in the [[Tree_view|Tree view]] context menu: |
||
=== |
=== Default options === <!--T:192--> |
||
<!--T:82--> |
<!--T:82--> |
||
If there is |
If there is an active document the context menu contains one additional sub-menu: |
||
* {{MenuCommand|Utilities}}: a subset of the tools available in the main Draft Utilities menu. |
* {{MenuCommand|Utilities}}: a subset of the tools available in the main Draft Utilities menu. |
||
Line 229: | Line 358: | ||
<!--T:88--> |
<!--T:88--> |
||
* [[Image:Draft_Layer.svg|32px]] Merge layer duplicates: |
* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer#Layer_container_options|Merge layer duplicates]]: merges all layers with the same base label. This does not work in FreeCAD version 0.19. |
||
<!--T:89--> |
<!--T:89--> |
||
* [[Image:Draft_NewLayer.svg|32px]] [[Draft_Layer|Add new layer]]: adds a new layer to the current document. |
* [[Image:Draft_NewLayer.svg|32px]] [[Draft_Layer#Layer_container_options|Add new layer]]: adds a new layer to the current document. |
||
=== Layer options === <!--T:90--> |
=== Layer options === <!--T:90--> |
||
Line 240: | Line 369: | ||
<!--T:92--> |
<!--T:92--> |
||
* [[Image:button_right.svg|32px]] [[Draft_AutoGroup|Activate this layer]]: |
* [[Image:button_right.svg|32px]] [[Draft_AutoGroup|Activate this layer]]: activates the selected layer. |
||
<!--T:93--> |
<!--T:93--> |
||
Line 251: | Line 380: | ||
<!--T:96--> |
<!--T:96--> |
||
* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_WorkingPlaneProxy# |
* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_WorkingPlaneProxy#Context_menu|Write camera position]]: updates the {{PropertyView|View Data}} property of the working plane proxy with the current [[3D_view|3D view]] camera settings. |
||
<!--T:97--> |
<!--T:97--> |
||
* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_WorkingPlaneProxy# |
* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_WorkingPlaneProxy#Context_menu|Write objects state]]: updates the {{PropertyView|Visibility Map}} property of the working plane proxy with the current visibility state of objects in the document. |
||
== 3D view context menu == <!--T:98--> |
== 3D view context menu == <!--T:98--> |
||
Line 261: | Line 390: | ||
The following additional options are available in the [[3D_view|3D view]] context menu: |
The following additional options are available in the [[3D_view|3D view]] context menu: |
||
=== |
=== Default options === <!--T:193--> |
||
<!--T:101--> |
<!--T:101--> |
||
If there is |
If there is an active document the context menu contains one additional sub-menu: |
||
* {{MenuCommand|Utilities}}: a subset of the tools available in the main Draft Utilities menu. |
|||
=== Selection options === <!--T:102--> |
|||
<!--T:103--> |
|||
If there is a selection the context menu contains two additional sub-menus: |
|||
* {{MenuCommand|Draft}}: tools for [[#Drawing_objects|drawing objects]] and [[#Modifying_objects|modifying objects]]. |
|||
* {{MenuCommand|Utilities}}: a subset of the tools available in the main Draft Utilities menu. |
* {{MenuCommand|Utilities}}: a subset of the tools available in the main Draft Utilities menu. |
||
Line 280: | Line 402: | ||
<!--T:67--> |
<!--T:67--> |
||
* [[Image:Draft_Array.svg|32px]] [[Draft_Array|Array]]: creates a polar or |
* [[Image:Draft_Array.svg|32px]] [[Draft_Array|Array]]: creates an orthogonal array from a selected object. The created array can be turned into a [[Draft_PolarArray|polar array]] or a [[Draft_CircularArray|circular array]] by changing its {{PropertyData|Array Type}} property. {{Obsolete|0.19}} |
||
<!--T:104--> |
<!--T:104--> |
||
* [[Image:Draft_Drawing.svg|32px]] [[Draft_Drawing|Drawing]]: |
* [[Image:Draft_Drawing.svg|32px]] [[Draft_Drawing|Drawing]]: inserts views of selected objects into a [[Drawing_Workbench|drawing]] page. {{Obsolete|0.17}} |
||
<!--T:105--> |
|||
These [[3D_view|3D view]] context menu options are still available when the [[Draft_Wire|Draft Wire]], [[Draft_BSpline|Draft BSpline]], [[Draft_CubicBezCurve|Draft CubicBezCurve]] or [[Draft_BezCurve|Draft BezCurve]] command is active but will be removed in the near future: |
|||
<!--T:106--> |
|||
* [[Image:Draft_UndoLine.svg|32px]] [[Draft_Wire#Options|Undo last segment]]: use the {{button|[[Image:Draft_UndoLine.svg|16px]] Undo}} button in the task panel of the command instead. {{Obsolete|0.20}} |
|||
<!--T:107--> |
|||
* [[Image:Draft_FinishLine.svg|32px]] [[Draft_Wire#Options|Finish line]]: use the {{Button|[[Image:Draft_FinishLine.svg|16px]] Finish}} button in the task panel of the command instead. {{Obsolete|0.20}} |
|||
<!--T:108--> |
|||
* [[Image:Draft_CloseLine.svg|32px]] [[Draft_Wire#Options|Close line]]: use the {{Button|[[Image:Draft_CloseLine.svg|16px]] Close}} button in the task panel of the command instead. {{Obsolete|0.20}} |
|||
== Preferences == <!--T:25--> |
== Preferences == <!--T:25--> |
||
<!--T:28--> |
<!--T:28--> |
||
* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences|Preferences]]: general preferences for the |
* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences|Preferences]]: general preferences for the Draft Workbench. |
||
<!--T:188--> |
|||
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences|Import Export Preferences]]: preferences available for importing from and exporting to different file formats. |
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences|Import Export Preferences]]: preferences available for importing from and exporting to different file formats. |
||
Line 306: | Line 418: | ||
<!--T:4--> |
<!--T:4--> |
||
The Draft Workbench provides FreeCAD with importers and exporters for several file formats. These are used by the [[Std_Import|Std Import]] and [[Std_Export|Std Export]] commands. |
|||
These are functions for opening, importing or exporting other file formats. Opening will open a new document with the contents of the file, while importing will append the contents of the file to the current document. Export will save the selected objects to a file. If nothing is selected, all objects will be exported. Be aware that the purpose of the Draft Workbench is to work with 2D objects, so those import routines focus only on 2D objects, and although DXF and OCA formats also support object definitions in 3D space (objects are not necessarily flat), they will not import volumetric objects such as meshes, 3D surfaces, etc., but rather lines, circles, texts or flat shapes. Currently supported file formats are: |
|||
The Draft Workbench provides FreeCAD with importers and exporters for the following file formats: |
|||
<!--T:5--> |
<!--T:5--> |
||
* [[Draft_DXF|Autodesk .DXF]]: imports and exports [http://en.wikipedia.org/wiki/AutoCAD_DXF Drawing Exchange Format] files |
* [[Draft_DXF|Autodesk .DXF]]: imports and exports [http://en.wikipedia.org/wiki/AutoCAD_DXF Drawing Exchange Format] files. See also [[FreeCAD_and_DXF_Import|FreeCAD and DXF Import]]. |
||
* [[Draft_DXF|Autodesk .DWG]]: imports and exports DWG files via |
* [[Draft_DXF|Autodesk .DWG]]: imports and exports DWG files via an external DWG converter. See also [[FreeCAD_and_DWG_Import|FreeCAD and DWG Import]]. |
||
* [[Draft_SVG|Scalable Vector Graphics .SVG]]: imports and exports [http://en.wikipedia.org/wiki/Scalable_Vector_Graphics Scalable Vector Graphics] files |
* [[Draft_SVG|Scalable Vector Graphics .SVG]]: imports and exports [http://en.wikipedia.org/wiki/Scalable_Vector_Graphics Scalable Vector Graphics] files. |
||
* [[Draft_OCA|Open Cad format .OCA]]: imports and exports |
* [[Draft_OCA|Open Cad format .OCA]]: imports and exports [http://groups.google.com/group/open_cad_format OCA/GCAD] files. |
||
* [[Draft_DAT|Airfoil Data Format .DAT]]: imports DAT files describing |
* [[Draft_DAT|Airfoil Data Format .DAT]]: imports DAT files describing Airfoil profiles. |
||
===Install importers=== <!--T:36--> |
|||
<!--T:37--> |
|||
* [[FreeCAD_and_DWG_Import|FreeCAD and DWG Import]]: Imports and exports DWG files |
|||
* [[FreeCAD_and_DXF_Import|FreeCAD and DXF Import]]: Imports and exports DXF files |
|||
== Unit tests == <!--T:39--> |
== Unit tests == <!--T:39--> |
||
<!--T:40--> |
<!--T:40--> |
||
See also: [[Testing|Test Workbench]]. |
|||
<!--T:41--> |
<!--T:41--> |
||
To run the unit tests of the workbench execute the following from the operating system terminal |
To run the unit tests of the workbench execute the following from the operating system terminal: |
||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
Line 338: | Line 444: | ||
<!--T:11--> |
<!--T:11--> |
||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
The Draft tools can be used in [[macros|macros]] and from the [[Python|Python]] console by using the [[Draft_API|Draft API]]. |
|||
<!--T:42--> |
<!--T:42--> |
||
Line 344: | Line 450: | ||
<!--T:43--> |
<!--T:43--> |
||
Use this to test that all objects are produced correctly |
Use this to test that all objects are produced correctly: |
||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
Line 353: | Line 460: | ||
<!--T:44--> |
<!--T:44--> |
||
Inspecting the code of this module |
Inspecting the code of this module can help to understand the programming interface. |
||
</translate> |
|||
{{Code|code= |
|||
$INSTALLDIR/Mod/Draft/drafttests/draft_test_objects.py |
|||
}} |
|||
<translate> |
|||
<!--T: |
== Tutorials == <!--T:189--> |
||
Where {{incode|$INSTALLDIR}} is the toplevel directory where the software was installed; for example, in Linux it may be {{incode|/usr/share/freecad}}. |
|||
<!--T:14--> |
|||
</translate> |
|||
[[File:Draft_test_objects.png|500px]] |
|||
<translate> |
|||
<!--T:51--> |
|||
{{Caption|Test objects for the [[Draft_Workbench|Draft Workbench]].}} |
|||
== Tutorials == <!--T:14--> |
|||
* [[Draft_tutorial|Draft tutorial]] |
* [[Draft_tutorial|Draft tutorial]] |
||
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]] |
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]] |
||
<!--T:12--> |
<!--T:12--> |
Revision as of 09:58, 10 January 2022
Introduction
The Draft Workbench is primarily focused on the creation and modification of 2D objects in FreeCAD. But it is not restricted to the XY plane of the global coordinate system. Its objects can have any orientation and position in 3D space, and some Draft objects can either be planar or non-planar.
Draft objects can be used for general drafting, similar to what can be done with Inkscape or AutoCAD. But they can also form the base for the creation of 3D objects in other workbenches. A Draft Wire may define the path of an Arch Wall, a Draft Polygon can be extruded with Part Extrude, etc. Many of the Draft modifier tools can be applied to 2D and 3D objects created with other workbenches as well. You can, for example, move a Sketch or create a Draft OrthoArray from a Part object.
The Draft Workbench also provides tools to define a working plane, a grid, and a snapping system to precisely control the position of geometry.
If your primary goal is the production of complex 2D drawings and DXF files, and you don't need 3D modelling, FreeCAD may not be the right choice for you. You may wish to consider a dedicated software program for technical drafting instead, such as LibreCAD or QCad.
The image shows the grid aligned with the XY plane.
On the left, in white, several planar objects.
On the right a non-planar Draft Wire used as the Path Object of a Draft PathArray.
Drafting
- Line: creates a straight line.
- Polyline: creates a polyline, a sequence of several connected line segments.
- Fillet: creates a fillet, a rounded corner, or a chamfer, a straight edge, between two Draft Lines. introduced in version 0.19
- Arc: creates a circular arc from a center, a radius, a start angle and an aperture angle.
- Arc by 3 points: creates a circular arc from three points that define its circumference. introduced in version 0.19
- Circle: creates a circle from a center and a radius.
- Ellipse: creates an ellipse from two points defining a rectangle in which the ellipse will fit.
- Rectangle: creates a rectangle from two points.
- Polygon: creates a regular polygon from a center and a radius.
- B-spline: creates a B-spline curve from several points.
- Cubic Bézier curve: creates a Bézier curve of the third degree. introduced in version 0.19
- Bézier curve: creates a Bézier curve from several points.
- Point: creates a simple point.
- Facebinder: creates a surface object from selected faces.
- ShapeString: creates a compound shape that represents a text string.
- Hatch: creates hatches on the planar faces of a selected object. introduced in version 0.20
Annotation
- Text: creates a multi-line text at a given point.
- Dimension: creates a linear dimension, a radial dimension or an angular dimension.
- Label: creates a multi-line text with a 2-segment leader line and an arrow.
- Annotation styles...: allows you to define styles that affect the visual properties of annotation-like objects. introduced in version 0.19
Modification
- Move: moves or copies selected objects from one point to another.
- Rotate: rotates or copies selected objects around a center point by a given angle.
- Scale: scales or copies selected objects around a base point.
- Mirror: creates mirrored copies from selected objects.
- Offset: offsets each segment of a selected object over a given distance, or creates an offset copy of the selected object.
- Trimex: trims or extends a selected object.
- Stretch: stretches objects by moving selected points.
- Clone: creates linked copies, clones, of selected objects.
- Array: creates an orthogonal array from a selected object. It can optionally create a Link array. introduced in version 0.19
- Polar array: creates an array from a selected object by placing copies along a circumference. It can optionally create a Link array. introduced in version 0.19
- Circular array: creates an array from a selected object by placing copies along concentric circumferences. It can optionally create a Link array. introduced in version 0.19
- Path array: creates an array from a selected object by placing copies along a path.
- Path Link array: idem, but create a Link array instead of a regular array. introduced in version 0.19
- Point Array: creates an array from a selected object by placing copies at the points from a point compound.
- Point Link array: idem, but create a Link array instead of a regular array. introduced in version 0.19
- Edit: puts selected objects in Draft Edit mode. In this mode the properties of objects can be edited graphically.
- Subelement highlight: temporarily highlights selected objects, or the base objects of selected objects.
- Join: joins Draft Lines and Draft Wires into a single wire.
- Split: splits a Draft Line or Draft Wire at a specified point or edge.
- Upgrade: upgrades selected objects.
- Downgrade: downgrades selected objects.
- Wire to B-spline: converts Draft Wires to Draft BSplines and vice versa.
- Draft to Sketch: converts Draft objects to Sketcher Sketches and vice versa.
- Set slope: slopes selected Draft Lines or Draft Wires by increasing, or decreasing, the Z coordinate of all points after the first one.
- Flip dimension: rotates the dimension text of selected Draft Dimensions 180° around the dimension line.
- Shape 2D view: creates 2D projections from selected objects.
Draft Tray
The Draft Tray allows selecting the working plane, defining style settings, toggling construction mode, and specifying the active layer or group.
- Select Plane: selects the current Draft working plane. Also available in the menu: Draft → Utilities → Select Plane.
- Set style: sets the default style for new objects. Also available in the menu: Draft → Utilities → Set style. introduced in version 0.19
- Toggle construction mode: switches Draft construction mode on or off. Also available in the menu: Draft → Utilities → Toggle construction mode.
- AutoGroup: changes the active Draft Layer or, optionally, the active Std Group or group-like Arch object.
Draft annotation scale widget
With the Draft annotation scale widget the Draft annotation scale can be specified. introduced in version 0.19
Draft snap widget
The Draft snap widget can be used as an alternative for the Draft Snap toolbar. introduced in version 0.19
Draft Snap toolbar
The Draft Snap toolbar allows selecting the active snap options. The buttons belonging to active options stay depressed. For general information about snapping see: Draft Snap.
- Snap Lock: enables or disables snapping globally.
- Snap Endpoint: snaps to the endpoints of edges.
- Snap Midpoint: snaps to the midpoint of edges.
- Snap Center: snaps to the center point of faces and circular edges, and to the DataPlacement point of Draft WorkingPlaneProxies and Arch BuildingParts.
- Snap Angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
- Snap Intersection: snaps to the intersection of two edges.
- Snap Perpendicular: snaps to the perpendicular point on edges.
- Snap Extension: snaps to an imaginary line that extends beyond the endpoints of straight edges.
- Snap Parallel: snaps to an imaginary line parallel to straight edges.
- Snap Special: snaps to special points defined by the object.
- Snap Near: snaps to the nearest point on faces or edges.
- Snap Ortho: snaps to imaginary lines that cross the previous point at 0°, 45°, 90° and 135°.
- Snap Grid: snaps to the intersections of grid lines.
- Snap WorkingPlane: projects the snap point onto the current working plane.
- Snap Dimensions: shows temporary X and Y dimensions.
- Toggle Grid: switches the grid on or off.
Draft utility tools toolbar
- Layer: creates a Draft Layer. introduced in version 0.19
- Add a new named group: creates a named Std Group and moves selected objects to that group. introduced in version 0.20
- Move to group...: moves objects to a Std Group. It can also ungroup objects.
- Select group: selects the contents of Std Groups or group-like Arch objects.
- Add to Construction group: moves objects to the Draft construction group.
- Toggle normal/wireframe display: switches the ViewDisplay Mode property of selected objects between
Flat Lines
andWireframe
.
- Create working plane proxy: creates a working plane proxy to save the current Draft working plane.
Additional tools
The Draft → Utilities menu contains several tools. Most of them can also be accessed from toolbars or the Draft Tray and have already been mentioned above. For the following tools this is not the case:
- Apply current style: applies the current style settings to selected objects.
- Heal: heals problematic Draft objects found in very old files.
- Toggle continue mode: switches continue mode on or off.
- Show snap toolbar: shows the Draft Snap toolbar.
Additional features
- Working plane: the plane in the 3D view where new Draft objects are created.
- Snapping: select exact geometric points on, or defined by, existing objects or the grid.
- Constraining: for each subsequent point you can constrain the movement of the cursor to the X, Y, or Z direction.
- Construction mode: places new Draft objects in a dedicated group making it easier to hide or delete them.
- Pattern: Draft objects with a DataMake Face property can display an SVG pattern instead of a solid face color.
The following additional options are available in the Tree view context menu:
Default options
If there is an active document the context menu contains one additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
Wire options
For a Draft Wire, Draft BSpline, Draft CubicBezCurve and Draft BezCurve this additional option is available:
- Flatten this wire: flattens the wire based on its internal geometry. This option currently does not work properly.
Layer container options
For a Draft LayerContainer these additional options are available:
- Merge layer duplicates: merges all layers with the same base label. This does not work in FreeCAD version 0.19.
- Add new layer: adds a new layer to the current document.
Layer options
For a Draft Layer these additional options are available:
- Activate this layer: activates the selected layer.
- Select layer contents: selects the objects inside the selected layer.
Working plane proxy options
For a Draft WorkingPlaneProxy these additional options are available:
- Write camera position: updates the ViewView Data property of the working plane proxy with the current 3D view camera settings.
- Write objects state: updates the ViewVisibility Map property of the working plane proxy with the current visibility state of objects in the document.
The following additional options are available in the 3D view context menu:
Default options
If there is an active document the context menu contains one additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
Obsolete tools
These commands are obsolete but still available:
- Array: creates an orthogonal array from a selected object. The created array can be turned into a polar array or a circular array by changing its DataArray Type property. obsolete in version 0.19
- Drawing: inserts views of selected objects into a drawing page. obsolete in version 0.17
Preferences
- Preferences: general preferences for the Draft Workbench.
- Import Export Preferences: preferences available for importing from and exporting to different file formats.
File formats
The Draft Workbench provides FreeCAD with importers and exporters for several file formats. These are used by the Std Import and Std Export commands.
- Autodesk .DXF: imports and exports Drawing Exchange Format files. See also FreeCAD and DXF Import.
- Autodesk .DWG: imports and exports DWG files via an external DWG converter. See also FreeCAD and DWG Import.
- Scalable Vector Graphics .SVG: imports and exports Scalable Vector Graphics files.
- Open Cad format .OCA: imports and exports OCA/GCAD files.
- Airfoil Data Format .DAT: imports DAT files describing Airfoil profiles.
Unit tests
See also: Test Workbench.
To run the unit tests of the workbench execute the following from the operating system terminal:
freecad -t TestDraft
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
The workbench includes a module to create samples of all objects in a new document. introduced in version 0.19
Use this to test that all objects are produced correctly:
import drafttests.draft_test_objects as dto
doc = dto.create_test_file()
Inspecting the code of this module can help to understand the programming interface.
Tutorials
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub