Draft Workbench/pt-br: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(118 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Page in progress}}
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav
|[[Arch_Workbench/pt-br|Bancadas de trabalho Arch]]
|[[Arch_Workbench/pt-br|Bancadas de trabalho Arch]]
Line 7: Line 8:
|IconR=Workbench_Drawing.svg
|IconR=Workbench_Drawing.svg
}}
}}
</div>


[[Image:Workbench_Draft.svg|thumb|128px|Ícone da bancada de trabalho de draft]]
[[Image:Workbench_Draft.svg|thumb|128px|Ícone da bancada de trabalho de draft]]
Line 12: Line 14:
{{TOCright}}
{{TOCright}}


<span id="Introduction"></span>
== Introdução ==
== Introdução ==


<div class="mw-translate-fuzzy">
A [[File:Workbench_Draft.svg|32px]] [[Draft_Module/pt-br|bancada de trabalho 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 disparo para controlar com precisão a posição de sua geometria.
A [[File:Workbench_Draft.svg|32px]] [[Draft_Workbench/pt-br|bancada de trabalho 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 disparo para controlar com precisão a posição de sua geometria.
</div>


<div class="mw-translate-fuzzy">
Os objetos 2D criados podem ser usados para esboço geral de uma forma semelhante à do Inkscape ou do Autocad. Estas formas 2D também podem ser usadas como componentes base de objetos 3D criados com outras bancadas de trabalho, por exemplo, a [[File:Workbench_Part.svg|32px]] [[Part_Workbench/pt-br|bancada de trabalho Part]] e [[Arch_Workbench/pt-br|Arch]].
Os objetos 2D criados podem ser usados para esboço geral de uma forma semelhante à do Inkscape ou do Autocad. Estas formas 2D também podem ser usadas como componentes base de objetos 3D criados com outras bancadas de trabalho, por exemplo, a [[File:Workbench_Part.svg|32px]] [[Part_Workbench/pt-br|bancada de trabalho Part]] e [[Arch_Workbench/pt-br|Arch]].
A conversão de objetos de Draft para [[File:Workbench_Sketcher.svg|32px]] [[Sketcher_Workbench/pt-br|Sketches]] também é possível, o que significa que as formas também podem ser usadas com a [[File:Workbench_PartDesign.svg|32px]] [[PartDesign_Workbench/pt-br|bancada de trabalho PartDesign]] para a criação de corpos sólidos.
A conversão de objetos de Draft para [[File:Workbench_Sketcher.svg|32px]] [[Sketcher_Workbench/pt-br|Sketches]] também é possível, o que significa que as formas também podem ser usadas com a [[File:Workbench_PartDesign.svg|32px]] [[PartDesign_Workbench/pt-br|bancada de trabalho PartDesign]] para a criação de corpos sólidos.
</div>


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.

<div class="mw-translate-fuzzy">
O FreeCAD é principalmente uma aplicação de modelagem 3D, e assim suas ferramentas 2D não são tão avançadas como em outros programas de desenho. Se seu objetivo principal é a produção de desenhos 2D complexos e arquivos [[DXF/pt-br|DXF]], e você não precisa de modelagem 3D, talvez você queira considerar um programa de software dedicado ao desenho técnico, como o [https://en.wikipedia.org/wiki/LibreCAD LibreCAD], [https://en.wikipedia.org/wiki/QCad QCad], ou outros.
O FreeCAD é principalmente uma aplicação de modelagem 3D, e assim suas ferramentas 2D não são tão avançadas como em outros programas de desenho. Se seu objetivo principal é a produção de desenhos 2D complexos e arquivos [[DXF/pt-br|DXF]], e você não precisa de modelagem 3D, talvez você queira considerar um programa de software dedicado ao desenho técnico, como o [https://en.wikipedia.org/wiki/LibreCAD LibreCAD], [https://en.wikipedia.org/wiki/QCad QCad], ou outros.
</div>


[[Image:Draft_Workbench_Example.png|400px|Draft Workbench Example]]
[[Image:Draft_Workbench_Example.png]]
{{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 ==
==Ferramentas para desenhar objetos==


* [[Image:Draft_Line.svg|32px]] [[Draft_Line|Line]]: creates a straight line.
Estas são ferramentas para criar objetos.


* [[Image:Draft_Line.svg|32px]] [[Draft_Line/pt-br|Line]]: desenha um segmento de linha entre dois pontos.
* [[Image:Draft_Wire.svg|32px]] [[Draft_Wire|Polyline]]: creates a polyline (also called wire), a sequence of several connected line segments.
* [[Image:Draft_Wire.svg|32px]] [[Draft_Wire/pt-br|Polyline]]: desenha uma linha feita de segmentos de linhas múltiplas (polilinha).
* [[Image:Draft_Fillet.svg|32px]] [[Draft_Fillet/pt-br|Fillet]]: desenha um filete (canto arredondado) ou um chanfro (linha reta) entre duas [[Draft_Line/pt-br|linhas]] simples. {{Version|0.19}}
* [[Image:Draft_Arc.svg|32px]] [[Draft_Arc/pt-br|Arc]]: desenha um segmento de arco a partir do centro, raio, ângulo inicial e ângulo final.
* [[Image:Draft_Arc_3Points.svg|32px]] [[Draft_Arc_3Points/pt-br|Arc 3Points]]: desenha um segmento de arco circular a partir de três pontos que estão localizados na circunferência. {{Version|0.19}}
* [[Image:Draft_Circle.svg|32px]] [[Draft_Circle/pt-br|Circle]]: desenha um círculo a partir do centro e do raio.
* [[Image:Draft_Ellipse.svg|32px]] [[Draft_Ellipse/pt-br|Ellipse]]: desenha uma elipse a partir de dois pontos de canto.
* [[Image:Draft_Rectangle.svg|32px]] [[Draft_Rectangle/pt-br|Rectangle]]: desenha um retângulo a partir de dois pontos de canto.
* [[Image:Draft_Polygon.svg|32px]] [[Draft_Polygon/pt-br|Polygon]]: desenha um polígono regular a partir do centro, do raio e do número de lados.
* [[Image:Draft_BSpline.svg|32px]] [[Draft_BSpline/pt-br|BSpline]]: retira um B-Spline de uma série de pontos.
* [[Image:Draft_CubicBezCurve.svg|32px]] [[Draft_CubicBezCurve/pt-br|Cubic Bezier Curve]]: desenha uma curva Bezier de terceiro grau arrastando dois pontos. {{Version|0.19}}
* [[Image:Draft_BezCurve.svg|32px]] [[Draft_BezCurve/pt-br|Bezier Curve]]: desenha uma curva Bezier a partir de uma série de pontos.
* [[Image:Draft_Point.svg|32px]] [[Draft_Point/pt-br|Point]]: insere um objeto pontual.
* [[Image:Draft_Facebinder.svg|32px]] [[Draft_Facebinder/pt-br|Facebinder]]: cria um novo objeto a partir de rostos selecionados em objetos existentes.
* [[Image:Draft_ShapeString.svg|32px]] [[Draft_ShapeString/pt-br|ShapeString]]: insere uma forma composta que representa uma cadeia de texto em um determinado ponto.


* [[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]].
== Objetos de anotação ==


* <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-->
* [[Image:Draft_Text.svg|32px]] [[Draft_Text|Text]]: draws a multi-line text annotation.
* [[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}}


:* [[Image:Draft_Arc.svg|32px]] [[Draft_Arc|Arc]]: creates a circular arc from a center, a radius, a start angle and an aperture angle.
== Modifying objects ==


:* [[Image:Draft_Arc_3Points.svg|32px]] [[Draft_Arc_3Points|Arc by 3 points]]: creates a circular arc from three points that define its circumference.
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.


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


* [[Image:Draft_Move.svg|32px]] [[Draft_Move|Move]]: moves objects from one location to another.
* [[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. {{Version|0.17}}


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


* [[Image:Draft_Join.svg|32px]] [[Draft_Join|Join]]: joins lines together into a single wire. {{Version|0.18}}
* [[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. {{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.


* <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_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]]. {{Version|0.17}}
* [[Image:Draft_FlipDimension.svg|32px]] [[Draft_FlipDimension|Flip Dimension]]: flips the orientation of the text of a [[Draft Dimension|Draft Dimension]].


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


:* [[Image:Draft_BezCurve.svg|32px]] [[Draft_BezCurve|Bézier curve]]: creates a Bézier curve from several points.
== Draft Tray toolbar ==


* [[Image:Draft_Point.svg|32px]] [[Draft_Point|Point]]: creates a simple point.
The [[Draft_Tray|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, line width, text size 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_Facebinder.svg|32px]] [[Draft_Facebinder|Facebinder]]: creates a surface object from selected faces.

* [[Image:Draft_SetStyle.svg|32px]] [[Draft_SetStyle|Set style]]: sets the default style for new objects, and optionally applies the style to selected objects and groups.
* [[Image:Draft_ToggleConstructionMode.svg|32px]] [[Draft_ToggleConstructionMode|Construction mode]]: toggles the Draft construction mode on or off.
* [[Image:Draft_ShapeString.svg|32px]] [[Draft_ShapeString|ShapeString]]: creates a compound shape that represents a text string.

* [[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}}
* [[Image:Draft_Hatch.svg|32px]] [[Draft_Hatch|Hatch]]: creates hatches on the planar faces of a selected object. {{Version|0.20}}

== Annotation ==

* [[Image:Draft_Text.svg|32px]] [[Draft_Text|Text]]: creates a multi-line text at a given point.

* [[Image:Draft_Dimension.svg|32px]] [[Draft_Dimension|Dimension]]: creates a linear dimension, a radial dimension or an angular dimension.

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

* [[Image:Draft_AnnotationStyleEditor.svg|32px]] [[Draft_AnnotationStyleEditor|Annotation styles...]]: allows you to define styles that affect the visual properties of annotation-like objects.

== Modification ==

* [[Image:Draft_Move.svg|32px]] [[Draft_Move|Move]]: moves or copies selected objects from one point to another.

* [[Image:Draft_Rotate.svg|32px]] [[Draft_Rotate|Rotate]]: rotates or copies selected objects around a center point by a given angle.

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

* [[Image:Draft_Mirror.svg|32px]] [[Draft_Mirror|Mirror]]: creates mirrored copies from selected objects.

* [[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_Trimex.svg|32px]] [[Draft_Trimex|Trimex]]: trims or extends a selected object.

* [[Image:Draft_Stretch.svg|32px]] [[Draft_Stretch|Stretch]]: stretches objects by moving selected points.

* [[Image:Draft_Clone.svg|32px]] [[Draft_Clone|Clone]]: creates linked copies, clones, of selected objects.

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

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

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

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

:* [[Image:Draft_PathArray.svg|32px]] [[Draft_PathArray|Path array]]: creates an array from a selected object by placing copies along a path.

:* [[Image:Draft_PathLinkArray.svg|32px]] [[Draft_PathLinkArray|Path link array]]: idem, but create a [[App_Link|Link]] array instead of a regular array.

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

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

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

* [[Image:Draft_SubelementHighlight.svg|32px]] [[Draft_SubelementHighlight|Subelement highlight]]: temporarily highlights selected objects, or the base objects of selected objects.

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

<span id="Draft_Tray"></span>
== Barra de ferramentas da bandeja de rascunho ==

A barra de ferramentas [[Draft_Tray/pt-br|Bandeja de rascunho]] aparece quando a bancada de trabalho é iniciada, e permite selecionar o plano de trabalho, com algumas propriedades visuais como a cor da linha, cor da forma, largura da linha, tamanho do texto e grupo automático.

[[Image:Draft_tray_default.png]]

<div class="mw-translate-fuzzy">
* [[Image:Draft_SelectPlane.svg|32px]] [[Draft_SelectPlane/pt-br|Plano de trabalho]]: define um plano de trabalho a partir de uma vista padrão ou de uma face selecionada.
* [[Image:Draft_SetStyle.svg|32px]] [[Draft_SetStyle/pt-br|Estilo de conjunto]]: define o estilo padrão para novos objetos, e opcionalmente aplica o estilo a objetos e grupos selecionados.
* [[Image:Draft_ToggleConstructionMode.svg|32px]][[Draft_ToggleConstructionMode/pt-br|Modo de construção]]: ativa ou desativa o modo de construção de rascunho.
* [[Image:Draft_AutoGroup.svg|32px]] [[Draft AutoGroup/pt-br|Grupo automático]]: colocar automaticamente novos objetos em um determinado [[File:Std_Group.svg|32px]][[Std_Group/pt-br|Grupo padrão]], [[File:Draft_Layer.svg|32px]][[Draft_Layer/pt-br|Camada]], ou um dos objetos de grupo do [[Arch_Workbench/pt-br|Bancada de trabalho Arch]], como [[File:Arch_BuildingPart.svg|32px]]. [[Arch_BuildingPart/pt-br|Parte de um edifício]]. {{Version|0.17}}
</div>

* [[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 ==
== Draft annotation scale widget ==


<div class="mw-translate-fuzzy">
With the [[Draft_annotation_scale_widget|Draft annotation scale widget]] the Draft annotation scale can be specified. The widget is located in the [[Status_bar|Status bar]].
Com o [[Draft_annotation_scale_widget/pt-br|Widget de escala de anotação]] a escala de anotação Draft pode ser especificada. O widget está localizado na [[Status_bar/pt-br|Barra de status]].
</div>


[[Image:Draft_annotation_scale_widget_button.png]]
[[Image:Draft_annotation_scale_widget_button.png]]
Line 106: Line 171:
== Draft snap widget ==
== Draft snap widget ==


<div class="mw-translate-fuzzy">
The [[Draft_snap_widget|Draft snap widget]] can be used as an alternative for the [[#Draft_Snap_toolbar|Draft Snap toolbar]]. The widget is located in the [[Status_bar|Status bar]].
O [[Draft_snap_widget/pt-br|Widget de ancoragem]] pode ser usado como uma alternativa para a [[#Barra de ferramentas Rascunho de pressão|Barra de ferramentas Rascunho de pressão]]. O widget está localizado na [[Status_bar/pt-br|Barra de status]].
</div>


[[Image:Draft_snap_widget_button.png]]
[[Image:Draft_snap_widget_button.png]]


<span id="Draft_snap_toolbar"></span>
== Draft Snap toolbar ==
<div class="mw-translate-fuzzy">
== Barra de ferramentas Rascunho de pressão ==
</div>


<div class="mw-translate-fuzzy">
The [[Draft_Snap|Draft Snap]] toolbar allows selecting the currently snapping mode. Its button keep depressed when a mode is active.
A barra de ferramentas [[Draft_Snap/pt-br|Captura]] permite selecionar o modo de precisão atual. Seu botão se mantém pressionado quando um modo está ativo.
</div>


* [[Image:Draft_Snap_Lock.svg|32px]] [[Draft_Snap_Lock|Toggle snap]]: toggles [[Draft Snap|object snapping]] globally on or off.
* [[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.
* [[Image:Draft_Snap_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Midpoint]]: snaps to the middle point of line and arc segments.
* [[Image:Draft_Snap_Endpoint.svg|32px]] [[Draft_Snap_Endpoint|Snap endpoint]]: snaps to the endpoints of edges.

* [[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_Midpoint.svg|32px]] [[Draft_Snap_Midpoint|Snap midpoint]]: snaps to the midpoint of edges.

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

* [[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_Perpendicular.svg|32px]] [[Draft_Snap_Perpendicular|Snap perpendicular]]: snaps to the perpendicular points on faces ({{Version|0.21}}) and edges.

* [[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_Snap_Extension.svg|32px]] [[Draft_Snap_Extension|Snap extension]]: snaps to an imaginary line that extends beyond the endpoints of straight edges.

* [[Image:Draft_ToggleGrid.svg|32px]] [[Draft_ToggleGrid|Toggle grid]]: toggles the visibility of the grid on or off.
* [[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 ==
== Draft utility tools toolbar ==


<div class="mw-translate-fuzzy">
* [[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. {{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_LayerManager.svg|32px]] [[Draft_LayerManager|Gerenciar camadas...]]: permite gerenciar as camadas em um documento. {{Version/pt-br|0.21}}
</div>
* [[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]].
* [[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]].
* [[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_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: add selected objects to the Construction group. {{Version|0.17}}
* [[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]].

<span id="Additional_tools"></span>
== Ferramentas adicionais ==

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_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]].
== Additional tools ==


<span id="Additional_features"></span>
The {{MenuCommand|Draft → Utilities}} menu contains several tools. Most of them can also be accessed from toolbars and have already been mentioned above. For the following tools this is not the case.
== Características adicionais ==


<div class="mw-translate-fuzzy">
* [[Image:Draft_ToggleContinueMode.svg|32px]] [[Draft_ToggleContinueMode|Toggle continue mode]]: toggles the Draft continue mode on or off.
* [[Draft Constrain/pt-br|Restrições]]: limitar o ponteiro a movimentos horizontais ou verticais em relação a um ponto anterior.
* [[Image:Draft_ApplyStyle.svg|32px]] [[Draft_ApplyStyle|Apply current style]]: applies the current style to selected objects and groups.
* [[Draft Snap/pt-br|Captura]]: colocar novos pontos em lugares especiais sobre objetos existentes ou sobre a grade.
* [[Image:Draft_ShowSnapBar.svg|32px]] [[Draft_ShowSnapBar|Show snap bar]]: shows the [[Draft Snap|Draft Snap]] toolbar.
* [[Draft ToggleConstructionMode/pt-br|Modo de construção]]: Permite criar geometrias separadas das demais, simplesmente ligando e desligando-as.
* [[Draft SelectPlane/pt-br|Plano de trabalho]]: permite selecionar uma superfície sobre a qual você pode construir suas formas.
</div>


== Obsolete tools ==
== Tree view context menu ==


The following additional options are available in the [[Tree_view|Tree view]] context menu:
These commands are obsolete but still available.


=== Default options ===
* [[Image:Draft_Array.svg|32px]] [[Draft_Array|Array]]: creates a polar or rectangular array from selected objects. {{Obsolete|0.19}}
* [[Image:Draft_Drawing.svg|32px]] [[Draft_Drawing|Drawing]]: writes selected objects to a [[Drawing_Workbench|Drawing Workbench]] page. {{Obsolete|0.17}}
* [[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_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_UndoLine.svg|32px]] [[Draft_UndoLine|Undo line]]: undoes the last segment of a [[Draft Wire|Draft Wire]]. {{Obsolete|0.19}}


For most Draft objects the following option is available:
== Preferences ==


* Edit: edits the object. Depending on the object type either [[Draft_Edit|Draft Edit]] or a dedicated edit solution is used. {{Version|0.21}}
* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences|Preferences]]: general preferences for the working plane and the drawing tools.
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences|Import Export Preferences]]: preferences available for importing from and exporting to different file formats.


If there is an active document the context menu contains an additional sub-menu:
== File formats ==


* Utilities: a subset of the tools available in the main Draft Utilities menu.
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 Module 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 module provides FreeCAD with importers and exporters for the following file formats:


=== Layer container options ===
* [[Draft_DXF|Autodesk .DXF]]: imports and exports [http://en.wikipedia.org/wiki/AutoCAD_DXF Drawing Exchange Format] files created with 2D CAD applications. See also [[FreeCAD_and_DXF_Import|FreeCAD and DXF Import]].
* [[Draft_DXF|Autodesk .DWG]]: imports and exports DWG files via the DXF importer, when the [[Extra python modules#ODA Converter (previously Teigha Converter)|ODA Converter]] utility is installed. See also [[FreeCAD_and_DWG_Import|FreeCAD and DWG Import]].
* [[Draft_SVG|SVG]]: imports and exports [http://en.wikipedia.org/wiki/Scalable_Vector_Graphics Scalable Vector Graphics] files created with vector drawing applications.
* [[Draft_OCA|Open Cad format .OCA]]: imports and exports OCA/GCAD files, a potentially new [http://groups.google.com/group/open_cad_format open CAD file format].
* [[Draft_DAT|Airfoil Data Format .DAT]]: imports DAT files describing [http://www.ae.illinois.edu/m-selig/ads/coord_database.html Airfoil profiles].


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


* [[Image:Draft_Layer.svg|32px]] [[Draft_Layer#Layer_container_options|Merge layer duplicates]]: merges all layers with the same base label.
* [[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_NewLayer.svg|32px]] [[Draft_Layer#Layer_container_options|Add new layer]]: adds a new layer to the current document.
== Additional features ==


=== Layer options ===
* [[Draft Constrain|Constraining]]: limit the pointer to horizontal or vertical movements relative to a previous point.
* [[Draft Snap|Snapping]]: place new points on special places on existing objects or on the grid.
* [[Draft_Copying|Copy Mode]]: All modification tools can either modify the selected objects or create a modified copy of them. Pressing and holding {{KEY|Alt}} while the object is being modified, e.g. moved or rotated, creates a copy when the key is released.
* [[Draft ToggleConstructionMode|Construction Mode]]: Allows you to create geometries separate from the rest by simply switching them on and off.
* [[Draft SelectPlane|Working plane]]: allows you to select a surface on which to build your shapes.


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


* [[Image:button_right.svg|32px]] [[Draft_AutoGroup|Activate this layer]]: activates the selected layer.
{{Emphasis|See also:}} [[Test_Workbench|Test Workbench]].

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

<span id="Obsolete_tools"></span>
== Ferramentas obsoletas ==

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

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

<span id="Preferences"></span>
== Preferências ==

<div class="mw-translate-fuzzy">
* [[Image:Preferences-draft.svg|32px]] [[Draft_Preferences/pt-br|Preferências]]: preferências gerais para o plano de trabalho e para as ferramentas de desenho.
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preferences/pt-br|Preferências de exportação de importação]]: preferências disponíveis para importação e exportação de e para diferentes formatos de arquivo.
</div>

* [[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>
== Formatos de arquivo ==

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.

<div class="mw-translate-fuzzy">
* [[Draft_DXF/pt-br|Autodesk .DXF]]: importação e exportação [http://en.wikipedia.org/wiki/AutoCAD_DXF Drawing Exchange Format] arquivos criados com aplicações CAD 2D. Veja também [[FreeCAD_and_DXF_Import/pt-br|FreeCAD e DXF Import]].
* Autodesk .DWG: importa e exporta arquivos DWG através do importador DXF, quando o utilitário [[Extra python modules#ODA Converter (anteriormente Teigha Converter)|ODA Converter]] é instalado. Veja também [[FreeCAD_and_DWG_Import/pt-br|FreeCAD e DWG Import]].
* [[Draft_SVG/pt-br|SVG]]: importação e exportação [http://en.wikipedia.org/wiki/Scalable_Vector_Graphics Scalable Vector Graphics] arquivos criados com aplicações de desenho vetorial.
* [[Draft_OCA/pt-br|Open Cad format .OCA]]: importa e exporta arquivos OCA/GCAD, um formato de arquivo CAD potencialmente novo [http://groups.google.com/group/open_cad_format abrir arquivo CAD].
* [[Draft_DAT/pt-br|Airfoil Data Format .DAT]]: importa arquivos DAT descrevendo [http://www.ae.illinois.edu/m-selig/ads/coord_database.html Airfoil profiles].
</div>

<span id="Unit_tests"></span>
== Testes unitários ==

<div class="mw-translate-fuzzy">
{{Emphasis|Veja também:}}[[Testing/pt-br|Bancada de trabalho Testing framework]].
</div>

<div class="mw-translate-fuzzy">
Para executar os testes unitários da bancada de trabalho, executar o seguinte a partir do terminal do sistema operacional.
</div>


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
Line 199: Line 374:
== Scripting ==
== Scripting ==


<div class="mw-translate-fuzzy">
The Draft tools can be used in [[macros|macros]] and from the [[Python|Python]] console by using the [[Draft_API|Draft API]].
As ferramentas Draft podem ser usadas em [[macros/pt-br|macros]] e do console [[Python/pt-br|Python]] usando o [[Draft_API/pt-br|Draft API]].
</div>

<div class="mw-translate-fuzzy">
A bancada de trabalho inclui um módulo para criar amostras de todos os objetos em um novo documento. {{Version|0.19}}
</div>


<div class="mw-translate-fuzzy">
The workbench includes a module to create samples of all objects in a new document. {{Version|0.19}}
Use isto para testar se todos os objetos são produzidos corretamente.
</div>


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 209: Line 391:
}}
}}


<div class="mw-translate-fuzzy">
Inspecting the code of this module is useful to understand how to use the programming interface.
A inspeção do código deste módulo é útil para entender como utilizar a interface de programação.
{{Code|code=
</div>
$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]].}}

== Tutorials ==
* [[Draft_tutorial|Draft tutorial]]
* [[Draft_tutorial|Draft tutorial]]
* [[Draft_tutorial_Outdated|Draft tutorial Outdated]]
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]]
* [[Draft_ShapeString_tutorial|Draft ShapeString tutorial]]



<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav
|[[Arch_Workbench/pt-br|Bancadas de trabalho Arch]]
|[[Arch_Workbench/pt-br|Bancadas de trabalho Arch]]
Line 230: Line 408:
|IconR=Workbench_Drawing.svg
|IconR=Workbench_Drawing.svg
}}
}}
</div>


{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}

Latest revision as of 09:21, 21 April 2024

Ícone da bancada de trabalho de draft

Introdução

A bancada de trabalho 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 disparo para controlar com precisão a posição de sua geometria.

Os objetos 2D criados podem ser usados para esboço geral de uma forma semelhante à do Inkscape ou do Autocad. Estas formas 2D também podem ser usadas como componentes base de objetos 3D criados com outras bancadas de trabalho, por exemplo, a bancada de trabalho Part e Arch. A conversão de objetos de Draft para Sketches também é possível, o que significa que as formas também podem ser usadas com a bancada de trabalho PartDesign para a criação de corpos sólidos.

The Draft Workbench also provides tools to define a working plane, a grid, and a snapping system to precisely control the position of geometry.

O FreeCAD é principalmente uma aplicação de modelagem 3D, e assim suas ferramentas 2D não são tão avançadas como em outros programas de desenho. Se seu objetivo principal é a produção de desenhos 2D complexos e arquivos DXF, e você não precisa de modelagem 3D, talvez você queira considerar um programa de software dedicado ao desenho técnico, como o LibreCAD, QCad, ou outros.

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.

Barra de ferramentas da bandeja de rascunho

A barra de ferramentas Bandeja de rascunho aparece quando a bancada de trabalho é iniciada, e permite selecionar o plano de trabalho, com algumas propriedades visuais como a cor da linha, cor da forma, largura da linha, tamanho do texto e grupo automático.

  • 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

Com o Widget de escala de anotação a escala de anotação Draft pode ser especificada. O widget está localizado na Barra de status.

Draft snap widget

O Widget de ancoragem pode ser usado como uma alternativa para a Barra de ferramentas Rascunho de pressão. O widget está localizado na Barra de status.

Barra de ferramentas Rascunho de pressão

A barra de ferramentas Captura permite selecionar o modo de precisão atual. Seu botão se mantém pressionado quando um modo está ativo.

  • 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

Ferramentas adicionais

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.

Características adicionais

  • Restrições: limitar o ponteiro a movimentos horizontais ou verticais em relação a um ponto anterior.
  • Captura: colocar novos pontos em lugares especiais sobre objetos existentes ou sobre a grade.
  • Modo de construção: Permite criar geometrias separadas das demais, simplesmente ligando e desligando-as.
  • Plano de trabalho: permite selecionar uma superfície sobre a qual você pode construir suas formas.

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

Ferramentas obsoletas

  • Drawing: inserts views of selected objects into a drawing page. Not available in version 0.21 and above.

Preferências

Formatos de arquivo

The Draft Workbench provides FreeCAD with importers and exporters for several file formats. These are used by the Std Import and Std Export commands.

Testes unitários

Para executar os testes unitários da bancada de trabalho, executar o seguinte a partir do terminal do sistema operacional.

freecad -t TestDraft

Scripting

As ferramentas Draft podem ser usadas em macros e do console Python usando o Draft API.

A bancada de trabalho inclui um módulo para criar amostras de todos os objetos em um novo documento. introduced in version 0.19

Use isto para testar se todos os objetos são produzidos corretamente.

import drafttests.draft_test_objects as dto
doc = dto.create_test_file()

A inspeção do código deste módulo é útil para entender como utilizar a interface de programação.

Tutorials