Draft Workbench/sv: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(42 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
{{Docnav
|[[Arch_Workbench|Arch Workbench]]
|[[CAM_Workbench|CAM Workbench]]
|[[Drawing_Workbench|Drawing Workbench]]
|[[FEM_Workbench|FEM Workbench]]
|IconL=Workbench_Arch.svg
|IconL=Workbench_CAM.svg
|IconR=Workbench_Drawing.svg
|IconR=Workbench_FEM.svg
}}
}}


Line 17: Line 18:
</div>
</div>


The created 2D objects can be used for general drafting in a way similar as is done with Inkscape or Autocad. These 2D shapes can also be used as the base components of 3D objects created with other workbenches, for example, the [[File:Workbench_Part.svg|32px]] [[Part_Workbench|Part]] and [[File:Workbench_Arch.svg|32px]] [[Arch_Workbench|Arch Workbenches]]. Conversion of Draft objects to [[File:Workbench_Sketcher.svg|32px]] [[Sketcher_Workbench|Sketches]] is also possible, which means that the shapes can also be used with the [[File:Workbench_PartDesign.svg|32px]] [[PartDesign_Workbench|PartDesign Workbench]] for the creation of solid bodies.
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.


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.
FreeCAD is primarily a 3D modelling application, and thus its 2D tools aren't as advanced as in other drawing programs. If your primary goal is the production of complex 2D drawings and [[DXF|DXF]] files, and you don't need 3D modelling, you may wish to consider a dedicated software program for technical drafting such as [https://en.wikipedia.org/wiki/LibreCAD LibreCAD], [https://en.wikipedia.org/wiki/QCad QCad], or others.


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].
[[Image:Draft_Workbench_Example.png|400px|Draft Workbench Example]]


[[Image:Draft_Workbench_Example.png]]
<div class="mw-translate-fuzzy">
{{Caption|The image shows the [[Draft_Snap_Grid|grid]] aligned with the XY plane.<br>
===Rita objekt===
On the left, in white, several planar objects.<br>
</div>
On the right a non-planar [[Draft_Wire|Draft Wire]] used as the Path Object of a [[Draft_PathArray|Draft PathArray]].}}


== Drafting ==
Detta är verktyg för att rita objekt.


* [[Image:Draft_Line.svg|32px]] [[Draft_Line|Line]]: creates a straight line.
<div class="mw-translate-fuzzy">
* [[Image:Draft_Line.png|32px]] [[Draft_Line/sv|2-punkt Linje]]: Ritar ett linjesegment mellan 2 punkter
* [[Image:Draft_Wire.png|32px]] [[Draft_Wire/sv|Tråd (multi-punkts linje)]]: Ritar en linje som består av flera linjesegment
* [[Image:Draft_Circle.png|32px]] [[Draft_Circle/sv|Cirkel]]: Ritar en cirkel med hjälp av centrum och radie
* [[Image:Draft_Arc.png|32px]] [[Draft_Arc/sv|Cirkelbåge]]: Ritar en cirkelbåge med hjälp av centrum, radie, startvinkel och slutvinkel
* [[Image:Draft_Ellipse.png|32px]] [[Draft_Ellipse/sv|Ellipse]]: Draws an ellipse from two corner points
* [[Image:Draft_Polygon.png|32px]] [[Draft_Polygon/sv|Polygon]]: Ritar en regelbunden polygon med center och en radie
* [[Image:Draft_Rectangle.png|32px]] [[Draft_Rectangle/sv|Rektangel]]: Ritar en rektangel från 2 motsatta punkter (hörnen)
* [[Image:Draft_Text.png|32px]] [[Draft_Text/sv|Text]]: Ritar en text annotering med flera rader
* [[Image:Draft_Dimension.png|32px]] [[Draft_Dimension/sv|Dimension]]: Ritar en måttsättning
* [[Image:Draft_BSpline.png|32px]] [[Draft_BSpline/sv|BSpline]]: Ritar en B-Spline från en serie med punkter
* [[Image:Draft_Point.png|32px]] [[Draft_Point/sv|Point]]: Inserts a point object
* [[Image:Draft_ShapeString.png|32px]] [[Draft_ShapeString/sv|ShapeString]]: The ShapeString tool inserts a compound shape representing a text string at a given point in the current document
* [[Image:Draft_Facebinder.png|32px]] [[Draft_Facebinder/sv|Facebinder]]: Creates a new object from selected faces on existing objects
* [[Image:Draft_BezCurve.png|32px]] [[Draft_BezCurve/sv|Bezier Curve]]: Draws a Bezier curve from a series of points
* [[Image:Draft_Label.png|32px]] [[Draft_Label/sv|Label]]: Places a label with an arrow pointing to a selected element {{Version/sv|0.17}}
</div>


* [[Image:Draft_Wire.svg|32px]] [[Draft_Wire|Polyline]]: creates a polyline (also called wire), a sequence of several connected line segments.
== Annotation objects ==


