Sketcher Workbench/pt-br: Difference between revisions

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


{{Docnav
The '''Sketcher Workbench''' is used to create 2D geometries intended for use in the '''[[PartDesign Workbench|Part Design Workbench]]''' and other workbenches.
|[[Robot_Workbench/pt-br|Bancada de trabalho Robot]]
Generally a 2D geometry is considered the starting-point for most CAD models - a simple 2D sketch can be "extruded" into a 3D shape, further 2D sketches can be used to create pockets in the surface of this shape and sketches can be used to define 'pads' (extrusions) on the surface of 3D objects. Along with [[Part Module|Boolean operations]], the Sketcher forms the core of generative solid shape design.
|[[Spreadsheet_Workbench/pt-br|Bancada de trabalho Spreadsheet]]
|IconL=Workbench_Robot.svg
|IconR=Workbench_Spreadsheet.svg
}}


{{VeryImportantMessage|This page has been marked for translation. But it is still a work in progress!!!}}
The Sketcher workbench itself features constraints - allowing 2D shapes to be constrained to precise geometrical definitions. And a constraint solver which calculates the constrained-extent of 2D geometry and allows interactive exploration of sketch degrees-of-freedom.

[[Image:Workbench_Sketcher.svg|thumb|128px|Ícone da Sketcher workbench]]


{{TOCright}}
{{TOCright}}
[[File:FC_ConstrainedSketch.png|none]]
''A basic, fully-constrained sketch‎.''


<span id="Introduction"></span>
== Basics of constraint sketching ==
== Introdução ==
To explain how the Sketcher works, it may be useful to compare it to the "traditional" way of drafting.

<div class="mw-translate-fuzzy">
A bancada de trabalho [[Image:Workbench_Sketcher.svg|24px]] [[Sketcher_Workbench/pt-br|bancada de trabalho Sketcher]] do FreeCAD é usada para criar Sketches 2D destinadas ao uso na [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench/pt-br|bancada de trabalho PartDesign]], [[Image:Workbench_Arch.svg|24px]] [[Arch Workbench/pt-br|bancada de trabalho Arch]], e outras bancadas de trabalho. Geralmente, um desenho 2D é considerado o ponto de partida para a maioria dos modelos CAD, pois um esboço 2D pode ser "extrudado" para criar uma forma 3D; outros esboços 2D podem ser usados para criar outros recursos como bolsos, saliências ou extrusões no topo das formas 3D previamente construídas. Junto com as operações booleanas definidas na [[Image:Workbench_Part.svg|24px]] [[Part_Workbench/pt-br|bancada de trabalho Part]], o Sketcher forma a base do método de [[constructive solid geometry/pt-br|Geometria Sólida Construtiva]](constructive solid geometry - CSG) de construção de sólidos. Além disso, junto com as operações da [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign Workbench/pt-br|bancada de trabalho PartDesign]], o Sketcher também forma a base da metodologia de [[feature editing/pt-br|edição de recursos]] de criação de sólidos .
</div>

Together with boolean operations defined in the [[Image:Workbench_Part.svg|16px]] [[Part Workbench|Part Workbench]], the Sketcher Workbench, or "The Sketcher" for short, forms the basis of the [[Constructive_solid_geometry|constructive solid geometry]] (CSG) method of building solids. Together with [[Image:Workbench_PartDesign.svg|16px]] [[PartDesign_Workbench|PartDesign Workbench]] operations, it also forms the basis of the [[Feature_editing|feature editing]] methodology of creating solids. But many other workbenches use sketches as well.

<div class="mw-translate-fuzzy">
A bancada do Sketcher apresenta restrições ("constraints"), permitindo que formas 2D sigam definições geométricas precisas em termos de comprimento, ângulos e relações (horizontalidade, verticalidade, perpendicularidade, etc.). Um solucionador de restrições calcula a extensão do efeito das restrições sobre a geometria 2D e permite a exploração interativa dos graus de liberdade do esboço.
</div>

<div class="mw-translate-fuzzy">
O Sketcher não se destina à produção de plantas 2D. Depois que os esboços são usados para gerar um sólido, eles são automaticamente ocultados. As restrições são visíveis apenas no modo de edição de esboço.
</div>

[[File:FC_ConstrainedSketch.png|450px]]
{{Caption|''Um esboço básico totalmente restrito''}}

== Constraints ==

<div class="mw-translate-fuzzy">
Em vez de cotas, restrições são usadas para limitar os graus de liberdade de um objeto. Por exemplo, uma linha sem restrições tem 4 graus de liberdade - (em inglês, Degrees Of Freedom - abreviado como " DOF "): ela pode ser movida horizontal e verticalmente, pode ser estendida/encurtada, e pode ser rotacionada.
</div>

Aplicar uma restrição horizontal ou vertical, ou uma restrição angular (em relação a outra linha ou a um dos eixos), limitará sua capacidade de rotação, deixando-a com 3 graus de liberdade. Travar um de seus pontos em relação à origem removerá outros 2 graus de liberdade, e a aplicação de uma restrição de tamanho (dimensão) removerá o último grau de liberdade. A linha é então considerada '''totalmente restrita'''.

<div class="mw-translate-fuzzy">
Vários objetos podem ser restringidos entre si. Duas linhas podem ser unidas por meio de um de seus pontos com a restrição de ponto coincidente. Um ângulo pode ser definido entre elas, ou elas podem ser postas como perpendiculares. Uma linha pode ser tangente a um arco ou círculo e assim por diante. Um esboço complexo com vários objetos terá uma série de soluções diferentes e torná-lo '''totalmente restrito''' significa que apenas uma dessas soluções possíveis foi alcançada com base nas restrições aplicadas.
</div>

