Basic Sketcher Tutorial: Difference between revisions

From FreeCAD Documentation
m (minor for translation)
(Marked this version for translation)
Line 1: Line 1:
<translate>
<translate>


<!--T:1-->
{{TutorialInfo
{{TutorialInfo
|Class= Sketcher
|Class= Sketcher
Line 10: Line 11:
}}
}}


=== Introduction ===
=== Introduction === <!--T:2-->
This tutorial is meant to introduce the reader to the basic workflow of the [[Sketcher Workbench|Sketcher Workbench]].
This tutorial is meant to introduce the reader to the basic workflow of the [[Sketcher Workbench|Sketcher Workbench]].


<!--T:3-->
The Sketcher workbench exists as a standalone module, but it is also accessible from within the [[PartDesign Workbench|PartDesign Workbench]] when it is required to create a '''profile'''.
The Sketcher workbench exists as a standalone module, but it is also accessible from within the [[PartDesign Workbench|PartDesign Workbench]] when it is required to create a '''profile'''.


<!--T:4-->
[[Image:Sketcher_tutorial_result.png|480px]]
[[Image:Sketcher_tutorial_result.png|480px]]


=== Requirements ===
=== Requirements === <!--T:5-->
* FreeCAD version 0.16 or above
* FreeCAD version 0.16 or above


=== Procedure ===
=== Procedure === <!--T:6-->
==== Creating a Sketch ====
==== Creating a Sketch ====
# Create a new document
# Create a new document
Line 26: Line 29:
# Select [[Image:Sketcher_NewSketch.png‎‎|32px]] [[Sketcher_NewSketch|New sketch]]
# Select [[Image:Sketcher_NewSketch.png‎‎|32px]] [[Sketcher_NewSketch|New sketch]]


<!--T:7-->
We are now inside the Sketcher environment. Within it, we're able to make use of the majority of the tools that are available in this workbench.
We are now inside the Sketcher environment. Within it, we're able to make use of the majority of the tools that are available in this workbench.


<!--T:8-->
In the '''Combo View''', expand the option '''Edit controls''' and make sure '''Autoconstraints''' are enabled.
In the '''Combo View''', expand the option '''Edit controls''' and make sure '''Autoconstraints''' are enabled.


==== Creating geometry ====
==== Creating geometry ==== <!--T:9-->
===== Sketcher construction geometry =====
===== Sketcher construction geometry =====
Construction geometry is used as guides for the creation of complex profiles. To access it, we need to enable '''Construction mode '''.
Construction geometry is used as guides for the creation of complex profiles. To access it, we need to enable '''Construction mode '''.


<!--T:10-->
# Select [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]
# Select [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]
# Select [[Image:Sketcher_Line.png|32px]] [[Sketcher_Line|Line by 2 point]]
# Select [[Image:Sketcher_Line.png|32px]] [[Sketcher_Line|Line by 2 point]]
Line 41: Line 47:
# To exit construction mode, simply click again on [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]
# To exit construction mode, simply click again on [[Image:Sketcher_ToggleConstruction.png|32px]] [[Sketcher_ToggleConstruction|Construction Mode]]


===== Sketcher geometry =====
===== Sketcher geometry ===== <!--T:11-->
Sketcher geometry is used to create the closed profiles required to perform 3D operations in the '''PartDesign''' workbench.
Sketcher geometry is used to create the closed profiles required to perform 3D operations in the '''PartDesign''' workbench.
# Select [[Image:Sketcher_Circle.png|32px]] [[Sketcher_Circle|Circle]]
# Select [[Image:Sketcher_Circle.png|32px]] [[Sketcher_Circle|Circle]]
Line 48: Line 54:




<!--T:12-->
# Select [[Image:Sketcher_Arc.png|32px]] [[Sketcher_Arc|Arc]]
# Select [[Image:Sketcher_Arc.png|32px]] [[Sketcher_Arc|Arc]]
# Approach the '''endpoint''' of one of the construction lines.
# Approach the '''endpoint''' of one of the construction lines.
Line 56: Line 63:




<!--T:13-->
# Create an arc between each pair of the previous arcs, with their circumference pointing towards the circle.
# Create an arc between each pair of the previous arcs, with their circumference pointing towards the circle.


<!--T:14-->
We have now created the basic elements for our profile.
We have now created the basic elements for our profile.