* [[Image:Draft_Text.svg|32px]] [[Draft_Text|Text]]: draws a multi-line text annotation.
* [[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]].
* [[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. {{Version|0.17}}
* [[Image:Draft_AnnotationStyleEditor.svg|32px]] [[Draft_AnnotationStyleEditor|Annotation style editor]]: opens an editor to change the annotation style of these objects. {{Version|0.19}}


* <span id="Draft_ArcTools">[[Image:Draft_Arc.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Arc tools:</span><!--Do not edit span id: the Draft_ArcTools pages redirect here-->
<div class="mw-translate-fuzzy">
===Förändra objekt===
</div>


:* [[Image:Draft_Arc.svg|32px]] [[Draft_Arc|Arc]]: creates a circular arc from a center, a radius, a start angle and an aperture angle.
Detta är verktyg för att förändra existerande objekt. De arbetar med valda objekt, men om inget objekt är valt, så ombes du att välja ett.


:* [[Image:Draft_Arc_3Points.svg|32px]] [[Draft_Arc_3Points|Arc by 3 points]]: creates a circular arc from three points that define its circumference.
Many operation tools (move, rotate, array, etc.) also work on solid objects ([[Part_Workbench|Part]], [[PartDesign_Workbench|PartDesign]], [[Arch_Workbench|Arch]], etc.).


* [[Image:Draft_Circle.svg|32px]] [[Draft_Circle|Circle]]: creates a circle from a center and a radius.
<div class="mw-translate-fuzzy">
* [[Image:Draft_Move.png|32px]] [[Draft_Move/sv|Flytta]]: Flyttar objekt från en plats till en annan
* [[Image:Draft_Rotate.png|32px]] [[Draft_Rotate/sv|Rotera]]: Roterar objekt från en startvinkel till en slutvinkel
* [[Image:Draft_Offset.png|32px]] [[Draft_Offset/sv|Offset]]: Flyttar ett objekts segment ett visst avstånd
* [[Image:Draft_Trimex.png|32px]] [[Draft_Trimex/sv|Trimma/förläng (Trimex)]]: Trimmar eller förlänger ett objekt
* [[Image:Draft_Upgrade.png|32px]] [[Draft_Upgrade/sv|Uppgradera]]: Förenar objekt till ett objekt med högre nivå
* [[Image:Draft_Downgrade.png|32px]] [[Draft_Downgrade/sv|Nedgradera]]: Splittrar objekt till enklare objekt
* [[Image:Draft_Scale.png|32px]] [[Draft_Scale/sv|Skala]]: Skalar valda objekt runt en baspunkt
* [[Image:Draft_PutOnSheet.png|32px]] [[Draft_Drawing/sv|Ritning]]: Skriver valda objekt till ett [[Drawing_Module/sv|Ritningsark]]
* [[Image:Draft_Edit.png|32px]] [[Draft_Edit/sv|Redigera]]: Redigerar ett valt objekt
* [[Image:Draft_WireToBSpline.png|32px]] [[Draft_WireToBSpline/sv|Wire to BSpline]]: Converts a wire to a BSpline and vice-versa
* [[Image:Draft_AddPoint.png|32px]] [[Draft_AddPoint/sv|Add point]]: Adds a point to a wire or BSpline
* [[Image:Draft_DelPoint.png|32px]] [[Draft_DelPoint/sv|Delete point]]: Delete a point from a wire or BSpline
* [[Image:Draft_Shape2DView.png|32px]] [[Draft_Shape2DView/sv|Shape 2D View]]: Creates a 2D object which is a flattened 2D view of another 3D object
* [[Image:Draft_Draft2Sketch.png|32px]] [[Draft_Draft2Sketch/sv|Draft to Sketch]]: Converts a Draft object to Sketch and vice-versa
* [[Image:Draft_Array.png|32px]] [[Draft_Array/sv|Array]]: Creates a polar or rectangular array from selected objects
* [[Image:Draft_PathArray.png|32px]] [[Draft_PathArray/sv|Path Array]]: Creates an array of objects by placing the copies along a path
* [[Image:Draft_Clone.png|32px]] [[Draft_Clone/sv|Clone]]: Clones the selected objects
* [[Image:Draft_Mirror.png|32px]] [[Draft_Mirror/sv|Mirror]]: Mirrors the selected objects
* [[Image:Draft_Stretch.png|32px]] [[Draft_Stretch/sv|Stretch]]: Stretches the selected objects {{Version/sv|0.17}}
</div>


* [[Image:Draft_Clone.svg|32px]] [[Draft_Clone|Clone]]: clones the selected objects.
* [[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_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. {{Version|0.18}}
** [[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}}


* [[Image:Draft_Edit.svg|32px]] [[Draft_Edit|Edit]]: edits a selected object.
* [[Image:Draft_Rectangle.svg|32px]] [[Draft_Rectangle|Rectangle]]: creates a rectangle from two points.
* [[Image:Draft_SubelementHighlight.svg|32px]] [[Draft_SubelementHighlight|Subelement highlight]]: enters an edit mode that allows editing different objects. {{Version|0.19}}


* [[Image:Draft_Join.svg|32px]] [[Draft_Join|Join]]: joins lines together into a single wire. {{Version|0.18}}
* [[Image:Draft_Polygon.svg|32px]] [[Draft_Polygon|Polygon]]: creates a regular polygon from a center and a radius.
* [[Image:Draft_Split.svg|32px]] [[Draft_Split|Split]]: splits a wire into two at a point. {{Version|0.18}}
* [[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.


* [[Image:Draft_WireToBSpline.svg|32px]] [[Draft_WireToBSpline|Wire to BSpline]]: converts a wire to a B-Spline and vice-versa.
* [[Image:Draft_BSpline.svg|32px]] [[Draft_BSpline|B-spline]]: creates a B-spline curve from several points.
* [[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]]. {{Version|0.17}}
* [[Image:Draft_FlipDimension.svg|32px]] [[Draft_FlipDimension|Flip Dimension]]: flips the orientation of the text of a [[Draft Dimension|Draft Dimension]].


* <span id="Draft_BezierTools">[[Image:Draft_CubicBezCurve.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Bézier tools:</span><!--Do not edit span id: the Draft_BezierTools pages redirect here-->
* [[Image:Draft_Shape2DView.svg|32px]] [[Draft_Shape2DView|Shape 2D View]]: creates a 2D object which is a flattened 2D view of a 3D object.


:* [[Image:Draft_CubicBezCurve.svg|32px]] [[Draft_CubicBezCurve|Cubic Bézier curve]]: creates a Bézier curve of the third degree.
=== Obsolete ===


:* [[Image:Draft_BezCurve.svg|32px]] [[Draft_BezCurve|Bézier curve]]: creates a Bézier curve from several points.
This command is considered obsolete because the [[Drawing_Workbench|Drawing Workbench]] is obsolete. However, the command itself is still available.
* [[Image:Draft_Drawing.svg|32px]] [[Draft_Drawing|Drawing]]: writes selected objects to a [[Drawing_Workbench|Drawing Workbench]] page. {{Obsolete|0.17}}


* [[Image:Draft_Point.svg|32px]] [[Draft_Point|Point]]: creates a simple point.
These commands have been removed from the interface.
* [[Image:Draft_AddPoint.svg|32px]] [[Draft_AddPoint|Add point]]: adds a point to a wire or B-Spline. {{Obsolete|0.19}}
* [[Image:Draft_DelPoint.svg|32px]] [[Draft_DelPoint|Delete point]]: deletes a point from a wire or B-Spline. {{Obsolete|0.19}}
* [[Image:Draft_Array.svg|32px]] [[Draft_Array|Array]]: creates a polar or rectangular array from selected objects. {{Obsolete|0.19}}


* [[Image:Draft_Facebinder.svg|32px]] [[Draft_Facebinder|Facebinder]]: creates a surface object from selected faces.
== Draft Tray toolbar ==


* [[Image:Draft_ShapeString.svg|32px]] [[Draft_ShapeString|ShapeString]]: creates a compound shape that represents a text string.
The Draft tray toolbar appears when the workbench is started, and allows selecting the working plane, together with some visual properties like the line color, shape color, text size, line width, and automatic group.


* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_SelectPlane|Working plane]]: sets a working plane from a standard view or a selected face.
* [[Image:Draft_Hatch.svg|32px]] [[Draft_Hatch|Hatch]]: creates hatches on the planar faces of a selected object. {{Version|0.20}}
* [[Image:Draft_ToggleConstructionMode.svg|32px]] [[Draft_ToggleConstructionMode|Construction mode]]: toggles the Draft construction mode on or off.
* [[Image:Draft_ApplyStyle.svg|32px]] [[Draft_ApplyStyle|Style settings]]: Set default styles for new objects, and applies the current style and color to selected objects.
* [[Image:Draft_AutoGroup.svg|32px]] [[Draft AutoGroup|AutoGroup]]: automatically place new objects in a given [[File:Std_Group.svg|32px]] [[Std_Group|Std Group]], [[File:Draft_Layer.svg|32px]] [[Draft_Layer|Draft Layer]], or one of the group-like objects of the [[Arch_Workbench|Arch Workbench]], like [[File:Arch_BuildingPart.svg|32px]] [[Arch_BuildingPart|Arch BuildingPart]]. {{Version|0.17}}


== Draft Snap toolbar ==
== Annotation ==


* [[Image:Draft_Text.svg|32px]] [[Draft_Text|Text]]: creates a multi-line text at a given point.
The [[Draft_Snap|Draft Snap]] toolbar allows selecting the currently snapping mode. Its button keep depressed when a mode is active.


* [[Image:Draft_Snap_Lock.svg|32px]] [[Draft_Snap_Lock|Toggle snap]]: toggles [[Draft Snap|object snapping]] globally on or off.
* [[Image:Draft_Dimension.svg|32px]] [[Draft_Dimension|Dimension]]: creates a linear dimension, a radial dimension or an angular dimension.
* [[Image:Draft_Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Endpoint]]: snaps to the endpoints of line, arc and spline segments.
* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Midpoint]]: snaps to the middle point of line and arc segments.
* [[Image:Draft_Snap_Center.svg|32px]] [[Draft_Snap_Center|Center]]: snaps to the center point of circles, arcs and faces, [[Draft_WorkingPlaneProxy|WP proxies]] and [[Arch_BuildingPart|Building parts]]
* [[Image:Draft_Snap_Angle.svg|32px]] [[Draft_Snap_Angle|Angle]]: snaps to the special cardinal points of circles and arcs, at 45° and 90°.
* [[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:Draft_Snap_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Perpendicular]]: on line and arc segments, snaps perpendicularly to the latest point.
* [[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.
* [[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_Special.svg|32px]] [[Draft_Snap_Special|Special]]: snaps on special points defined by the object. {{Version|0.17}}
* [[Image:Draft_Snap_Near.svg|32px]] [[Draft_Snap_Near|Near]]: snaps to the closest point or edge on the nearest object.
* [[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:Draft_Snap_Grid.svg|32px]] [[Draft_Snap_Grid|Grid]]: snaps to the intersections of the grid lines, if the grid is visible.
* [[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.
* [[Image:Draft_Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Dimensions]]: shows temporary X and Y dimensions while snapping.
* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_ToggleGrid|Toggle grid]]: toggles the visibility of the grid on or off.


* [[Image:Draft_Label.svg|32px]] [[Draft_Label|Label]]: creates a multi-line text with a 2-segment leader line and an arrow.
== Utility tools ==


* [[Image:Draft_AnnotationStyleEditor.svg|32px]] [[Draft_AnnotationStyleEditor|Annotation styles...]]: allows you to define styles that affect the visual properties of annotation-like objects.
* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer|Layer]]: creates a Layer in the current document, to which objects can be added to control object visibility and color. It replaces [[Draft_VisGroup|VisGroup]]. {{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. {{Version|0.17}}
* [[Image:Draft_ToggleDisplayMode.svg|32px]] [[Draft_ToggleDisplayMode|Toggle display mode]]: switches the display mode of selected objects between "Flat Lines" and "Wireframe".
* [[Image:Draft_AddToGroup.svg|32px]] [[Draft_AddToGroup|Add to group]]: quickly adds selected objects to an existing [[Std Group|Std Group]] or [[Draft VisGroup|Draft VisGroup]].
* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group contents]]: selects the contents of a selected [[Std Group|Std Group]] or [[Draft VisGroup|Draft VisGroup]].
* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: add selected objects to the Construction group. {{Version|0.17}}
* [[Image:Draft_Heal.svg|32px]] [[Draft_Heal|Heal]]: heals problematic Draft objects found in very old files.


== Utility menu ==
== Modification ==


* [[Image:Draft_Move.svg|32px]] [[Draft_Move|Move]]: moves or copies selected objects from one point to another.
Additional tools available from the menu {{MenuCommand|Draft → Utilities}}, or via the right-click context menu, depending on the selected object.


* [[Image:Draft_ToggleContinueMode.svg|32px]] [[Draft_ToggleContinueMode|Toggle continue mode]]: toggles the Draft continue mode on or off.
* [[Image:Draft_Rotate.svg|32px]] [[Draft_Rotate|Rotate]]: rotates or copies selected objects around a center point by a given angle.
* [[Image:Draft_ShowSnapBar.svg|32px]] [[Draft_ShowSnapBar|Show snap bar]]: shows or hides the [[Draft Snap|Draft Snap]] toolbar.


* [[Image:Draft_Scale.svg|32px]] [[Draft_Scale|Scale]]: scales or copies selected objects around a base point.
=== Obsolete ===


* [[Image:Draft_Mirror.svg|32px]] [[Draft_Mirror|Mirror]]: creates mirrored copies from selected objects.
These tools were removed from the interface in v0.19 because they no longer had any purpose.


* [[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.
* [[Image:Draft_VisGroup.svg|32px]] [[Draft_VisGroup|VisGroup]]: creates a VisGroup in the current document. This was replaced by [[Image:Draft_Layer.svg|32px]] [[Draft_Layer|Layer]]. {{Obsolete|0.19}}
* [[Image:Draft_FinishLine.svg|32px]] [[Draft_FinishLine|Finish line]]: ends the drawing of the current [[Draft Wire|Draft Wire]] or [[Draft BSpline|Draft BSpline]], without closing it. {{Obsolete|0.19}}
* [[Image:Draft_CloseLine.svg|32px]] [[Draft_CloseLine|Close line]]: ends the drawing of the current [[Draft Wire|Draft Wire]] or [[Draft BSpline|Draft BSpline]], and closes it. {{Obsolete|0.19}}
* [[Image:Draft_UndoLine.svg|32px]] [[Draft_UndoLine|Undo line]]: undoes the last segment of a [[Draft Wire|Draft Wire]]. {{Obsolete|0.19}}


* [[Image:Draft_Trimex.svg|32px]] [[Draft_Trimex|Trimex]]: trims or extends a selected object.
== Preferences ==


* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences|Preferences]]: general preferences for the working plane and the drawing tools.
* [[Image:Draft_Stretch.svg|32px]] [[Draft_Stretch|Stretch]]: stretches objects by moving selected points.
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences|Import Export Preferences]]: preferences available for importing from and exporting to different file formats.


* [[Image:Draft_Clone.svg|32px]] [[Draft_Clone|Clone]]: creates linked copies, clones, of selected objects.
<div class="mw-translate-fuzzy">
===Import & export===
</div>


* <span id="Draft_ArrayTools">[[Image:Draft_OrthoArray.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Array tools:</span><!--Do not edit span id: the Draft_ArrayTools pages redirect here-->
<div class="mw-translate-fuzzy">


:* [[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.
Detta är funktioner för att öppna, importera eller exportera andra filformat. Öppna kommet att öppna ett nytt dokument med filens innehåll, medan importera kommer att lägga till filinnehållet till det nuvarande dokumentet. Exportera kommer att spara de valda objekten till en fil. Om inget är valt, så kommer alla objekt att exporteras. Var uppmärksam på att eftersom tanken med Ritmodulen är att arbeta med 2d objekt, så fokuserar dessa importerare endast på 2d objekt, och, fastän DXF och OCA formaten stödjer objektdefinitioner i 3D rymden (objekt är inte nödvändigtvis platta), så kommer de inte att importera volymetriska objekt som nät, 3D ytor, etc, utan snarare linjer, cirklar, text eller flata former. För närvarande så stöds följande filformat:
</div>


:* [[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.
<div class="mw-translate-fuzzy">


:* [[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.
* [[Draft_DXF/sv|Autodesk .DXF]]: Importerar och exporterar DXF filer som har skapats med andra CAD applikationer


:* [[Image:Draft_PathArray.svg|32px]] [[Draft_PathArray|Path array]]: creates an array from a selected object by placing copies along a path.
* [[Draft_SVG/sv|SVG (som geometri)]]: Importerar och exporterar SVG filer som har skapats med vektorbaserade ritapplikationer


:* [[Image:Draft_PathLinkArray.svg|32px]] [[Draft_PathLinkArray|Path link array]]: idem, but create a [[App_Link|Link]] array instead of a regular array.
* [[Draft_OCA/sv|Open Cad format .OCA]]: Importerar och exporterar OCA/GCAD files, ett potentiellt nytt [http://groups.google.com/group/open_cad_format öppet CAD filformat]


:* [[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.
* [[Draft_DAT|Airfoil Data Format .DAT]] Importerar DAT filer som beskriver [http://www.ae.illinois.edu/m-selig/ads/coord_database.html Vingprofiler]
</div>


:* [[File:Draft_PointLinkArray.svg|32px]] [[Draft_PointLinkArray|Point link array]]: idem, but create a [[App_Link|Link]] array instead of a regular array.
===Install importers===


* [[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.
* [[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


* [[Image:Draft_SubelementHighlight.svg|32px]] [[Draft_SubelementHighlight|Subelement highlight]]: temporarily highlights selected objects, or the base objects of selected objects.
<div class="mw-translate-fuzzy">

* [[Image:Draft_Join.svg|32px]] [[Draft_Join|Join]]: joins [[Draft_Line|Draft Lines]] and [[Draft_Wire|Draft Wires]] into a single wire.

* [[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.

* [[Image:Draft_Upgrade.svg|32px]] [[Draft_Upgrade|Upgrade]]: upgrades selected objects.

* [[Image:Draft_Downgrade.svg|32px]] [[Draft_Downgrade|Downgrade]]: downgrades selected objects.

* [[Image:Draft_WireToBSpline.svg|32px]] [[Draft_WireToBSpline|Wire to B-spline]]: converts [[Draft_Wire|Draft Wires]] to [[Draft_BSpline|Draft BSplines]] and vice versa.

* [[Image:Draft_Draft2Sketch.svg|32px]] [[Draft_Draft2Sketch|Draft to sketch]]: converts Draft objects to [[Sketcher_NewSketch|Sketcher Sketches]] and vice versa.

* [[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.

* [[Image:Draft_FlipDimension.svg|32px]] [[Draft_FlipDimension|Flip dimension]]: rotates the dimension text of selected [[Draft_Dimension|Draft Dimensions]] 180° around the dimension line.

* [[Image:Draft_Shape2DView.svg|32px]] [[Draft_Shape2DView|Shape 2D view]]: creates 2D projections from selected objects.

== Draft Tray ==

The [[Draft_Tray|Draft Tray]] allows selecting the working plane, defining style settings, toggling construction mode, and specifying the active layer or group.

[[Image:Draft_tray_default.png]]

* [[Image:Draft_tray_button_plane.png]] [[Draft_SelectPlane|Select plane]]: defines the current Draft working plane. Also available in the menu: {{MenuCommand|Draft → Utilities → [[Image:Draft_SelectPlane.svg|16px]] Select Plane}}.

* [[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}}.

* [[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}}.

* [[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 ==

With the [[Draft_annotation_scale_widget|Draft annotation scale widget]] the Draft annotation scale can be specified.

[[Image:Draft_annotation_scale_widget_button.png]]

== Draft snap widget ==

The [[Draft_snap_widget|Draft snap widget]] can be used as an alternative for the [[#Draft_snap_toolbar|Draft snap toolbar]].

[[Image:Draft_snap_widget_button.png]]

== 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|Draft Snap]].

* [[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|Snap endpoint]]: snaps to the endpoints of edges.

* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Snap midpoint]]: snaps to the midpoint of edges.

* [[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_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_Intersection.svg|32px]] [[Draft_Snap_Intersection|Snap intersection]]: snaps to the intersection of two edges.

* [[Image:Draft_Snap_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Snap perpendicular]]: snaps to the perpendicular points on faces ({{Version|0.21}}) and edges.

* [[Image:Draft_Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Snap extension]]: snaps to an imaginary line that extends beyond the endpoints of straight edges.

* [[Image:Draft_Snap_Parallel.svg|32px]] [[Draft_Snap_Parallel|Snap parallel]]: snaps to an imaginary line parallel to straight edges.

* [[Image:Draft_Snap_Special.svg|32px]] [[Draft_Snap_Special|Snap special]]: snaps to special points defined by the object.

* [[Image:Draft_Snap_Near.svg|32px]] [[Draft_Snap_Near|Snap near]]: snaps to the nearest point on faces and edges.

* [[Image:Draft_Snap_Ortho.svg|32px]] [[Draft_Snap_Ortho|Snap ortho]]: snaps to imaginary lines that cross the previous point at multiples of 45°.

* [[Image:Draft_Snap_Grid.svg|32px]] [[Draft_Snap_Grid|Snap grid]]: snaps to the intersections of grid lines.

* [[Image:Draft_Snap_WorkingPlane.svg|32px]] [[Draft_Snap_WorkingPlane|Snap working plane]]: projects snap points onto the current [[Draft_SelectPlane|working plane]].

* [[Image:Draft_Snap_Dimensions.svg|32px]] [[Draft_Snap_Dimensions|Snap dimensions]]: shows temporary X and Y dimensions.

* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_ToggleGrid|Toggle grid]]: changes the visibility of the grid.

== Draft utility tools toolbar ==

* [[Image:Draft_LayerManager.svg|32px]] [[Draft_LayerManager|Manage layers...]]: allows to manage the layers in a document. {{Version|0.21}}

* [[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_AddToGroup.svg|32px]] [[Draft_AddToGroup|Move to group...]]: moves objects to a [[Std_Group|Std Group]]. It can also ungroup objects.

* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group]]: selects the contents of [[Std_Group|Std Groups]] or group-like [[Arch_Workbench|Arch]] objects.

* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to construction group]]: moves objects to the [[Draft_ToggleConstructionMode|Draft construction group]].

* [[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}}.

* [[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 ==

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:

* [[Image:Draft_ApplyStyle.svg|32px]] [[Draft_ApplyStyle|Apply current style]]: applies the current style settings to selected objects.

* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer|Layer]]: creates a [[Draft_Layer|Draft Layer]]. Available in the [[Draft_Workbench#Draft_utility_tools_toolbar|Draft utility tools toolbar]] in {{VersionMinus|0.20}}.

* [[Image:Draft_Heal.svg|32px]] [[Draft_Heal|Heal]]: heals problematic Draft objects found in very old files.

* [[Image:Draft_ShowSnapBar.svg|32px]] [[Draft_ShowSnapBar|Show snap toolbar]]: shows the [[#Draft_snap_toolbar|Draft snap toolbar]].

<span id="Additional_features"></span>
===Gemensamt beteende===
===Gemensamt beteende===
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 214: Line 231:


* [[Draft_Constrain/sv|Begränsning]]: Tillåter att nya punkter placeras horisontellt eller vertikalt i relation till tidigare punkter
* [[Draft_Constrain/sv|Begränsning]]: Tillåter att nya punkter placeras horisontellt eller vertikalt i relation till tidigare punkter

* [[Draft_Coordinates/sv|Arbeta med manuella koordinater]]: tillåter att du matar in koordinaterna manuellt istället för att klicka på skärmen

* Kopiering: Alla ändringsverktyg kan antingen ändra de valda objekten eller skapa en förändrad kopiaav dem. Genom att trycka på {{KEY|ALT}} tangenten medan verktyget används kommer att skapa en kopia


* [[Draft ToggleConstructionMode/sv|Konstruktionsläge]]: Tillåter dig att skilja viss geometri åt från resten, för att lätt kunna stänga på/av
* [[Draft ToggleConstructionMode/sv|Konstruktionsläge]]: Tillåter dig att skilja viss geometri åt från resten, för att lätt kunna stänga på/av


*[[Draft SelectPlane/sv|Arbetsplan]]: Alla skisskommandon kan användas på valfritt plani i 3D rymden. Det gällande arbetsplanet kan konfigureras på ett lätt sätt
*[[Draft SelectPlane/sv|Arbetsplan]]: Alla skisskommandon kan användas på valfritt plani i 3D rymden. Det gällande arbetsplanet kan konfigureras på ett lätt sätt
</div>


== Tree view context menu ==
* Alla nyligen skapade objekt kommer att anta gällande Rit [[Draft Linestyle/sv|färg och bredd]]

The following additional options are available in the [[Tree_view|Tree view]] context menu:

=== Default options ===

For most Draft objects the following option is available:

* Edit: edits the object. Depending on the object type either [[Draft_Edit|Draft Edit]] or a dedicated edit solution is used. {{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.

=== Layer container options ===

For a [[Draft_Layer|Draft LayerContainer]] these additional options are available:

* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer#Layer_container_options|Merge layer duplicates]]: merges all layers with the same base label.

* [[Image:Draft_NewLayer.svg|32px]] [[Draft_Layer#Layer_container_options|Add new layer]]: adds a new layer to the current document.

=== Layer options ===

For a [[Draft_Layer|Draft Layer]] these additional options are available:

* [[Image:button_right.svg|32px]] [[Draft_AutoGroup|Activate this layer]]: activates the selected layer.

* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select layer contents]]: selects the objects inside the selected layer.

=== Text options ===

For a [[Draft_Text|Draft Text]] and a [[Draft_Label|Draft Label]] that contains one or more hyperlinks, to a local or remote file or an URL, this additional option is available:

* Open hyperlinks: the hyperlinks are opened in the appropriate application (as defined by the OS). There is a warning in the case of multiple hyperlinks. {{Version|1.0}}

=== Wire options ===

For a [[Draft_Line|Draft Line]] and a [[Draft_Wire|Draft Wire]] this additional option is available:

* [[Image:Draft_Edit.svg|32px]] Flatten: flattens the wire on the current [[Draft_SelectPlane|Draft working plane]]. This option does not work properly in {{VersionMinus|0.19}}.

=== Working plane proxy options ===

For a [[Draft_WorkingPlaneProxy|Draft WorkingPlaneProxy]] these additional options are available:

* [[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.

* [[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 ==

The following additional options are available in the [[3D_view|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.

=== Text options ===

See [[#Text_options|above]].

== Obsolete tools ==

* [[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. Not available in {{VersionPlus|0.21}}.

* [[Image:Draft_Drawing.svg|32px]] [[Draft_Drawing|Drawing]]: inserts views of selected objects into a [[Drawing_Workbench|drawing]] page. Not available in {{VersionPlus|0.21}}.

* [[Image:Draft_ToggleContinueMode.svg|32px]] [[Draft_ToggleContinueMode|Toggle continue mode]]: switches continue mode on or off. Not available in {{VersionPlus|1.0}}.

== Preferences ==

* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences|Preferences]]: general preferences for the Draft Workbench.

* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences|Import Export Preferences]]: preferences available for importing from and exporting to different file formats.

<span id="File_formats"></span>
===Import & export===

<div class="mw-translate-fuzzy">

Detta är funktioner för att öppna, importera eller exportera andra filformat. Öppna kommet att öppna ett nytt dokument med filens innehåll, medan importera kommer att lägga till filinnehållet till det nuvarande dokumentet. Exportera kommer att spara de valda objekten till en fil. Om inget är valt, så kommer alla objekt att exporteras. Var uppmärksam på att eftersom tanken med Ritmodulen är att arbeta med 2d objekt, så fokuserar dessa importerare endast på 2d objekt, och, fastän DXF och OCA formaten stödjer objektdefinitioner i 3D rymden (objekt är inte nödvändigtvis platta), så kommer de inte att importera volymetriska objekt som nät, 3D ytor, etc, utan snarare linjer, cirklar, text eller flata former. För närvarande så stöds följande filformat:
</div>

<div class="mw-translate-fuzzy">

* [[Draft_DXF/sv|Autodesk .DXF]]: Importerar och exporterar DXF filer som har skapats med andra CAD applikationer

* [[Draft_SVG/sv|SVG (som geometri)]]: Importerar och exporterar SVG filer som har skapats med vektorbaserade ritapplikationer

* [[Draft_OCA/sv|Open Cad format .OCA]]: Importerar och exporterar OCA/GCAD files, ett potentiellt nytt [http://groups.google.com/group/open_cad_format öppet CAD filformat]

* [[Draft_DAT|Airfoil Data Format .DAT]] Importerar DAT filer som beskriver [http://www.ae.illinois.edu/m-selig/ads/coord_database.html Vingprofiler]
</div>
</div>


== Unit tests ==
== Unit tests ==


{{Emphasis|See also:}} [[Test_Workbench|Test Workbench]].
See also: [[Testing|Test Workbench]].

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.
{{Code|code=
{{Code|code=
freecad -t TestDraft
freecad -t TestDraft
}}
}}


<span id="Scripting"></span>
<div class="mw-translate-fuzzy">
===API===
===API===
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 243: Line 351:
</div>
</div>


The workbench includes a module to create samples of all objects in a new document. {{Version|0.19}}
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:


Use this to test that all objects are produced correctly.
{{Code|code=
{{Code|code=
import drafttests.draft_test_objects as dto
import drafttests.draft_test_objects as dto
Line 251: Line 360:
}}
}}


Inspecting the code of this module is useful to understand how to use the programming interface.
Inspecting the code of this module can help to understand the programming interface.
{{Code|code=
$INSTALLDIR/Mod/Draft/drafttests/draft_test_objects.py
}}


== Tutorials ==
Where {{incode|$INSTALLDIR}} is the toplevel directory where the software was installed; for example, in Linux it may be {{incode|/usr/share/freecad}}.

[[File:Draft_test_objects.png|500px]]
{{Caption|Test objects for the [[Draft_Workbench|Draft Workbench]].}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
===Tutorials===
===Tutorials===
* [[Draft_tutorial/sv|Draft tutorial]]
* [[Draft_tutorial/sv|Draft tutorial]]
* [[Draft_tutorial_Outdated/sv|Draft tutorial Outdated]]
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]]
</div>
</div>



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{docnav/sv|Raytracing Module/sv|Robot Module/sv}}
{{docnav/sv|Raytracing_Workbench/sv|Robot_Workbench/sv}}
</div>
</div>



Latest revision as of 09:20, 21 April 2024

Draft workbench icon

Introduction

Rit modulen är ett pågående arbete och är en ganska experimentell modul som har gjorts för att lägga till grundläggande 2d ritfunktionalitet till FreeCAD. Den är helt och hållet skriven i python, och är även tänkt att fungera som en presentation om hur mycket du kan utöka FreeCAD endast med hjälp av python, utan att ens röra källkoden.

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 (also called wire), a sequence of several connected line segments.
  • Fillet: creates a fillet, a rounded corner, or a chamfer, a straight edge, between two Draft Lines.
  • Arc tools:
  • 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.
  • Bézier tools:
  • Point: creates a simple point.
  • Facebinder: creates a surface object from selected faces.
  • ShapeString: creates a compound shape that represents a text string.

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.

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 tools:
  • Array: creates an orthogonal array from a selected object. It can optionally create a Link array.
  • Polar array: creates an array from a selected object by placing copies along a circumference. It can optionally create a Link array.
  • Circular array: creates an array from a selected object by placing copies along concentric circumferences. It can optionally create a Link array.
  • 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.

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: defines 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.

Draft annotation scale widget

With the Draft annotation scale widget the Draft annotation scale can be specified.

Draft snap widget

The Draft snap widget can be used as an alternative for the Draft snap toolbar.

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 angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
  • 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.

Draft utility tools toolbar

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:

  • Heal: heals problematic Draft objects found in very old files.

Gemensamt beteende

  • Snäpp: tillåter dig att placera nya punkter på speciella platser på existerande objekt
  • Begränsning: Tillåter att nya punkter placeras horisontellt eller vertikalt i relation till tidigare punkter
  • Konstruktionsläge: Tillåter dig att skilja viss geometri åt från resten, för att lätt kunna stänga på/av
  • Arbetsplan: Alla skisskommandon kan användas på valfritt plani i 3D rymden. Det gällande arbetsplanet kan konfigureras på ett lätt sätt

Tree view context menu

The following additional options are available in the Tree view context menu:

Default options

For most Draft objects the following option is available:

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.

Layer container options

For a Draft LayerContainer these additional options are available:

Layer options

For a Draft Layer these additional options are available:

Text options

For a Draft Text and a Draft Label that contains one or more hyperlinks, to a local or remote file or an URL, this additional option is available:

  • Open hyperlinks: the hyperlinks are opened in the appropriate application (as defined by the OS). There is a warning in the case of multiple hyperlinks. introduced in version 1.0

Wire options

For a Draft Line and a Draft Wire this additional option is available:

  • Flatten: flattens the wire on the current Draft working plane. This option does not work properly in version 0.19 and below.

Working plane proxy options

For a Draft WorkingPlaneProxy these additional options are available:

  • Write objects state: updates the VyVisibility Map property of the working plane proxy with the current visibility state of objects in the document.

3D view context menu

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.

Text options

See above.

Obsolete tools

  • 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. 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

  • Preferences: general preferences for the Draft Workbench.

Import & export

Detta är funktioner för att öppna, importera eller exportera andra filformat. Öppna kommet att öppna ett nytt dokument med filens innehåll, medan importera kommer att lägga till filinnehållet till det nuvarande dokumentet. Exportera kommer att spara de valda objekten till en fil. Om inget är valt, så kommer alla objekt att exporteras. Var uppmärksam på att eftersom tanken med Ritmodulen är att arbeta med 2d objekt, så fokuserar dessa importerare endast på 2d objekt, och, fastän DXF och OCA formaten stödjer objektdefinitioner i 3D rymden (objekt är inte nödvändigtvis platta), så kommer de inte att importera volymetriska objekt som nät, 3D ytor, etc, utan snarare linjer, cirklar, text eller flata former. För närvarande så stöds följande filformat:

  • Autodesk .DXF: Importerar och exporterar DXF filer som har skapats med andra CAD applikationer
  • SVG (som geometri): Importerar och exporterar SVG filer som har skapats med vektorbaserade ritapplikationer

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

API

Se Skiss API sidan för en komplett beskrivning av Skissfunktionerna som du kan använda i skript och makron

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.

Tutorials


Raytracing_Workbench/sv
Robot_Workbench/sv