<div class="mw-translate-fuzzy">
Existem dois tipos de restrições: geométricas e dimensionais. Eles são detalhados na seção [[#Ferramentas/pt-br|'Ferramentas']] abaixo.
</div>

=== Edit constraints ===

When a [[Sketcher_ToggleDrivingConstraint|driving dimensional constraint]] is created, and if the {{MenuCommand|Ask for value after creating a dimensional constraint}} [[Sketcher_Preferences#Display|preference]] is selected (default), a dialog opens to edit its value.

[[Image:Sketcher_Edit_Constraint.png|Sketcher_Edit_Constraint.png]]

You can enter a numerical value or an [[Expressions|expression]], and it is possible to name the constraint to facilitate its use in other expressions. You can also check the {{MenuCommand|Reference}} checkbox to switch the constrain to reference mode.

To edit the value of an existing dimensional constraint do one of the following:
* Double-click the constraint value in the [[3D_view|3D view]].
* Double-click the constraint in the [[Sketcher_Dialog|Sketcher Dialog]].
* Right-click the constraint in the Sketcher Dialog and select the {{MenuCommand|Change value}} option from the context menu.

=== Reposition constraints ===

Dimensional constraints can be repositioned in the 3D view by dragging. Hold down the left mouse button over the constraint value and move the mouse. The symbols of geometric constraints are positioned automatically and cannot be moved.

== Profile sketches ==

To create a sketch that can be used as a profile for generating solids certain rules must be followed:
* The sketch must contain only closed contours. Gaps between endpoints, however small, are not allowed.
* Contours can be nested, to create voids, but should not self-intersect or intersect other contours.
* Contours cannot share edges with other contours. Duplicate edges must be avoided.
* T-connections, that is more than two edges sharing a common point, or a point touching an edge, are not allowed.

These rules do not apply to construction geometry (default color blue), which is not shown outside edit mode, or if the sketch is used for a different purpose. Depending on the workbench and the tool that will use the profile sketch, additional restrictions may apply.

== Drawing aids ==

The Sketcher Workbench has several drawing aids and other features that can help when creating geometry and applying constraints.

=== Continue modes ===

There are two continue modes: '''Geometry creation "Continue Mode"''' and '''Constraint creation "Continue Mode"'''. If these are checked (default) in the [[Sketcher_Preferences#Display|preferences]], related tools will restart after finishing. To exit an continuous tool press {{KEY|Esc}} or the right mouse button. This must be repeated if a continuous geometry tool has already received input. You can also exit a continuous tool by starting another geometry or constraint creation tool. Note that pressing {{KEY|Esc}} if no tool is active will exit sketch edit mode. Uncheck the '''Esc can leave sketch edit mode''' [[Sketcher_Preferences#General|preference]] if you often inadvertently press {{KEY|Esc}} too many times.

=== Auto constraints ===

In sketches that have '''Auto constraints''' checked (default) several constraints are applied automatically. The icon of a proposed automatic constraint is shown next to the cursor when it is placed correctly. Left-Clicking will then apply that constraint. This is a per-sketch setting that can be changed in the [[Sketcher_Dialog#Constraints|Sketcher Dialog]] or by changing the {{PropertyView|Autoconstraints}} [[Property_editor|property]] of the sketch.

The following constraints are applied automatically:
* [[Image:Sketcher_ConstrainCoincident.svg|16px]] [[Sketcher_ConstrainCoincident|Coincident]]
* [[Image:Sketcher_ConstrainPointOnObject.svg|16px]] [[Sketcher_ConstrainPointOnObject|Point on object]]
* [[Image:Sketcher_ConstrainHorizontal.svg|16px]] [[Sketcher_ConstrainHorizontal|Horizontal]]
* [[Image:Sketcher_ConstrainVertical.svg|16px]] [[Sketcher_ConstrainVertical|Vertical]]
* [[Image:Sketcher_ConstrainTangent.svg|16px]] [[Sketcher_ConstrainTangent|Tangent]]
* {{Version|1.0}}: [[Image:Sketcher_ConstrainSymmetric.svg|16px]] [[Sketcher_ConstrainSymmetric|Symmetric]] (line midpoint)

=== Snapping ===

{{Version|0.21}}

It is possible to [[Sketcher_Snap|snap]] to grid lines and grid intersection, to edges of geometry and midpoints of lines and arcs, and to certain angles. Please note that snapping does not produce constraints in and of itself. For example, only if [[#Auto constraints|Auto constraints]] is switched on will snapping to an edge produce a [[Sketcher_ConstrainPointOnObject|Point on object constraint]]. But just picking a point on the edge would then have the same result.

=== On-View-Parameters ===

{{Version|1.0}}

Depending on the selected option in the [[Sketcher_Preferences#General|preferences]] only the dimensional On-View-Parameters or both the dimensional and the positional On-View-Parameters can be enabled. Positional parameters allow the input of exact coordinates, for example the center of a circle, or the start point of a line. Dimensional parameters allow the input of exact dimensions, for example the radius of a circle, or the length and angle of a line. On-View-Parameters are not available for all tools.

[[Image:Sketcher_On_view_parameters_positional.png]]
{{Caption|Determining the center point of a circle with the positional parameters enabled}}

[[Image:Sketcher_On_view_parameters_dimensional.png]]
{{Caption|Determining the radius of a circle with the dimensional parameters enabled}}

If values are entered and confirmed by pressing {{KEY|Enter}} or {{KEY|Tab}}, related constraints are added automatically. If two parameters are displayed at the same time, for example the X and Y coordinate of a point, it is possible to enter one value and pick a point to define the other. Depending on the object additional constraints may be required to fully constrain it. Constraints resulting from On-View-Parameters take precedence over those that may result from [[Sketcher_Dialog#Constraints|Auto constraints]].

[[Image:Sketcher_ArcExample3.png|300px]]
{{Caption|Arc created by entering all On-View-Parameters with resulting automatically created constraints}}

=== Coordinate display ===

If the '''Show coordinates beside cursor while editing''' [[Sketcher_Preferences#Display|preference]] is checked (default), the parameters of the current geometry tool (coordinates, radius, or length and angle) are displayed next to the cursor. This is deactivated while On-View-Parameters are shown.

== Selection methods ==

While a sketch is in edit mode the following selection methods can be used:

=== 3D view element selection ===

As elsewhere in FreeCAD, an element can be selected in the [[3D_view|3D view]] with a single left mouse click. But there is no need to hold down the {{KEY|Ctrl}} key when selecting multiple elements. Holding down that key is possible though and has the advantage that you can miss-click without losing the selection. Edges, points and constraints can be selected in this manner.

=== 3D view box selection ===

Box selection in the 3D view works without using [[Std_BoxSelection|Std BoxSelection]] or [[Std_BoxElementSelection|Std BoxElementSelection]]:
# Make sure that no tool is active.
# Do one of the following:
#* Click in an empty area and drag a rectangle from left to right to select elements that lie completely inside the rectangle.
#* Click in an empty area and drag a rectangle from right to left to also select elements that touch or cross the rectangle.

You can box-select edges and points, constraints cannot be box-selected.

=== 3D view connected geometry selection ===

{{Version|1.0}}

Double-clicking an edge in the 3D view will select all edges directly and indirectly connected with that edge via endpoints. There is no need for the edges to be connected with [[Sketcher_ConstrainCoincident|Coincident constraints]], endpoints need only have the same coordinates.

=== Sketcher Dialog selection ===

Edges and points can also be selected from the Elements section of the [[Sketcher_Dialog|Sketcher Dialog]], and constraints from the Constraints section of that dialog.

== Copy, cut and paste ==

{{Version|1.0}}

The standard keyboard shortcuts, {{KEY|Ctrl}}+{{KEY|C}}, {{KEY|Ctrl}}+{{KEY|X}} and {{KEY|Ctrl}}+{{KEY|V}}, can be used to copy, cut and paste selected Sketcher geometry including related constraints. But these tools are also available from the {{MenuCommand|Sketch → Sketcher tools}} menu. They can be used within the same sketch but also between different sketches or separate instances of FreeCAD. Since the data is copied to the clipboard in the form of Python code, it can be used in other ways too (e.g. shared on the forum).

<span id="Tools"></span>
== Ferramentas ==

As ferramentas do Sketcher Workbench estão localizadas no menu Sketch e/ou em várias barras de ferramentas. {{Version/pt-br|0.21}}: Quase todas as barras de ferramentas do Sketcher são exibidas apenas enquanto um esboço está no modo de edição. A única exceção é o [[#Barra_de ferramentas_do_Sketcher|Barra de ferramentas do Sketcher]] que só é exibida se nenhum esboço estiver no modo de edição.

Some tools are also available from the [[3D_view|3D view]] context menu while a sketch is in edit mode, or from the context menus of the [[Sketcher_Dialog|Sketcher Dialog]].

{{Version/pt-br|0.21}}: Se um esboço estiver no modo de edição, a barra de ferramentas Estrutura ficará oculta, pois nenhuma de suas ferramentas poderá ser usada.

<span id="General"></span>
=== Gerais ===

<span id="Sketcher_toolbar"></span>
==== Barra de ferramentas do Sketcher ====

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_NewSketch.svg‎‎|32px]] [[Sketcher_NewSketch/pt-br|Criar um novo esboço]]: Cria um novo esboço em uma face ou plano selecionado. Se nenhuma face estiver selecionada enquanto esta ferramenta é executada, o usuário é solicitado a selecionar um plano em uma janela pop-up.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_EditSketch.svg|32px]] [[Sketcher_EditSketch/pt-br|Editar o esboço selecionado]]: Abre a edição do esboço selecionado. Isso abrirá a [[Sketcher_Dialog/pt-br|caixa de diálogo do Sketcher]].
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_MapSketch.svg|32px]] [[Sketcher_MapSketch/pt-br|Mapear um esboço para uma face]]: Mapeia um esboço para a face previamente selecionada de um sólido.
</div>

<div class="mw-translate-fuzzy">
* [[File:Sketcher_ReorientSketch.svg|32px]] [[Sketcher_ReorientSketch/pt-br|Reorientação]]: Permite anexar o esboço a um dos planos principais.
</div>

<div class="mw-translate-fuzzy">
* [[File:Sketcher_ValidateSketch.svg|32px]] [[Sketcher_ValidateSketch/pt-br|Validar]]: Verifica a tolerância de diferentes pontos e as ajusta.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_MergeSketches.svg|32px]] [[Sketcher_MergeSketches/pt-br|Fundir]]: Mescla dois ou mais esboços.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_MirrorSketch.svg|32px]] [[Sketcher_MirrorSketch/pt-br|Espelhar]]: Espelha um esboço em relação ao eixo x, ao eixo y ou à origem.
</div>

<span id="Sketcher_Edit_Mode_toolbar"></span>
==== Barra de ferramentas do Sketcher Modo de Edição ====

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_LeaveSketch.svg|32px]] [[Sketcher_LeaveSketch/pt-br|Fechar a edição do esboço]]: Sai do modo de edição do esboço.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ViewSketch.svg|32px]] [[Sketcher_ViewSketch/pt-br|Olhar perpendicularmente ao plano do esboço]]: Configura a vista do modelo como perpendicular ao plano do esboço.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ViewSection.svg|32px]] [[Sketcher_ViewSection/pt-br|Alternar entre a seção e a exibição completa]]: Cria um plano de seção que oculta temporariamente qualquer coisa na frente do plano do esboço.
</div>

<span id="Sketcher_edit_tools_toolbar"></span>
==== Barra de ferramentas de edição do Sketcher ====

* [[Image:Sketcher_Grid.svg|32px]] [[Sketcher_Grid|Toggle grid]]: Toggles the grid in the sketch currently being edited. Settings can be changed in the related menu. {{Version|0.21}}

* [[Image:Sketcher_Snap.svg|32px]] [[Sketcher_Snap|Toggle snap]]: Toggles snapping in all sketches. Settings can be changed in the related menu. {{Version|0.21}}

* [[Image:Sketcher_RenderingOrder.svg|32px]] [[Sketcher_RenderingOrder|Configure rendering order]]: The rendering order of all sketches can be changed in the related menu. {{Version|0.21}}

<span id="Other"></span>
==== Outros ====

<div class="mw-translate-fuzzy">
* [[File:Sketcher_StopOperation.svg|32px]] [[Sketcher_StopOperation/pt-br|Parar a operação]]: Quando no modo de edição, para a operação atual, seja desenho, configuração de restrições, etc.
</div>

<span id="Sketcher_geometries"></span>
===Geometrias do Sketcher===

Estas são ferramentas para criar objetos.

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePoint.svg|32px]] [[Sketcher_CreatePoint/pt-br|Criar um ponto no esboço]]: Desenha um ponto.
</div>

* <span id="Sketcher_CompLine">[[Image:Sketcher_CreatePolyline.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create (poly)line:</span><!--Do not edit span id: the Sketcher_CompLine pages redirect here-->

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePolyline.svg|32px]] [[Sketcher_CreatePolyline/pt-br|Polilinha (linha de múltiplos pontos)]]: Desenha uma linha composta de vários segmentos de linha. Pressionar a tecla M enquanto se desenha uma polilinha alterna entre os diferentes modos de polilinha.
</div>

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateLine.svg|32px]] [[Sketcher_CreateLine/pt-br|Criar uma linha no esboço]]: Desenha um segmento de reta entre 2 pontos. As linhas são infinitas em relação a certas restrições.
</div>

* <span id="Sketcher_CompCreateArc">[[Image:Sketcher_CreateArc.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create arc:</span><!--Do not edit span id: the Sketcher_CompCreateArc pages redirect here-->

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateArc.svg|32px]] [[Sketcher_CreateArc/pt-br|Pontos de centro e extremidades]]: Desenha um segmento de arco a partir do centro, raio, ângulo inicial e ângulo final.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_Create3PointArc.svg|32px]] [[Sketcher_Create3PointArc/pt-br|Pontos de extremidade e ponto de borda]]: Desenha um segmento de arco a partir dos dois pontos finais e outro ponto na circunferência.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateArcOfEllipse.svg|32px]] [[Sketcher_CreateArcOfEllipse/pt-br|Arco de elipse]]: Desenha um arco de elipse pelo ponto central, ponto do raio maior, ponto inicial e ponto final.
</div>

<div class="mw-translate-fuzzy">
:*[[Image:Sketcher_CreateArcOfHyperbola.svg|32px]] [[Sketcher_CreateArcOfHyperbola/pt-br|Arco de hipérbole]]: Desenha um arco de hipérbole.
</div>

<div class="mw-translate-fuzzy">
:*[[Image:Sketcher_CreateArcOfParabola.svg|32px]] [[Sketcher_CreateArcOfParabola/pt-br|Arco de parábola]]: Desenha um arco de parábola.
</div>

* <span id="Sketcher_CompCreateConic">[[Image:Sketcher_CreateCircle.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create circle/ellipse:</span><!--Do not edit span id: the Sketcher_CompCreateConic pages redirect here-->

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateCircle.svg|32px]] [[Sketcher_CreateCircle/pt-br|Ponto de centro e borda]]: Desenha um círculo a partir do centro e do raio.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_Create3PointCircle.svg|32px]] [[Sketcher_Create3PointCircle/pt-br|3 pontos de borda]]: Desenha um círculo a partir de três pontos na circunferência.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateEllipseByCenter.svg|32px]] [[Sketcher_CreateEllipseByCenter/pt-br|Elipse centro]]: Desenha uma elipse pelo ponto central, ponto do raio maior e ponto do raio menor.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateEllipseBy3Points.svg|32px]] [[Sketcher_CreateEllipseBy3Points/pt-br|Elipse 3 pontos]]: Desenha uma elipse pelo diâmetro maior (2 pontos) e ponto do raio menor.
</div>

* <span id="Sketcher_CompCreateRectangles">[[Image:Sketcher_CreateRectangle.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create rectangle:</span><!--Do not edit span id: the Sketcher_CompCreateRectangles pages redirect here-->

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateRectangle.svg|32px]] [[Sketcher_CreateRectangle/pt-br|Rectângulo]]: Desenha um retângulo a partir de dois vértices opostos.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateRectangle_Center.svg|32px]] [[Sketcher_CreateRectangle_Center/pt-br|Rectângulo Centrado]]: Desenha um retângulo a partir de um ponto central e de um ponto de borda. {{Version|0.20}}
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateOblong.svg|32px]] [[Sketcher_CreateOblong/pt-br|Rectângulo Arredondado]]: Traça um retângulo arredondado a partir de 2 pontos opostos. {{Version|0.20}}
</div>

* <span id="Sketcher_CompCreateRegularPolygon">[[Image:Sketcher_CreateHexagon.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create regular polygon:</span><!--Do not edit span id: the Sketcher_CompCreateRegularPolygon pages redirect here-->

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateTriangle.svg|32px]] [[Sketcher_CreateTriangle/pt-br|Triangulo]]: Desenha um triângulo regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateSquare.svg|32px]] [[Sketcher_CreateSquare/pt-br|Quadrado]]: Desenha um quadrado regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreatePentagon.svg|32px]] [[Sketcher_CreatePentagon/pt-br|Pentágono]]: Desenha um pentágono regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateHexagon.svg|32px]] [[Sketcher_CreateHexagon/pt-br|Hexágono]]: Desenha um hexágono regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateHeptagon.svg|32px]] [[Sketcher_CreateHeptagon/pt-br|Heptágono]]: Desenha um heptágono regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateOctagon.svg|32px]] [[Sketcher_CreateOctagon/pt-br|Octágono]]: Desenha um octógono regular inscrito em um círculo de geometria de construção.
</div>