===== External Geometry =====
===== External Geometry ===== <!--T:15-->
When a 3D element has been created it is possible to create references to it within a sketch.
When a 3D element has been created it is possible to create references to it within a sketch.


<!--T:16-->
# Select [[Image:Sketcher_External.png|32px]] [[Sketcher_External|External Geometry]].
# Select [[Image:Sketcher_External.png|32px]] [[Sketcher_External|External Geometry]].
# Approach the element that you wish to reference, the edge of a '''Pad''' for example.
# Approach the element that you wish to reference, the edge of a '''Pad''' for example.
Line 69: Line 79:




==== Constraints ====
==== Constraints ==== <!--T:17-->
Constraints are used to constrain the '''Degrees of Freedom''' of points and curves within sketcher.
Constraints are used to constrain the '''Degrees of Freedom''' of points and curves within sketcher.


===== Geometric Constraints =====
===== Geometric Constraints ===== <!--T:18-->
They are used to establish relations between points and curves without the use of dimensions.
They are used to establish relations between points and curves without the use of dimensions.


<!--T:19-->
# Select all five construction lines.
# Select all five construction lines.
# Select [[Image:Constraint_EqualLength.png|32px]] [[Constraint_EqualLength|Equal Length]]
# Select [[Image:Constraint_EqualLength.png|32px]] [[Constraint_EqualLength|Equal Length]]




<!--T:20-->
# Select all five arcs centered on an endpoint of a line.
# Select all five arcs centered on an endpoint of a line.
# Select [[Image:Constraint_EqualLength.png|32px]] [[Constraint_EqualLength|Equal Length]]
# Select [[Image:Constraint_EqualLength.png|32px]] [[Constraint_EqualLength|Equal Length]]
Line 84: Line 96:




<!--T:21-->
# Select the construction line that is closest to the vertical axis.
# Select the construction line that is closest to the vertical axis.
# Select [[Image:Constraint_Vertical.png|32px]] [[Constraint_Vertical|Vertical]]
# Select [[Image:Constraint_Vertical.png|32px]] [[Constraint_Vertical|Vertical]]




<!--T:22-->
# Select the endpoint of an arc and the endpoint closest to it.
# Select the endpoint of an arc and the endpoint closest to it.
# Select [[Image:Constraint_Tangent.png|32px]] [[Constraint_Tangent|Tangent]]
# Select [[Image:Constraint_Tangent.png|32px]] [[Constraint_Tangent|Tangent]]
# Repeat for each endpoint, until a closed profile is created.
# Repeat for each endpoint, until a closed profile is created.


<!--T:23-->
As of this step, we have now created a closed profile that can be adjusted with the desired dimensions.
As of this step, we have now created a closed profile that can be adjusted with the desired dimensions.




===== Datum Constraints =====
===== Datum Constraints ===== <!--T:24-->
These are used to specify the distance between points in a particular direction and the dimensions of curves.
These are used to specify the distance between points in a particular direction and the dimensions of curves.


<!--T:25-->
# Select the vertically constrained construction line.
# Select the vertically constrained construction line.
# Select [[Image:Constraint_VerticalDistance.png|32px]] [[Constraint_VerticalDistance|Vertical Distance]]
# Select [[Image:Constraint_VerticalDistance.png|32px]] [[Constraint_VerticalDistance|Vertical Distance]]
Line 103: Line 119:




<!--T:26-->
# Select the vertical construction line and the line closest to it
# Select the vertical construction line and the line closest to it
# Select [[Image:Constraint_InternalAngle.png|32px]] [[Constraint_InternalAngle|Internal Angle]]
# Select [[Image:Constraint_InternalAngle.png|32px]] [[Constraint_InternalAngle|Internal Angle]]
Line 109: Line 126:




<!--T:27-->
# Select one of the arcs centered on the endpoint of a line.
# Select one of the arcs centered on the endpoint of a line.
# Select [[Image:Constraint_Radius.png|32px]] [[Constraint_Radius|Radius]]
# Select [[Image:Constraint_Radius.png|32px]] [[Constraint_Radius|Radius]]
Line 115: Line 133:
# Set the center circle radius to 10 mm.
# Set the center circle radius to 10 mm.


<!--T:28-->
You should end up with a fully constrained sketch. It can be comfirmed by noticing the change in color of all curves.
You should end up with a fully constrained sketch. It can be comfirmed by noticing the change in color of all curves.


