A bancada Draft permite desenhar objetos 2D simples e oferece várias ferramentas para modificá-los posteriormente. Ele também fornece ferramentas para definir um plano de trabalho, uma grade e um sistema de encaixe para controlar com precisão a posição de sua geometria.
Os objetos 2D criados podem ser usados para desenho geral de maneira similar ao Inkscape ou Autocad. Essas formas 2D também podem ser usadas como componentes básicos de objetos 3D criados com outras bancadas de trabalho, por exemplo, Part e Bancada Arch. A conversão de objetos do Draft para Sketches também é possível, o que significa que as formas também podem ser usadas com a Bancada PartDesign para a criação de corpos sólidos.
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.
- Line: creates a straight line.
- Polyline: creates a polyline (also called wire), a sequence of several connected line segments.
- 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.
- 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.
- 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.
- 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.
- 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.
- Path array: creates an array from a selected object by placing copies along a path.
- Point Array: creates an array from a selected object by placing copies at the points from a point compound.
- 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.
- Upgrade: upgrades selected objects.
- Downgrade: downgrades selected objects.
- 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.
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.
- 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.
Draft snap widget
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 ДанниPlacement 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 points on faces (introduced in version 0.21) and 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 and edges.
- Snap Ortho: snaps to imaginary lines that cross the previous point at multiples of 45°.
- Snap Grid: snaps to the intersections of grid lines.
- Snap Dimensions: shows temporary X and Y dimensions.
- Toggle Grid: switches the grid on or off.
Draft utility tools toolbar
- Add a new named group: creates a named Std Group and moves selected objects to that group. introduced in version 0.20
- Toggle normal/wireframe display: switches the ВидDisplay Mode property of selected objects between
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.
- Layer: creates a Draft Layer. Available in the Draft utility tools toolbar in version 0.20 and below.
- Heal: heals problematic Draft objects found in very old files.
- Toggle continue mode: switches continue mode on or off.
- 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 ДанниMake 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:
For most Draft objects the following option is available:
- Edit: edits the object. Depending on the object type either Draft Edit or a dedicated edit solution is used. introduced in version 0.21
If there is an active document the context menu contains an additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
- Flatten: flattens the wire on the current Draft working plane. This option does not work properly in version 0.19 and below.
Layer container options
For a Draft LayerContainer these additional options are available:
- Merge layer duplicates: merges all layers with the same base label.
- Add new layer: adds a new layer to the current document.
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 ВидView Data property of the working plane proxy with the current 3D view camera settings.
- Write objects state: updates the ВидVisibility 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:
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.
- 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 ДанниArray Type property. Not available in version 0.21 and above.
- Drawing: inserts views of selected objects into a drawing page. Not available in version 0.21 and above.
- Preferences: general preferences for the Draft Workbench.
- Import Export Preferences: preferences available for importing from and exporting to different file formats.
- 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.
See also: Test Workbench.
To run the unit tests of the workbench execute the following from the operating system terminal:
freecad -t TestDraft
The workbench includes a module to create samples of all objects in a new document.
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.