<div class="mw-translate-fuzzy">
:* [[Image:Sketcher_CreateRegularPolygon.svg|32px]] [[Sketcher_CreateRegularPolygon/pt-br|Criar Polígono Regular]] : Desenha um polígono regular selecionando o número de lados e escolhendo dois pontos: o centro e um canto.
</div>

* <span id="Sketcher_CompSlot">[[Image:Sketcher_CreateSlot.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create slot:</span><!--Do not edit span id: the Sketcher_CompSlot pages redirect here-->

<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateSlot.svg|32px]] [[Sketcher_CreateSlot/pt-br|Oblongo]]: Desenha uma forma oval selecionando o centro de um semicírculo e a extremidade do outro semicírculo.
</div>

:* [[Image:Sketcher_CreateArcSlot.svg|32px]] [[Sketcher_CreateArcSlot|Arc slot]]: Creates an arc slot. {{Version|1.0}}

* <span id="Sketcher_CompCreateBSpline">[[Image:Sketcher_CreateBSpline.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create B-spline:</span><!--Do not edit span id: the Sketcher_CompCreateBSpline pages redirect here-->

<div class="mw-translate-fuzzy">
*: [[File:Sketcher_CreateBSpline.svg|32px]] [[Sketcher_CreateBSpline/pt-br|Criar B-spline]]: Desenha uma curva B-spline por seus pontos de controle.
</div>


<div class="mw-translate-fuzzy">
==== Traditional Drafting ====
*: [[File:Sketcher_CreatePeriodicBSpline.svg|32px]] [[Sketcher_CreatePeriodicBSpline/pt-br|Criar B-spline periódica]]: Desenha uma curva B-spline periódica (fechada) por seus pontos de controle.
The traditional way of CAD drafting inherits from the old [http://en.wikipedia.org/wiki/Drawing_board drawing board]. [http://en.wikipedia.org/wiki/Multiview_orthographic_projection Orthogonal (2D) views] are drawn manually and intended for producing technical drawings (also known as blueprints). Objects are drawn precisely to the intended size or dimension. If you want to draw an horizontal line 100mm in length starting at (0,0), you activate the line tool, either click on the screen or input the (0,0) coordinates for the first point, then make a second click or input the second point coordinates at (100,0). Or you will draw your line without regard to its position, and move it afterwards. When you've finished drawing your geometries, you add dimensions to them.
</div>


:* [[File:Sketcher_CreateBSplineByInterpolation.svg|32px]] [[Sketcher_CreateBSplineByInterpolation|B-spline by knots]]: Creates a B-spline curve through knot points. {{Version|0.21}}
==== Constraint Sketching ====
The '''Sketcher''' moves away from this logic. Objects do not need to be drawn exactly as you intend to, because they will be defined later on by constraints. Objects can be drawn loosely, and as long as they are unconstrained, can be modified. They are in effect "floating" and can be moved, stretched, rotated, scaled, and so on. This gives great flexibility in the design process.


:* [[File:Sketcher_CreatePeriodicBSplineByInterpolation.svg|32px]] [[Sketcher_CreatePeriodicBSplineByInterpolation|Periodic B-spline by knots]]: Creates a periodic (closed) B-spline curve through knot points. {{Version|0.21}}
==== What are constraints? ====
Instead of dimensions, Constraints are used to limit the degrees of freedom of an object. For example, a line without constraints has 4 [[#Degrees Of Freedom|Degrees Of Freedom]] (abbreviated as " DOF "): it can be moved horizontally or vertically, it can be stretched, and it can be rotated.


<div class="mw-translate-fuzzy">
Applying a horizontal or vertical constraint, or an angle constraint (relative to another line or to one of the axes), will limit its capacity to rotate, thus leaving it with 3 degrees of freedom. Locking one of its points in relation to the origin will remove another 2 degrees of freedom. And applying a dimension constraint will remove the last degree of freedom. The line is then considered '''fully-constrained'''.
* [[File:Sketcher_ToggleConstruction.svg|32px]] [[Sketcher_ToggleConstruction/pt-br|Modo de construção]]: Alterna a geometria do esboço de/para o modo de construção. A geometria de construção é mostrada em azul e é descartada fora do modo de edição do esboço.
</div>


<span id="Sketcher_constraints"></span>
Multiple objects can be constrained between one another. Two lines can be joined through one of their points with the coincident point constraint. An angle can be set between them, or they can be set perpendicular. A line can be tangent to an arc or a circle, and so on. A complex Sketch with multiple objects will have a number of different solutions, and making it '''fully-constrained''' means that just one of these possible solutions has been reached based on the applied constraints.
===Restrições do Sketcher===


<div class="mw-translate-fuzzy">
There are two kinds of constraints: geometric and dimensional. They are detailed in the [[#The tools|'The tools']] section below.
As restrições são usadas para definir comprimentos, definir regras entre os elementos do esboço e para bloquear o esboço ao longo dos eixos vertical e horizontal. Algumas restrições requerem o uso de [[Sketcher_helper_constraint/pt-br|Restrições de ajuda]].
</div>


* <span id="Sketcher_CompDimensionTools">[[Image:Sketcher_Dimension.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Dimensional constraints:</span><!--Do not edit span id: the Sketcher_CompDimensionTools pages redirect here-->
==== What the Sketcher is not good for ====
The Sketcher is not intended for producing 2D blueprints. Once sketches are used to generate a solid feature, they are automatically hidden. Constraints are only visible in Sketch edit mode.


:* [[File:Sketcher_Dimension.svg|32px]] [[Sketcher_Dimension|Dimension]]: Is the context-sensitive constraint tool of the Sketcher Workbench. Based on the current selection, it offers appropriate dimensional constraints, but also geometric constraints. {{Version|1.0}}
If you only need to produce 2D views for print, and don't want to create 3D models, check out the [[Draft Module|Draft workbench]] (keep in mind though that the Draft workbench can also be useful to create 2D geometry not available in the Sketcher at this time, like B-Splines.)


<div class="mw-translate-fuzzy">
== Sketching Workflow ==
* [[File:Sketcher_ConstrainDistanceX.svg|32px]] [[Sketcher_ConstrainDistanceX/pt-br|Distancia Horizontal]]: Fixa a distância horizontal entre dois pontos quaisquer, ou pontos extremos de uma linha. Se apenas um item for selecionado, a distância é definida para a origem.
A Sketch is always 2-dimensional (2D). To create a solid, a 2D Sketch of a single enclosed area is created and then either Padded or Revolved to add the 3rd dimension, creating a 3D solid from the 2D Sketch.
</div>


<div class="mw-translate-fuzzy">
If the Sketch has segments that cross one another, places where a Point is not directly on a segment, or places where there are gaps between endpoints of adjacent segments, Pad or Revolve won't create a solid. The exception to this rule is that it doesn't apply to Construction (blue) Geometry.
* [[File:Sketcher_ConstrainDistanceY.svg|32px]] [[Sketcher_ConstrainDistanceY/pt-br|Distancia Vertical]]: Fixa a distância vertical entre dois pontos quaisquer, ou pontos extremos de uma linha. Se apenas um item for selecionado, a distância é definida para a origem.
</div>


<div class="mw-translate-fuzzy">
Inside the enclosed area we can have smaller non-overlapping areas. These will become voids when the 3D solid is created.
* [[File:Sketcher_ConstrainDistance.svg|32px]] [[Sketcher_ConstrainDistance/pt-br|Distancia]]: Define o comprimento de uma linha, a distância perpendicular entre um ponto e uma linha, a distância entre dois pontos, ou, {{Version|0.21}}, a distância entre as arestas de dois círculos.
</div>


<div class="mw-translate-fuzzy">
== The tools ==
* [[File:Sketcher_ConstrainRadiam.svg|32px]] [[Sketcher_ConstrainRadiam/pt-br|Radiano]]: Define o raio de um arco, o diâmetro de um círculo ou o peso de um pólo B-spline.{{Version|0.20}}
The Sketcher Workbench tools are all located in the Sketch menu that appears when you load the Sketcher Workbench.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_NewSketch.png‎‎|32px]] [[Sketcher_NewSketch|New sketch]]: Creates‎ a new sketch on a selected face or plane. If no face is selected while this tool is executed the user is prompted to select a plane from a pop-up window.
* [[File:Sketcher_ConstrainRadius.svg|32px]] [[Sketcher_ConstrainRadius/pt-br|Raio ou peso]]: Define o raio de um arco ou círculo ou o peso de um pólo B-spline.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_EditSketch.png|32px]] [[Sketcher_EditSketch|Edit sketch]]: Edit the selected Sketch.
* [[File:Sketcher_ConstrainDiameter.svg|32px]] [[Sketcher_ConstrainDiameter/pt-br|Diâmetro]]: Define o diâmetro de um arco ou círculo.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_LeaveSketch.png|32px]] [[Sketcher_LeaveSketch|Leave sketch]]: Leave the Sketch editing mode.
* [[File:Sketcher_ConstrainAngle.svg|32px]] [[Sketcher_ConstrainAngle/pt-br|Angulo]]: Define o ângulo interno entre duas linhas selecionadas.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ViewSketch.png‎|32px]] [[Sketcher_ViewSketch|View sketch]]: Sets the model view perpendicular to the sketch plane.
* [[File:Sketcher_ConstrainLock.svg|32px]] [[Sketcher_ConstrainLock/pt-br|Restringir]]: Restringe o item selecionado definindo distâncias verticais e horizontais em relação à origem, travando assim a localização desse item. Essas distâncias podem ser editadas posteriormente.
</div>


* [[File:Sketcher_ConstrainCoincidentUnified.svg|32px]] [[Sketcher_ConstrainCoincidentUnified|Coincident (unified)]]: Creates a coincident constraint between points, fixes points on edges or axes, or creates a concentric constraint. It combines the [[Sketcher_ConstrainCoincident|Coincident]] and [[Sketcher_ConstrainPointOnObject|Point on object]] tools. {{Version|1.0}}
* [[Image:Sketcher ViewSection.png|32px]] [[Sketcher_ViewSection|View section]]: <span style="font-size:x-small;color:green;">v0.18 and above</span> Creates a section plane that temporarily hides any matter in front of the sketch plane.


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_MapSketch.png‎|32px]] [[Sketcher_MapSketch|Map sketch to face]]: Maps a sketch to the previously selected face of a solid.
* [[File:Sketcher_ConstrainCoincident.svg|32px]] [[Sketcher_ConstrainCoincident/pt-br|Coincidente]]: Afixa um ponto em (coincidente com) um ou mais outros pontos. Atua como uma restrição concêntrica se dois ou mais círculos, arcos, elipses ou arcos de elipses forem selecionados.
</div>


<div class="mw-translate-fuzzy">
* [[Sketcher_Reorient|Reorient sketch ]]: Allows you to change the position of a sketch
* [[File:Sketcher_ConstrainPointOnObject.svg|32px]] [[Sketcher_ConstrainPointOnObject/pt-br|Ponto sobre o objeto]]: Afixa um ponto em outro objeto, como uma linha, arco ou eixo.
</div>