<!--T:29-->
We are now finished with the basic workflow for the [[Sketcher Module|Sketcher Module]].
We are now finished with the basic workflow for the [[Sketcher Module|Sketcher Module]].


=== Further Reading ===
=== Further Reading === <!--T:30-->
* To understand more about the workbench, see [[Sketcher Workbench|Sketcher Workbench]]
* To understand more about the workbench, see [[Sketcher Workbench|Sketcher Workbench]]




<!--T:31-->
[[Category:User Documentation]]
[[Category:User Documentation]]
[[Category:Tutorials]]
[[Category:Tutorials]]

Revision as of 20:08, 21 September 2015

Tutorial
Topic
{{{Topic}}}
Level
Beginner
Time to complete
10 minutes
Authors
Drei
FreeCAD version
0.16 or above
Example files
See also
None

Introduction

This tutorial is meant to introduce the reader to the basic workflow of the Sketcher Workbench.

The Sketcher workbench exists as a standalone module, but it is also accessible from within the PartDesign Workbench when it is required to create a profile.

Requirements

  • FreeCAD version 0.16 or above

Procedure

Creating a Sketch

  1. Create a new document
  2. Switch to the Sketcher Workbench
  3. Select New sketch

We are now inside the Sketcher environment. Within it, we're able to make use of the majority of the tools that are available in this workbench.

In the Combo View, expand the option Edit controls and make sure Autoconstraints are enabled.

Creating geometry

Sketcher construction geometry

Construction geometry is used as guides for the creation of complex profiles. To access it, we need to enable Construction mode .

  1. Select Construction Mode
  2. Select Line by 2 point
  3. Approach the origin point in the sketch, the point should highlight and near your cursor this icon will appear.
  4. Select the point and extend the line diagonally up to an arbitrary length.
  5. Repeat this procedure until you've created five construction lines. Be sure to keep all of them diagonal.
  6. To exit construction mode, simply click again on Construction Mode
Sketcher geometry

Sketcher geometry is used to create the closed profiles required to perform 3D operations in the PartDesign workbench.

  1. Select Circle
  2. Position its centerpoint on the origin of the sketch.
  3. Extend the circumference to an arbitrary length.


  1. Select Arc
  2. Approach the endpoint of one of the construction lines.
  3. Set the centerpoint' of the arc to be coincident with the endpoint.
  4. Select an arbitrary location of your cursor to be set as the beginning of the arc, by clicking once.
  5. Extend the arc an arbitrary amount, making sure the circumference opens outward (the empty space is facing towards the circle you created earlier).
  6. Repeat these steps for each construction line.


  1. Create an arc between each pair of the previous arcs, with their circumference pointing towards the circle.

We have now created the basic elements for our profile.

External Geometry

When a 3D element has been created it is possible to create references to it within a sketch.

  1. Select External Geometry.
  2. Approach the element that you wish to reference, the edge of a Pad for example.
  3. Click on it
  4. New elements of a different color should appear on the sketch in the location of the feature you wish to reference.


Constraints

Constraints are used to constrain the Degrees of Freedom of points and curves within sketcher.

Geometric Constraints

They are used to establish relations between points and curves without the use of dimensions.

  1. Select all five construction lines.
  2. Select Equal Length


  1. Select all five arcs centered on an endpoint of a line.
  2. Select Equal Length
  3. Repeat for all five arcs that are not centered on an endpoint.


  1. Select the construction line that is closest to the vertical axis.
  2. Select Vertical


  1. Select the endpoint of an arc and the endpoint closest to it.
  2. Select Tangent
  3. Repeat for each endpoint, until a closed profile is created.

As of this step, we have now created a closed profile that can be adjusted with the desired dimensions.


Datum Constraints

These are used to specify the distance between points in a particular direction and the dimensions of curves.

  1. Select the vertically constrained construction line.
  2. Select Vertical Distance
  3. Set the length to 30 mm.


  1. Select the vertical construction line and the line closest to it
  2. Select Internal Angle
  3. Set the angle to 72°
  4. Repeat the same procedure for each pair of adjacent lines.


  1. Select one of the arcs centered on the endpoint of a line.
  2. Select Radius
  3. Set the radius to 8 mm.
  4. Do the same for an arc not centered on an endpoint. Set the radius to 11 mm.
  5. Set the center circle radius to 10 mm.

You should end up with a fully constrained sketch. It can be comfirmed by noticing the change in color of all curves.

We are now finished with the basic workflow for the Sketcher Module.

Further Reading