* <span id="Sketcher_CompHorVer">[[Image:Sketcher_ConstrainHorVer.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]]Horizontal/vertical constraints:</span><!--Do not edit span id: the Sketcher_CompHorVer pages redirect here-->
* [[Sketcher_Validate|Validate sketch]]: It allows you to check if there are in the tolerance of different points and to match them.


:* [[File:Sketcher_ConstrainHorVer.svg|32px]] [[Sketcher_ConstrainHorVer|Horizontal/vertical]]: Constrains lines or pairs of points to be horizontal or vertical, whichever is closest to the current alignment. It combines the [[Sketcher_ConstrainHorizontal|Horizontal]] and [[Sketcher_ConstrainVertical|Vertical]] tools. {{Version|1.0}}
* [[Image:Sketcher MergeSketch.png‎|32px]] [[Sketcher MergeSketch|Merge sketches]]: Merge two or more sketches. [v 0.15]


<div class="mw-translate-fuzzy">
* [[Image:Sketcher MirrorSketch.png‎|32px]] [[Sketcher MirrorSketch|Mirror sketch]]: Mirror a sketch along the x-axis, the y-axis or the origin [v 0.16]
* [[File:Sketcher_ConstrainHorizontal.svg|32px]] [[Sketcher_ConstrainHorizontal/pt-br|Horizontal]]: Restringe as linhas selecionadas ou elementos de polilinha a uma orientação horizontal verdadeira. Mais de um objeto pode ser selecionado antes de aplicar esta restrição.
</div>


<div class="mw-translate-fuzzy">
===Sketcher geometries===
* [[File:Sketcher_ConstrainVertical.svg|32px]] [[Sketcher_ConstrainVertical/pt-br|Vertical]]: Restringe as linhas selecionadas ou elementos de polilinha a uma orientação vertical verdadeira. Mais de um objeto pode ser selecionado antes de aplicar esta restrição.
</div>


<div class="mw-translate-fuzzy">
These are tools for creating objects.
* [[File:Sketcher_ConstrainParallel.svg|32px]] [[Sketcher_ConstrainParallel/pt-br|Paralela]]: Restringe duas ou mais linhas, fazendo-as paralelas entre si.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePoint.png|32px]] [[Sketcher_Point|Point]]: Draws a point.
* [[File:Sketcher_ConstrainPerpendicular.svg|32px]] [[Sketcher_ConstrainPerpendicular/pt-br|Perpendicular]]: Restringe duas linhas, fazendo-as perpendiculares uma à outra, ou restringe uma linha perpendicular à extremidade de um arco.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Line.png|32px]] [[Sketcher_Line|Line by 2 point]]: Draws a line segment from 2 points.
* [[File:Sketcher_ConstrainTangent.svg|32px]] [[Sketcher_ConstrainTangent/pt-br|Tangente]]: Cria uma restrição tangente entre duas entidades selecionadas ou uma restrição colinear entre dois segmentos de linha. Um segmento de linha não precisa estar diretamente sobre um arco ou círculo para ser restrito tangente a esse arco ou círculo.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Arc.png|32px]] [[Sketcher_Arc|Arc]]: Draws an arc segment from center, radius, start angle and end angle.
* [[File:Sketcher_ConstrainEqual.svg|32px]] [[Sketcher_ConstrainEqual/pt-br|Iguadade]]: Restringe duas entidades selecionadas, fazendo-as iguais uma à outra. Se usado em círculos ou arcos, seus raios resultarão iguais.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher CreateArc3Point.png|32px]] [[Sketcher_Arc3Point|Arc by 3 Point]]: Draws an arc segment from two endpoints and another point on the circumference.
* [[File:Sketcher_ConstrainSymmetric.svg|32px]] [[Sketcher_ConstrainSymmetric/pt-br|Simetria]]: Restringe dois pontos simetricamente em relação a uma linha, ou restringe os dois primeiros pontos selecionados simetricamente em relação a um terceiro ponto selecionado.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Circle.png|32px]] [[Sketcher_Circle|Circle]]: Draws a circle from center and radius.
* [[Image:Sketcher_ConstrainBlock.svg|32px]] [[Sketcher_ConstrainBlock/pt-br|Bloquear]]: Impede que uma aresta se mova, ou seja, impede que seus vértices mudem suas posições atuais. Deve ser particularmente útil para corrigir a posição de B-Splines. Veja o tópico [https://forum.freecadweb.org/viewtopic.php?f=9&t=26572 Block Constraint] no fórum.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher CreateCircle3Point.png|32px]] [[Sketcher_Circle3Point|Circle by 3 Point]] : Draws a circle from three points on the circumference.
* [[File:Sketcher_ConstrainSnellsLaw.svg|32px]] [[Sketcher_ConstrainSnellsLaw/pt-br|A Lei de Snell]]: Restringe duas linhas à obediência a uma lei de refração, para simular a luz que passa por uma interface.
</div>


* <span id="Sketcher_CompToggleConstraints">[[Image:Sketcher_ToggleDrivingConstraint.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Toggle constraints:</span><!--Do not edit span id: the Sketcher_CompToggleConstraints pages redirect here-->
* [[Image:Sketcher_Conics.png|32px]] [[Sketcher_CompCreateConic|Create a conic]]:
** [[Image:Sketcher_CreateEllipse.png|32px]] [[Sketcher CreateEllipseByCenter|Ellipse by center]] : Draws an ellipse by center point, major radius point and minor radius point. (v0.15)
** [[Image:Sketcher_CreateEllipse_3points.png|32px]] [[Sketcher CreateEllipseBy3Points|Ellipse by 3 points]] : Draws an ellipse by major diameter (2 points) and minor radius point. (v0.15)
** [[Image:Sketcher_Elliptical_Arc.png|32px]] [[Sketcher_CreateArcOfEllipse|Arc of ellipse]] : Draws an arc of ellipse by center point, major radius point, starting point and ending point. (v0.15)
**[[Image:Sketcher_Hyperbolic_Arc.png|32px]] [[Sketcher_CreateArcOfHyperbola|Arc of hyperbola]]: Draws an arc of hyperbola. (v0.17)
**[[Image:Sketcher_Parabolic_Arc.png|32px]] [[Sketcher_CreateArcOfParabola|Arc of parabola]]: Draws an arc of parabola. (v0.17)


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePolyline.png|32px]] [[Sketcher_Polyline|Polyline (multiple-point line)]]: Draws a line made of multiple line segments. Pressing the M key while drawing a Polyline toggles between the different polyline modes.
* [[File:Sketcher_ToggleDrivingConstraint.svg|32px]] [[Sketcher_ToggleDrivingConstraint/pt-br|Alternar restrição de direção/referência]]: Alterna a barra de ferramentas ou as restrições selecionadas de/para o modo de referência.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateRectangle.png|32px]] [[Sketcher_Rectangle|Rectangle]]: Draws a rectangle from 2 opposite points.
* [[File:Sketcher_ToggleActiveConstraint.svg|32px]] [[Sketcher_ToggleActiveConstraint/pt-br|Ativar/Desativar restrição]]: Habilita ou desabilita uma restrição já colocada. {{Version|0.19}}
</div>


<span id="Sketcher_tools"></span>
* [[Image:Sketcher_CreateTriangle.png|32px]] [[Sketcher_Triangle|Triangle]]: Draws a regular triangle inscribed in a construction geometry circle. (v0.15)
===Ferramentas do Sketcher===


* <span id="Sketcher_CompCreateFillets">[[Image:Sketcher_CreateFillet.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Create fillet/chamfer:</span><!--Do not edit span id: the Sketcher_CompCreateFillets pages redirect here-->
* [[Image:Sketcher_CreateSquare.png|32px]] [[Sketcher_Square|Square]]: Draws a regular square inscribed in a construction geometry circle. (v0.15)


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreatePentagon.png|32px]] [[Sketcher_Pentagon|Pentagon]]: Draws a regular pentagon inscribed in a construction geometry circle. (v0.15)
* [[Image:Sketcher_CreateFillet.svg|32px]] [[Sketcher_CreateFillet/pt-br|Filete]]: Faz um filete entre duas linhas unidas em um ponto. Selecione as duas linhas ou clique no ponto de canto e ative a ferramenta.
</div>


:* [[Image:Sketcher_CreateChamfer.svg|32px]] [[Sketcher_CreateChamfer|Chamfer]]: creates a chamfer between two non-parallel edges. This is the same tool as [[Sketcher_CreateFillet|Fillet]] but with a different initial mode. {{Version|1.0}}
* [[Image:Sketcher_CreateHexagon.png|32px]] [[Sketcher_Hexagon|Hexagon]]: Draws a regular hexagon inscribed in a construction geometry circle. (v0.15)


* <span id="Sketcher_CompCurveEdition">[[Image:Sketcher_Trimming.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Edit edge:</span><!--Do not edit span id: the Sketcher_CompCurveEdition pages redirect here-->
* [[Image:Sketcher_CreateHeptagon.png|32px]] [[Sketcher_Heptagon|Heptagon]]: Draws a regular heptagon inscribed in a construction geometry circle. (v0.15)


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateOctagon.png|32px]] [[Sketcher_Octagon|Octagon]]: Draws a regular octagon inscribed in a construction geometry circle. (v0.15)
* [[Image:Sketcher_Trimming.svg|32px]] [[Sketcher_Trimming/pt-br|Ajustar]]: Corta uma linha, círculo ou arco em relação ao ponto clicado.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateSlot.png|32px]] [[Sketcher_Slot|Slot]]: Draws an oval by selecting the center of one semicircle and an endpoint of the other semicircle.
* [[Image:Sketcher_Split.svg|32px]] [[Sketcher_Split/pt-br|Dividir]]: Divide uma linha ou um arco em dois, converte um círculo em um arco, mantendo a maior parte das restrições. {{Version|0.20}}
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_CreateFillet.png|32px]] [[Sketcher_Fillet|Fillet]]: Makes a fillet between two lines joined at one point. Select both lines or click on the corner point, then activate the tool.
* [[File:Sketcher_Extend.svg|32px]] [[Sketcher_Extend/pt-br|Ampliar]]: Estende uma linha ou um arco a uma linha limite, arco, elipse, arco de elipse ou um ponto no espaço.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_Trimming.png|32px]] [[Sketcher_Trimming|Trimming]]: Trims a line, circle or arc with respect to the clicked point.
* [[Image:Sketcher_External.svg|32px]] [[Sketcher_External/pt-br|Geometria externa]]: Cria uma aresta vinculada à geometria externa.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_External.png|32px]] [[Sketcher_External|External Geometry]]: Creates an edge linked to external geometry.
* [[File:Sketcher_CarbonCopy.svg|32px]] [[Sketcher_CarbonCopy/pt-br|Cópia em carbono]]: Copia a geometria de outro esboço.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]: Toggles sketch geometry from/to construction mode. Construction geometry is shown in blue and is discarded outside of Sketch editing mode.
* [[File:Sketcher_SelectOrigin.svg|32px]] [[Sketcher_SelectOrigin/pt-br|Selecionar Origem]]: Seleciona a origem de um esboço.
</div>


<div class="mw-translate-fuzzy">
===Sketcher constraints===
* [[File:Sketcher_SelectHorizontalAxis.svg|32px]] [[Sketcher_SelectHorizontalAxis/pt-br|Selecionar Eixo Horizontal]]: Seleciona o eixo horizontal de um esboço.
</div>


<div class="mw-translate-fuzzy">
Constraints are used to define lengths, set rules between sketch elements, and to lock the sketch along the vertical and horizontal axes. Some constraints require use of [[Sketcher_helper_constraint|Helper constraints]].
* [[File:Sketcher_SelectVerticalAxis.svg|32px]] [[Sketcher_SelectVerticalAxis/pt-br|Selecionar Eixo Vertical]]: Seleciona o eixo vertical de um esboço.
</div>


* [[File:Sketcher_Translate.svg|32px]] [[Sketcher_Translate|Array transform]]: Moves or optionally creates copies of selected elements. {{Version|1.0}}
====Geometric constraints====
These constraints are not associated with numeric data.


* [[File:Sketcher_Rotate.svg|32px]] [[Sketcher_Rotate|Polar transform]]: Rotates or optionally creates rotated copies of selected elements. {{Version|1.0}}
* [[Image:Constraint_PointOnPoint.png|32px]] [[Sketcher ConstrainCoincident|Coincident]]: Affixes a point onto (coincident with) one or more other points.


* [[File:Sketcher_Scale.svg|32px]] [[Sketcher_Scale|Scale transform]]: Scales or optionally creates scaled copies of selected elements. {{Version|1.0}}
* [[Image:Constraint_PointOnObject.png|32px]] [[Sketcher ConstrainPointOnObject|Point On Object]]: Affixes a point onto another object such as a line, arc, or axis.


* [[File:Sketcher_Offset.svg|32px]] [[Sketcher_Offset|Offset geometry]]: Creates equidistant edges around selected edges. {{Version|1.0}}
* [[Image:Constraint_Vertical.png|32px]] [[Sketcher_ConstrainVertical|Vertical]]: Constrains the selected lines or polyline elements to a true vertical orientation. More than one object can be selected before applying this constraint.


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Horizontal.png|32px]] [[Sketcher_ConstrainHorizontal|Horizontal]]: Constrains the selected lines or polyline elements to a true horizontal orientation. More than one object can be selected before applying this constraint.
* [[File:Sketcher_Symmetry.svg|32px]] [[Sketcher_Symmetry/pt-br|Simetria]]: Copia um elemento do sketcher simétrico a uma linha escolhida.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Parallel.png|32px]] [[Sketcher_ConstrainParallel|Parallel]]: Constrains two or more lines parallel to one another.
* [[File:Sketcher_RemoveAxesAlignment.svg|32px]] [[Sketcher_RemoveAxesAlignment/pt-br|Retirar o alinhamento dos eixos]]: Remover o alinhamento dos eixos enquanto tenta preservar a relação de restrição da seleção {{Version|0.20}}
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Perpendicular.png|32px]] [[Sketcher_ConstrainPerpendicular|Perpendicular]]: Constrains two lines perpendicular to one another, or constrains a line perpendicular to an arc endpoint.
* [[File:Sketcher_DeleteAllGeometry.svg|32px]] [[Sketcher_DeleteAllGeometry/pt-br|Eliminar toda a geometria]]: Deleta todas as geometrias do esboço.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Tangent.png|32px]] [[Sketcher ConstrainTangent|Tangent]]: Creates a tangent constraint between two selected entities, or a co-linear constraint between two line segments. A line segment does not have to lie directly on an arc or circle to be constrained tangent to that arc or circle.
* [[File:Sketcher_DeleteAllConstraints.svg|32px]] [[Sketcher_DeleteAllConstraints/pt-br|Eliminar todas as restrições]]: Deleta todas as restrições do esboço.
</div>


* <span id="Sketcher_CopyClipboard">[[File:Edit-copy.svg|32px]] Copy in Sketcher: See [[#Copy,_cut_and_paste|Copy, cut and paste]].</span><!--Do not edit span id: the Sketcher_CopyClipboard pages redirect here-->
* [[Image:Constraint_EqualLength.png|32px]] [[Sketcher_ConstrainEqual|Equal Length]]: Constrains two selected entities equal to one another. If used on circles or arcs their radii will be set equal.


* <span id="Sketcher_Cut">[[File:Edit-cut.svg|32px]] Cut in Sketcher: See [[#Copy,_cut_and_paste|Copy, cut and paste]].</span><!--Do not edit span id: the Sketcher_Cut pages redirect here-->
* [[Image:Constraint_Symmetric.png|32px]] [[Sketcher_ConstrainSymmetric|Symmetric]]: Constrains two points symmetrically about a line, or constrains the first two selected points symmetrically about a third selected point.


* <span id="Sketcher_Paste">[[File:Edit-paste.svg|32px]] Paste in Sketcher: See [[#Copy,_cut_and_paste|Copy, cut and paste]].</span><!--Do not edit span id: the Sketcher_Paste pages redirect here-->
* [[Image:Sketcher_ConstrainBlock.png|32px]] [[Sketcher_ConstrainBlock|Constrain Block]]: <span style="font-size:x-small;color:green;">v0.17 and above</span> Basically allows to block a geometric element in place with a single constraint. It should be particularly useful to work with B-Splines. See the [https://forum.freecadweb.org/viewtopic.php?f=9&t=26572 Block Constraint forum topic].


<span id="Sketcher_B-spline_tools"></span>
====Dimensional constraints ====
===Ferramentas de B-spline do Sketcher===
These are constraints associated with numeric data, for which you can use the [[Expressions|expressions]]. The data may be taken from a [[Spreadsheet_Workbench|spreadsheet]].


<div class="mw-translate-fuzzy">
* [[Image:Sketcher_ConstrainLock.png‎|32px]] [[Sketcher ConstrainLock|Lock]]: Constrains the selected item by setting vertical and horizontal distances relative to the origin, thereby locking the location of that item. These constraint distances can be edited later.
* [[File:Sketcher_BSplineApproximate.svg|32px]] [[Sketcher_BSplineApproximate/pt-br|Converte geometria para B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_HorizontalDistance.png‎|32px]] [[Sketcher ConstrainDistanceX|Horizontal Distance]]: Fixes the horizontal distance between two points or line endpoints. If only one item is selected, the distance is set to the origin.
* [[File:Sketcher_BSplineIncreaseDegree.svg|32px]] [[Sketcher_BSplineIncreaseDegree/pt-br|Aumenta o grau da B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_VerticalDistance.png|32px]] [[Sketcher_ConstrainDistanceY|Vertical Distance]]: Fixes the vertical distance between 2 points or line endpoints. If only one item is selected, the distance is set to the origin.
* [[File:Sketcher_BSplineDecreaseDegree.svg|32px]] [[Sketcher_BSplineDecreaseDegree/pt-br|Diminui o grau da B-spline]], {{Version|0.19}}
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Length.png|32px]] [[Sketcher_ConstrainDistance|Distance]]: Defines the distance of a selected line by constraining its length, or defines the distance between two points by constraining the distance between them.
* [[File:Sketcher_BSplineIncreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineIncreaseKnotMultiplicity/pt-br|Aumenta a multiplicidade do nó]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Constraint_Radius.png|32px]] [[Sketcher_ConstrainRadius|Radius]]: Defines the radius of a selected arc or circle by constraining the radius.
* [[File:Sketcher_BSplineDecreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineDecreaseKnotMultiplicity/pt-br|Diminui a multiplicidade do nó]]
* [[Image:Constraint_InternalAngle.png|32px]] [[Sketcher_ConstrainAngle|Internal Angle]]: Defines the internal angle between two selected lines.
</div>


* [[Image:Constraint_SnellsLaw.png|32px]] [[Sketcher ConstrainSnellsLaw|Snell's Law]]: Constrains two lines to obey a refraction law to simulate the light going through an interface. (v 0.15)
* [[File:Sketcher_BSplineInsertKnot.svg|32px]] [[Sketcher_BSplineInsertKnot|Insert knot]]: Inserts a knot into a B-spline or increases the multiplicity of an existing knot.


* [[File:Sketcher_JoinCurves.svg|32px]] [[Sketcher_JoinCurves|Join curves]]: Creates a B-spline by joining two existing B-splines or other edges. {{Version|0.21}}
* [[Image:Constraint_InternalAlignment.png |32px]] [[Sketcher_ConstrainInternalAlignment|Internal Alignment]]: Aligns selected elements to selected shape (e.g. a line to become major axis of an ellipse).


===Sketcher visual===
* [[Image:Sketcher_ToggleConstraint.png |32px]] [[Sketcher_ToggleDrivingConstraint|Toggle reference/driving constraint]]: Toggles the toolbar or the selected constraints to/from reference mode. v0.16


<div class="mw-translate-fuzzy">
===Sketcher tools===
* [[File:Sketcher_SelectElementsWithDoFs.svg|32px]] [[Sketcher_SelectElementsWithDoFs/pt-br| Exibindo os graus de liberdade]]: Destaca em verde a geometria com graus de liberdade (GDLs), isto é, não toalmente restrita.
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher SelectElementsWithDoFs.svg|32px]] [[Sketcher_SelectElementsWithDoFs|Select solver DOFs]]: <span style="font-size:x-small;color:green;">v0.18 and above</span> Highlights in green the geometry with degrees of freedom (DOFs), i.e. not fully constrained.
* [[File:Sketcher_SelectConstraints.svg|32px]] [[Sketcher_SelectConstraints/pt-br|Selecione Restrições]]: Seleciona as restrições de um elemento do Sketcher.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher CloseShape.png‎|32px]] [[Sketcher CloseShape|Close Shape]]: Creates a closed shape by applying coincident constraints to endpoints [v 0.15]
* [[File:Sketcher_SelectElementsAssociatedWithConstraints.svg|32px]] [[Sketcher_SelectElementsAssociatedWithConstraints/pt-br|Selecione Elementos Associados a Restrições]]: Seleciona elementos do Sketcher associados com restrições.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher ConnectLines.png‎|32px]] [[Sketcher ConnectLines|Connect Edges]]: Connect sketcher elements by applying coincident constraints to endpoints [v 0.15]
* [[File:Sketcher_SelectRedundantConstraints.svg|32px]] [[Sketcher_SelectRedundantConstraints/pt-br|Selecione Restrições Redundantes]]: Seleciona restrições redundantes de um esboço.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectConstraints.png‎|32px]] [[Sketcher SelectConstraints|Select Constraints]]: Selects the constraints of a sketcher element [v 0.15]
* [[File:Sketcher_SelectConflictingConstraints.svg|32px]] [[Sketcher_SelectConflictingConstraints/pt-br|Selecione Restrições Conflitantes]]: Seleciona restrições conflitantes de um esboço.
</div>


* [[File:Sketcher_ArcOverlay.svg|32px]] [[Sketcher_ArcOverlay|Show/hide circular helper for arcs]]: Shows or hides the circular helpers (underlying virtual circles) for arcs in all sketches. {{Version|1.0}}
* [[Image:Sketcher SelectOrigin.png‎|32px]] [[Sketcher SelectOrigin|Select Origin]]: Selects the origin of a sketch [v 0.15]


* <span id="Sketcher_CompBSplineShowHideGeometryInformation">[[Image:Sketcher_BSplinePolygon.svg|x32px]][[Image:Toolbar_flyout_arrow_blue_background.svg|x32px]] Show/hide B-spline information layer:</span><!--Do not edit span id: the Sketcher_CompBSplineShowHideGeometryInformation pages redirect here-->
* [[Image:Sketcher SelectVerticalAxis.png‎|32px]] [[Sketcher SelectVerticalAxis|Select Vertical Axis]]: Selects the vertical axis of a sketch [v 0.15]


<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectHorizontalAxis.png‎|32px]] [[Sketcher SelectHorizontalAxis|Select Horizontal Axis]]: Selects the horizontal axis of a sketch [v 0.15]
* [[File:Sketcher_BSplineDegree.svg|32px]] [[Sketcher_BSplineDegree/pt-br|Mostra/esconde o grau da B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectRedundantConstraints.png‎|32px]] [[Sketcher SelectRedundantConstraints|Select Redundant Constraints]]: Selects redundant constraints of a sketch [v 0.15]
* [[File:Sketcher_BSplinePolygon.svg|32px]] [[Sketcher_BSplinePolygon/pt-br|Mostra/esconde o polígono de controle da B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectConflictingConstraints.png‎|32px]] [[Sketcher SelectConflictingConstraints|Select Conflicting Constraints]]: Selects conflicting constraints of a sketch [v 0.15]
* [[File:Sketcher_BSplineComb.svg|32px]] [[Sketcher_BSplineComb/pt-br|Mostra/esconde o pente de curvatura da B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher SelectElementsAssociatedWithConstraints.png‎|32px]] [[Sketcher SelectElementsAssociatedWithConstraints|Select Elements Associated with constraints]]: Select sketcher elements associated with constraints [v 0.15]
* [[File:Sketcher_BSplineKnotMultiplicity.svg|32px]] [[Sketcher_BSplineKnotMultiplicity/pt-br|Mostra/esconde o nó de multiplicidade da B-spline]]
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_Element_Ellipse_All.png‎|32px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/Hide internal geometry]]: Recreates missing/deletes unneeded internal geometry of a selected ellipse, arc of ellipse/hyperbola/parabola or B-spline.
* [[File:Sketcher_BSplinePoleWeight.svg|32px]] [[Sketcher_BSplinePoleWeight/pt-br|Mostra/esconde o peso dos pontos de controle da B-spline]], {{Version|0.19}}
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher Symmetry.png‎|32px]] [[Sketcher Symmetry|Symmetry]]: Copies a sketcher element symmetrical to a chosen line [v 0.16]
* [[File:Sketcher_RestoreInternalAlignmentGeometry.svg|32px]] [[Sketcher_RestoreInternalAlignmentGeometry/pt-br|Mostrar/ocultar geometria interna]]: Recria o que falta ou deleta geometria interna desnecessária em uma elipse, arco de elipse, hipérbole, parábola ou B-spline.
</div>


<div class="mw-translate-fuzzy">
* [[Image:Sketcher Clone.png‎|32px]] [[Sketcher Clone|Clone]]: Clones a sketcher element [v 0.16]
* [[File:Sketcher_SwitchVirtualSpace.svg|32px]] [[Sketcher_SwitchVirtualSpace/pt-br|Trocar espaço virtual]]: Permite esconder todas as restrições de um esboço e fazê-las visíveis novamente.
</div>


<span id="Obsolete_tools"></span>
* [[Image:Sketcher Copy.png‎|32px]] [[Sketcher Copy|Copy]]: Copies a sketcher element [v 0.16]
===Ferramentas obsoletas===


<div class="mw-translate-fuzzy">
* [[File:Sketcher_Move.svg|32px]] [[Sketcher_Move|Move]]: <span style="font-size:x-small;color:green;">v0.18 and above</span> Moves the selected geometry taking as reference the last selected point.
* [[File:Sketcher_Clone.svg|32px]] [[Sketcher_Clone/pt-br|Clonar]]: Clona um elemento do Sketcher.
</div>


* [[File:Sketcher_CloseShape.svg|32px]] [[Sketcher_CloseShape/pt-br|Forma fechada]]: Cria uma forma fechada aplicando restrições coincidentes a exremidades. Não disponível em {{VersionPlus|0.21}}.
* [[Image:Sketcher RectangularArray.png‎|32px]] [[Sketcher RectangularArray|Rectangular Array]]: Creates an array of selected sketcher elements [v 0.16]


* [[File:Sketcher_CreatePointFillet.svg|32px]] [[Sketcher_CreatePointFillet|Corner-preserving fillet]]: Creates a fillet between two non-parallel lines while preserving their corner point. Not available in {{VersionPlus|1.0}}.
* [[File:Sketcher Element SelectionTypeInvalid.svg|32px]] [[Sketcher_DeleteAllGeometry|Delete All Geometry]]: <span style="font-size:x-small;color:green;">v0.18 and above</span> Deletes all geometry from the sketch.


<div class="mw-translate-fuzzy">
* [[File:Sketcher Element SelectionTypeInvalid.svg|32px]] [[Sketcher_DeleteAllConstraints|Delete All Constraints]]: <span style="font-size:x-small;color:green;">v0.18 and above</span> Deletes all constraints from the sketch.
* [[File:Sketcher_ConnectLines.svg|32px]] [[Sketcher_ConnectLines/pt-br|Conectar bordas]]: Conecta elementos do Sketcher aplicando restrições de coincidência nas extremidades. Não disponível em {{VersionPlus|0.21}}.
</div>


<div class="mw-translate-fuzzy">
===Sketcher B-spline tools===
* [[File:Sketcher_Copy.svg|32px]] [[Sketcher_Copy/pt-br|Copiar]]: Copia um elemento do Sketcher.
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_BSplineDegree.svg|32px]] [[Sketcher_BSplineDegree|Show/Hide B-spline degree]]
* [[File:Sketcher_Move.svg|32px]] [[Sketcher_Move/pt-br|Mover]]: Move a geometria selecionada tomando como referência o último ponto selecionado.
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_BSplinePolygon.svg|32px]] [[Sketcher_BSplinePolygon|Show/Hide B-spline control polygon]]
* [[File:Sketcher_RectangularArray.svg|32px]] [[Sketcher_RectangularArray/pt-br|Matriz Retangular]]: Cria uma matriz de elementos do Sketcher selecionados.
</div>


<span id="Preferences"></span>
* [[File:Sketcher_BSplineComb.svg|32px]] [[Sketcher_BSplineComb|Show/Hide B-spline curvature comb]]
== Preferências ==


<div class="mw-translate-fuzzy">
* [[File:Sketcher_BSplineKnotMultiplicity.svg|32px]] [[Sketcher_BSplineKnotMultiplicity|Show/Hide B-spline knot multiplicity]]
* [[Image:Workbench_Sketcher.svg|32px]] [[Sketcher_Preferences/pt-br|Preferências]]: Preferências para a bancada de trabalho '''Sketcher'''.
</div>


<span id="Best_practices"></span>
* [[File:Sketcher_BSplineApproximate.svg|32px]] [[Sketcher_ConvertToNURB|Convert Geometry to B-spline]]
<div class="mw-translate-fuzzy">
== Boas Práticas ==
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_BSplineIncreaseDegree.svg|32px]] [[Sketcher_BSplineIncreaseDegree|Increase degree]]
Cada usuário CAD desenvolve sua própria maneira de trabalhar ao longo do tempo, mas existem alguns princípios gerais úteis a seguir.
</div>


<div class="mw-translate-fuzzy">
* [[File:Sketcher_BSplineIncreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineIncreaseKnotMultiplicity|Increase knot multiplicity]]
* Uma série de esboços simples é mais fácil de gerenciar do que um único e complexo. Por exemplo, um primeiro esboço pode ser criado para o recurso 3D base (um “pad” ou um “revolve”), enquanto um segundo pode conter furos ou recortes (“pockets”). Alguns detalhes podem ser omitidos, para serem adicionados posteriormente como elementos 3D. Você pode escolher evitar filetes em seu esboço se houver muitos e adicioná-los como um elemento 3D.
* Sempre crie um perfil fechado, ou seu esboço não produzirá um sólido, mas sim um conjunto de faces abertas. Se você não quiser que alguns dos objetos sejam incluídos na criação do sólido, transforme-os em elementos de construção com a ferramenta Construction Mode.
* Use o recurso de restrições automáticas para limitar o número de restrições que você terá que adicionar manualmente.
* Como regra geral, aplique primeiro as restrições geométricas, depois as restrições dimensionais e bloqueie o esboço por último. Mas lembre-se: as regras são feitas para serem quebradas. Se você estiver tendo problemas para manipular seu esboço, pode ser útil restringir alguns objetos antes de completar seu perfil.
* Se possível, centralize seu esboço na origem (0,0) com a restrição de bloqueio ("Lock"). Se o seu esboço não for simétrico, localize um de seus pontos na origem ou escolha bons números redondos para as distâncias de bloqueio – Uma restrição de bloqueio de (25,75) da origem é mais facilmente lembrada do que (23,47 , 73,02). Na v0.12, as restrições externas (restringindo o esboço à geometria 3D existente, como arestas ou outros esboços) não estão implementadas. Isso significa que, para localizar a geometria de esboços subsequentes em seu primeiro esboço, você precisará definir manualmente as distâncias relativas ao primeiro esboço.
* Se você tiver a possibilidade de escolher entre a restrição Length e as restrições de distância Horizontal Distance ou Vertical Distance, prefira as últimas. Elas consomem menos recursos computacionais.
* Em geral, as melhores restrições a serem usadas são: Restrições horizontais e verticais; restrições de comprimento horizontal e vertical; tangência ponto a ponto. Se possível, limite o uso destes: a restrição geral de comprimento; tangência borda a borda; restrição de fixar o ponto em uma linha; restrição de simetria.
* Se estiver em dúvida sobre a validade de um esboço depois de concluído (os elementos ficam verdes), feche a caixa de diálogo do Sketcher, mude para a [[Image:Workbench_Part.svg|24px]] [[Part_Workbench/pt-br|Bancada de trabalho Part]] e execute {{Button|[[File:Part_CheckGeometry.svg|16px]] [[Part_CheckGeometry/pt-br|Verificar geometria]]}}.
</div>


<span id="Tutorials"></span>
* [[File:Sketcher_BSplineDecreaseKnotMultiplicity.svg|32px]] [[Sketcher_BSplineDecreaseKnotMultiplicity|Decrease knot multiplicity]]
== Tutoriais ==


<div class="mw-translate-fuzzy">
===Sketcher virtual space===
* [https://forum.freecadweb.org/viewtopic.php?f=36&t=30104 Sketcher tutorial] por chrisb. Este é um documento PDF de 70 páginas que serve como um manual detalhado para o desenhista. Ele explica os fundamentos do uso do Sketcher e dá muitos detalhes sobre a criação de formas geométricas e cada uma das restrições.
* [[Basic Sketcher Tutorial/pt-br|Tutorial Básico de Sketcher]] para iniciantes.
* [[Sketcher Micro Tutorial - Constraint Practices/pt-br|Sketcher Micro Tutorial - Práticas de Restrição]].
* [[Sketcher requirement for a sketch/pt-br|Requisitos de esboço para um esboço]] Requisito Mínimo para um Esboço e Determinação Completa de um Esboço.
</div>


== Scripting ==
* [[Image:Sketcher SwitchVirtualSpace.png‎|32px]] [[Sketcher_SwitchVirtualSpace|Switch Virtual Space]]: <span style="font-size:x-small;color:green;">v0.17</span> Allows you to "hide" constraints and make them visible again. See https://forum.freecadweb.org/viewtopic.php?f=9&t=26614


A página [[Sketcher_scripting/pt-br|Sketcher scripting]] contém exemplos de como criar restrições a partir de scripts Python.
===Preferences===


<span id="Examples"></span>
* [[Image:Std_DlgParameter.png|32px]] [[Sketcher_Preferences|Preferences...]]: Preferences disposable in Sketcher Tools.
== Exemplos ==


For some ideas of what can be achieved with Sketcher tools, have a look at: [[Sketcher_Examples|Sketcher examples]].
== Best Practices ==
Every CAD user develops his own way of working over time, but there are some useful general principles to follow.


[[Image:Sketcher_ExampleHinge-01.gif|80px|link=]]
* A series of simple sketches is easier to manage than a single complex one. For example, a first sketch can be created for the base 3D feature (either a pad or a revolve), while a second one can contain holes or cutouts (pockets). Some details can be left out, to be realized later on as 3D features. You can choose to avoid fillets in your sketch if there are too many, and add them as a 3D feature.
[[Image:Sketcher ExampleHinge-15.png|90px|link=]]
* Always create a closed profile, or your sketch won't produce a solid, but rather a set of open faces. If you don't want some of the objects to be included in the solid creation, turn them to construction elements with the Construction Mode tool.
* Use the auto constraints feature to limit the number of constraints you'll have to add manually.
* As a general rule, apply geometric constraints first, then dimensional constraints, and lock your sketch last. But remember: rules are made to be broken. If you're having trouble manipulating your sketch, it may be useful to constrain a few objects first before completing your profile.
* If possible, center your sketch to the origin (0,0) with the lock constraint. If your sketch is not symmetric, locate one of its points to the origin, or choose nice round numbers for the lock distances. In v0.12, external constraints (constraining the sketch to existing 3D geometry like edges or to other sketches) are not implemented. This means that to locate following sketches geometry to your first sketch, you'll need to set distances relative to your first sketch manually. A lock constraint of (25,75) from the origin is more easily remembered than (23.47,73.02).
* If you have the possibility to choose between the Length constraint and the Horizontal or Vertical Distance constraints, prefer the latter. Horizontal and Vertical Distance constraints are computationally cheaper.
* In general, the best constraints to use are: Horizontal and Vertical Constraints; Horizontal and Vertical Length Constraints; Point-to-Point Tangency. If possible, limit the use of these: the general Length Constraint; Edge-to-Edge Tangency; Fix Point Onto a Line Constraint; Symmetry Constraint.




{{Docnav
== Tutorials ==
|[[Robot_Workbench/pt-br|Bancada de trabalho Robot]]
* [[Sketcher_Tutorial|Sketcher Tutorial]]
|[[Spreadsheet_Workbench/pt-br|Bancada de trabalho Spreadsheet]]
* [[Sketcher_tutorial|Sketcher tutorial]] for beginner
|IconL=Workbench_Robot.svg
* [[Sketcher_Micro_Tutorial_-_Constraint_Practices|Sketcher Micro Tutorial - Constraint Practices]]
|IconR=Workbench_Spreadsheet.svg
}}


{{Sketcher_Tools_navi{{#translation:}}}}
[[Category:User Documentation/pt-br]]
{{Userdocnavi{{#translation:}}}}
[[Category:Workbenches{{#translation:}}]]

Latest revision as of 11:07, 7 May 2024

This page has been marked for translation. But it is still a work in progress!!!
Ícone da Sketcher workbench

Introdução

A bancada de trabalho bancada de trabalho Sketcher do FreeCAD é usada para criar Sketches 2D destinadas ao uso na bancada de trabalho PartDesign, bancada de trabalho Arch, e outras bancadas de trabalho. Geralmente, um desenho 2D é considerado o ponto de partida para a maioria dos modelos CAD, pois um esboço 2D pode ser "extrudado" para criar uma forma 3D; outros esboços 2D podem ser usados para criar outros recursos como bolsos, saliências ou extrusões no topo das formas 3D previamente construídas. Junto com as operações booleanas definidas na bancada de trabalho Part, o Sketcher forma a base do método de Geometria Sólida Construtiva(constructive solid geometry - CSG) de construção de sólidos. Além disso, junto com as operações da bancada de trabalho PartDesign, o Sketcher também forma a base da metodologia de edição de recursos de criação de sólidos .

Together with boolean operations defined in the Part Workbench, the Sketcher Workbench, or "The Sketcher" for short, forms the basis of the constructive solid geometry (CSG) method of building solids. Together with PartDesign Workbench operations, it also forms the basis of the feature editing methodology of creating solids. But many other workbenches use sketches as well.

A bancada do Sketcher apresenta restrições ("constraints"), permitindo que formas 2D sigam definições geométricas precisas em termos de comprimento, ângulos e relações (horizontalidade, verticalidade, perpendicularidade, etc.). Um solucionador de restrições calcula a extensão do efeito das restrições sobre a geometria 2D e permite a exploração interativa dos graus de liberdade do esboço.

O Sketcher não se destina à produção de plantas 2D. Depois que os esboços são usados para gerar um sólido, eles são automaticamente ocultados. As restrições são visíveis apenas no modo de edição de esboço.

Um esboço básico totalmente restrito

Constraints

Em vez de cotas, restrições são usadas para limitar os graus de liberdade de um objeto. Por exemplo, uma linha sem restrições tem 4 graus de liberdade - (em inglês, Degrees Of Freedom - abreviado como " DOF "): ela pode ser movida horizontal e verticalmente, pode ser estendida/encurtada, e pode ser rotacionada.

Aplicar uma restrição horizontal ou vertical, ou uma restrição angular (em relação a outra linha ou a um dos eixos), limitará sua capacidade de rotação, deixando-a com 3 graus de liberdade. Travar um de seus pontos em relação à origem removerá outros 2 graus de liberdade, e a aplicação de uma restrição de tamanho (dimensão) removerá o último grau de liberdade. A linha é então considerada totalmente restrita.

Vários objetos podem ser restringidos entre si. Duas linhas podem ser unidas por meio de um de seus pontos com a restrição de ponto coincidente. Um ângulo pode ser definido entre elas, ou elas podem ser postas como perpendiculares. Uma linha pode ser tangente a um arco ou círculo e assim por diante. Um esboço complexo com vários objetos terá uma série de soluções diferentes e torná-lo totalmente restrito significa que apenas uma dessas soluções possíveis foi alcançada com base nas restrições aplicadas.

Existem dois tipos de restrições: geométricas e dimensionais. Eles são detalhados na seção 'Ferramentas' abaixo.

Edit constraints

When a driving dimensional constraint is created, and if the Ask for value after creating a dimensional constraint preference is selected (default), a dialog opens to edit its value.

Sketcher_Edit_Constraint.png

You can enter a numerical value or an expression, and it is possible to name the constraint to facilitate its use in other expressions. You can also check the Reference checkbox to switch the constrain to reference mode.

To edit the value of an existing dimensional constraint do one of the following:

  • Double-click the constraint value in the 3D view.
  • Double-click the constraint in the Sketcher Dialog.
  • Right-click the constraint in the Sketcher Dialog and select the Change value option from the context menu.

Reposition constraints

Dimensional constraints can be repositioned in the 3D view by dragging. Hold down the left mouse button over the constraint value and move the mouse. The symbols of geometric constraints are positioned automatically and cannot be moved.

Profile sketches

To create a sketch that can be used as a profile for generating solids certain rules must be followed:

  • The sketch must contain only closed contours. Gaps between endpoints, however small, are not allowed.
  • Contours can be nested, to create voids, but should not self-intersect or intersect other contours.
  • Contours cannot share edges with other contours. Duplicate edges must be avoided.
  • T-connections, that is more than two edges sharing a common point, or a point touching an edge, are not allowed.

These rules do not apply to construction geometry (default color blue), which is not shown outside edit mode, or if the sketch is used for a different purpose. Depending on the workbench and the tool that will use the profile sketch, additional restrictions may apply.

Drawing aids

The Sketcher Workbench has several drawing aids and other features that can help when creating geometry and applying constraints.

Continue modes

There are two continue modes: Geometry creation "Continue Mode" and Constraint creation "Continue Mode". If these are checked (default) in the preferences, related tools will restart after finishing. To exit an continuous tool press Esc or the right mouse button. This must be repeated if a continuous geometry tool has already received input. You can also exit a continuous tool by starting another geometry or constraint creation tool. Note that pressing Esc if no tool is active will exit sketch edit mode. Uncheck the Esc can leave sketch edit mode preference if you often inadvertently press Esc too many times.

Auto constraints

In sketches that have Auto constraints checked (default) several constraints are applied automatically. The icon of a proposed automatic constraint is shown next to the cursor when it is placed correctly. Left-Clicking will then apply that constraint. This is a per-sketch setting that can be changed in the Sketcher Dialog or by changing the VistaAutoconstraints property of the sketch.

The following constraints are applied automatically:

Snapping

introduced in version 0.21

It is possible to snap to grid lines and grid intersection, to edges of geometry and midpoints of lines and arcs, and to certain angles. Please note that snapping does not produce constraints in and of itself. For example, only if Auto constraints is switched on will snapping to an edge produce a Point on object constraint. But just picking a point on the edge would then have the same result.

On-View-Parameters

introduced in version 1.0

Depending on the selected option in the preferences only the dimensional On-View-Parameters or both the dimensional and the positional On-View-Parameters can be enabled. Positional parameters allow the input of exact coordinates, for example the center of a circle, or the start point of a line. Dimensional parameters allow the input of exact dimensions, for example the radius of a circle, or the length and angle of a line. On-View-Parameters are not available for all tools.

Determining the center point of a circle with the positional parameters enabled

Determining the radius of a circle with the dimensional parameters enabled

If values are entered and confirmed by pressing Enter or Tab, related constraints are added automatically. If two parameters are displayed at the same time, for example the X and Y coordinate of a point, it is possible to enter one value and pick a point to define the other. Depending on the object additional constraints may be required to fully constrain it. Constraints resulting from On-View-Parameters take precedence over those that may result from Auto constraints.

Arc created by entering all On-View-Parameters with resulting automatically created constraints

Coordinate display

If the Show coordinates beside cursor while editing preference is checked (default), the parameters of the current geometry tool (coordinates, radius, or length and angle) are displayed next to the cursor. This is deactivated while On-View-Parameters are shown.

Selection methods

While a sketch is in edit mode the following selection methods can be used:

3D view element selection

As elsewhere in FreeCAD, an element can be selected in the 3D view with a single left mouse click. But there is no need to hold down the Ctrl key when selecting multiple elements. Holding down that key is possible though and has the advantage that you can miss-click without losing the selection. Edges, points and constraints can be selected in this manner.

3D view box selection

Box selection in the 3D view works without using Std BoxSelection or Std BoxElementSelection:

  1. Make sure that no tool is active.
  2. Do one of the following:
    • Click in an empty area and drag a rectangle from left to right to select elements that lie completely inside the rectangle.
    • Click in an empty area and drag a rectangle from right to left to also select elements that touch or cross the rectangle.

You can box-select edges and points, constraints cannot be box-selected.

3D view connected geometry selection

introduced in version 1.0

Double-clicking an edge in the 3D view will select all edges directly and indirectly connected with that edge via endpoints. There is no need for the edges to be connected with Coincident constraints, endpoints need only have the same coordinates.

Sketcher Dialog selection

Edges and points can also be selected from the Elements section of the Sketcher Dialog, and constraints from the Constraints section of that dialog.

Copy, cut and paste

introduced in version 1.0

The standard keyboard shortcuts, Ctrl+C, Ctrl+X and Ctrl+V, can be used to copy, cut and paste selected Sketcher geometry including related constraints. But these tools are also available from the Sketch → Sketcher tools menu. They can be used within the same sketch but also between different sketches or separate instances of FreeCAD. Since the data is copied to the clipboard in the form of Python code, it can be used in other ways too (e.g. shared on the forum).

Ferramentas

As ferramentas do Sketcher Workbench estão localizadas no menu Sketch e/ou em várias barras de ferramentas. introduzido na versão 0.21: Quase todas as barras de ferramentas do Sketcher são exibidas apenas enquanto um esboço está no modo de edição. A única exceção é o Barra de ferramentas do Sketcher que só é exibida se nenhum esboço estiver no modo de edição.

Some tools are also available from the 3D view context menu while a sketch is in edit mode, or from the context menus of the Sketcher Dialog.

introduzido na versão 0.21: Se um esboço estiver no modo de edição, a barra de ferramentas Estrutura ficará oculta, pois nenhuma de suas ferramentas poderá ser usada.

Gerais

Barra de ferramentas do Sketcher

  • Criar um novo esboço: Cria um novo esboço em uma face ou plano selecionado. Se nenhuma face estiver selecionada enquanto esta ferramenta é executada, o usuário é solicitado a selecionar um plano em uma janela pop-up.
  • Validar: Verifica a tolerância de diferentes pontos e as ajusta.
  • Fundir: Mescla dois ou mais esboços.
  • Espelhar: Espelha um esboço em relação ao eixo x, ao eixo y ou à origem.

Barra de ferramentas do Sketcher Modo de Edição

Barra de ferramentas de edição do Sketcher

Outros

  • Parar a operação: Quando no modo de edição, para a operação atual, seja desenho, configuração de restrições, etc.

Geometrias do Sketcher

Estas são ferramentas para criar objetos.

  • Create (poly)line:
  • Polilinha (linha de múltiplos pontos): Desenha uma linha composta de vários segmentos de linha. Pressionar a tecla M enquanto se desenha uma polilinha alterna entre os diferentes modos de polilinha.
  • Criar uma linha no esboço: Desenha um segmento de reta entre 2 pontos. As linhas são infinitas em relação a certas restrições.
  • Create arc:
  • Arco de elipse: Desenha um arco de elipse pelo ponto central, ponto do raio maior, ponto inicial e ponto final.
  • Create circle/ellipse:
  • Elipse centro: Desenha uma elipse pelo ponto central, ponto do raio maior e ponto do raio menor.
  • Elipse 3 pontos: Desenha uma elipse pelo diâmetro maior (2 pontos) e ponto do raio menor.
  • Create rectangle:
  • Rectângulo: Desenha um retângulo a partir de dois vértices opostos.
  • Create regular polygon:
  • Triangulo: Desenha um triângulo regular inscrito em um círculo de geometria de construção.
  • Quadrado: Desenha um quadrado regular inscrito em um círculo de geometria de construção.
  • Pentágono: Desenha um pentágono regular inscrito em um círculo de geometria de construção.
  • Hexágono: Desenha um hexágono regular inscrito em um círculo de geometria de construção.
  • Heptágono: Desenha um heptágono regular inscrito em um círculo de geometria de construção.
  • Octágono: Desenha um octógono regular inscrito em um círculo de geometria de construção.
  • Criar Polígono Regular : Desenha um polígono regular selecionando o número de lados e escolhendo dois pontos: o centro e um canto.
  • Create slot:
  • Oblongo: Desenha uma forma oval selecionando o centro de um semicírculo e a extremidade do outro semicírculo.
  • Create B-spline:
  • Criar B-spline: Desenha uma curva B-spline por seus pontos de controle.
  • Modo de construção: Alterna a geometria do esboço de/para o modo de construção. A geometria de construção é mostrada em azul e é descartada fora do modo de edição do esboço.

Restrições do Sketcher

As restrições são usadas para definir comprimentos, definir regras entre os elementos do esboço e para bloquear o esboço ao longo dos eixos vertical e horizontal. Algumas restrições requerem o uso de Restrições de ajuda.

  • Dimensional constraints:
  • Dimension: Is the context-sensitive constraint tool of the Sketcher Workbench. Based on the current selection, it offers appropriate dimensional constraints, but also geometric constraints. introduced in version 1.0
  • Distancia Horizontal: Fixa a distância horizontal entre dois pontos quaisquer, ou pontos extremos de uma linha. Se apenas um item for selecionado, a distância é definida para a origem.
  • Distancia Vertical: Fixa a distância vertical entre dois pontos quaisquer, ou pontos extremos de uma linha. Se apenas um item for selecionado, a distância é definida para a origem.
  • Distancia: Define o comprimento de uma linha, a distância perpendicular entre um ponto e uma linha, a distância entre dois pontos, ou, introduced in version 0.21, a distância entre as arestas de dois círculos.
  • Raio ou peso: Define o raio de um arco ou círculo ou o peso de um pólo B-spline.
  • Diâmetro: Define o diâmetro de um arco ou círculo.
  • Angulo: Define o ângulo interno entre duas linhas selecionadas.
  • Restringir: Restringe o item selecionado definindo distâncias verticais e horizontais em relação à origem, travando assim a localização desse item. Essas distâncias podem ser editadas posteriormente.
  • Coincidente: Afixa um ponto em (coincidente com) um ou mais outros pontos. Atua como uma restrição concêntrica se dois ou mais círculos, arcos, elipses ou arcos de elipses forem selecionados.
  • Horizontal/vertical constraints:
  • Horizontal: Restringe as linhas selecionadas ou elementos de polilinha a uma orientação horizontal verdadeira. Mais de um objeto pode ser selecionado antes de aplicar esta restrição.
  • Vertical: Restringe as linhas selecionadas ou elementos de polilinha a uma orientação vertical verdadeira. Mais de um objeto pode ser selecionado antes de aplicar esta restrição.
  • Paralela: Restringe duas ou mais linhas, fazendo-as paralelas entre si.
  • Perpendicular: Restringe duas linhas, fazendo-as perpendiculares uma à outra, ou restringe uma linha perpendicular à extremidade de um arco.
  • Tangente: Cria uma restrição tangente entre duas entidades selecionadas ou uma restrição colinear entre dois segmentos de linha. Um segmento de linha não precisa estar diretamente sobre um arco ou círculo para ser restrito tangente a esse arco ou círculo.
  • Iguadade: Restringe duas entidades selecionadas, fazendo-as iguais uma à outra. Se usado em círculos ou arcos, seus raios resultarão iguais.
  • Simetria: Restringe dois pontos simetricamente em relação a uma linha, ou restringe os dois primeiros pontos selecionados simetricamente em relação a um terceiro ponto selecionado.
  • Bloquear: Impede que uma aresta se mova, ou seja, impede que seus vértices mudem suas posições atuais. Deve ser particularmente útil para corrigir a posição de B-Splines. Veja o tópico Block Constraint no fórum.
  • A Lei de Snell: Restringe duas linhas à obediência a uma lei de refração, para simular a luz que passa por uma interface.
  • Toggle constraints:

Ferramentas do Sketcher

  • Create fillet/chamfer:
  • Filete: Faz um filete entre duas linhas unidas em um ponto. Selecione as duas linhas ou clique no ponto de canto e ative a ferramenta.
  • Edit edge:
  • Ajustar: Corta uma linha, círculo ou arco em relação ao ponto clicado.
  • Ampliar: Estende uma linha ou um arco a uma linha limite, arco, elipse, arco de elipse ou um ponto no espaço.
  • Simetria: Copia um elemento do sketcher simétrico a uma linha escolhida.

Ferramentas de B-spline do Sketcher

  • Insert knot: Inserts a knot into a B-spline or increases the multiplicity of an existing knot.

Sketcher visual

  • Show/hide B-spline information layer:
  • Trocar espaço virtual: Permite esconder todas as restrições de um esboço e fazê-las visíveis novamente.

Ferramentas obsoletas

  • Clonar: Clona um elemento do Sketcher.
  • Forma fechada: Cria uma forma fechada aplicando restrições coincidentes a exremidades. Não disponível em version 0.21 and above.
  • Corner-preserving fillet: Creates a fillet between two non-parallel lines while preserving their corner point. Not available in version 1.0 and above.
  • Conectar bordas: Conecta elementos do Sketcher aplicando restrições de coincidência nas extremidades. Não disponível em version 0.21 and above.
  • Copiar: Copia um elemento do Sketcher.
  • Mover: Move a geometria selecionada tomando como referência o último ponto selecionado.

Preferências

  • Preferências: Preferências para a bancada de trabalho Sketcher.

Boas Práticas

Cada usuário CAD desenvolve sua própria maneira de trabalhar ao longo do tempo, mas existem alguns princípios gerais úteis a seguir.

  • Uma série de esboços simples é mais fácil de gerenciar do que um único e complexo. Por exemplo, um primeiro esboço pode ser criado para o recurso 3D base (um “pad” ou um “revolve”), enquanto um segundo pode conter furos ou recortes (“pockets”). Alguns detalhes podem ser omitidos, para serem adicionados posteriormente como elementos 3D. Você pode escolher evitar filetes em seu esboço se houver muitos e adicioná-los como um elemento 3D.
  • Sempre crie um perfil fechado, ou seu esboço não produzirá um sólido, mas sim um conjunto de faces abertas. Se você não quiser que alguns dos objetos sejam incluídos na criação do sólido, transforme-os em elementos de construção com a ferramenta Construction Mode.
  • Use o recurso de restrições automáticas para limitar o número de restrições que você terá que adicionar manualmente.
  • Como regra geral, aplique primeiro as restrições geométricas, depois as restrições dimensionais e bloqueie o esboço por último. Mas lembre-se: as regras são feitas para serem quebradas. Se você estiver tendo problemas para manipular seu esboço, pode ser útil restringir alguns objetos antes de completar seu perfil.
  • Se possível, centralize seu esboço na origem (0,0) com a restrição de bloqueio ("Lock"). Se o seu esboço não for simétrico, localize um de seus pontos na origem ou escolha bons números redondos para as distâncias de bloqueio – Uma restrição de bloqueio de (25,75) da origem é mais facilmente lembrada do que (23,47 , 73,02). Na v0.12, as restrições externas (restringindo o esboço à geometria 3D existente, como arestas ou outros esboços) não estão implementadas. Isso significa que, para localizar a geometria de esboços subsequentes em seu primeiro esboço, você precisará definir manualmente as distâncias relativas ao primeiro esboço.
  • Se você tiver a possibilidade de escolher entre a restrição Length e as restrições de distância Horizontal Distance ou Vertical Distance, prefira as últimas. Elas consomem menos recursos computacionais.
  • Em geral, as melhores restrições a serem usadas são: Restrições horizontais e verticais; restrições de comprimento horizontal e vertical; tangência ponto a ponto. Se possível, limite o uso destes: a restrição geral de comprimento; tangência borda a borda; restrição de fixar o ponto em uma linha; restrição de simetria.
  • Se estiver em dúvida sobre a validade de um esboço depois de concluído (os elementos ficam verdes), feche a caixa de diálogo do Sketcher, mude para a Bancada de trabalho Part e execute Verificar geometria.

Tutoriais

Scripting

A página Sketcher scripting contém exemplos de como criar restrições a partir de scripts Python.

Exemplos

For some ideas of what can be achieved with Sketcher tools, have a look at: Sketcher examples.