Basic Sketcher Tutorial/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "Le lecteur pratiquera: * Création d'une géométrie de construction * Création d'une géométrie réelle * Application de contraintes géométriques * Application de contrai...")
(Created page with "Pour une description plus approfondie de l'esquisse, lisez le Manuel de référence pour Sketcher.")
Line 25: Line 25:
* Obtention d'un profil fermé
* Obtention d'un profil fermé


For a more in depth description of the sketcher, read the [[Sketcher_reference|Sketcher reference]].
Pour une description plus approfondie de l'esquisse, lisez le [[Sketcher_reference/fr|Manuel de référence pour Sketcher]].


[[File:00_Sk01_Sketcher_fully_constrained_final.png]]
[[File:00_Sk01_Sketcher_fully_constrained_final.png]]

Revision as of 17:58, 26 March 2020

Tutoriel
Thème
Esquisse
Niveau
Débutant
Temps d'exécution estimé
60 minutes
Auteurs
Drei et vocx
Version de FreeCAD
0.19
Fichiers exemples
Basic Sketcher tutorial updated
Voir aussi
None

Introduction

Ce didacticiel vise à présenter au lecteur le flux de travail de base de l'Atelier Esquisse.

L'atelier Sketcher existe en tant qu 'atelier autonome, il peut donc être utilisé pour dessiner des objets 2D (planaires) génériques. Cependant, il est principalement utilisé en conjonction avec l' atelier PartDesign. Une esquisse fermée est normalement utilisée pour créer une surface ou un profil à extruder dans un solide PartDesign Corps avec une opération telle que PartDesign Protrusion.

Le lecteur pratiquera:

  • Création d'une géométrie de construction
  • Création d'une géométrie réelle
  • Application de contraintes géométriques
  • Application de contraintes de référence
  • Obtention d'un profil fermé

Pour une description plus approfondie de l'esquisse, lisez le Manuel de référence pour Sketcher.

Requis

  • FreeCAD version 0.16 ou après

1. Open FreeCAD, create a new empty document with File → New.

1.1. Switch to the Sketcher Workbench from the workbench selector, or the menu View → Workbench → Sketcher.

Some actions to remember:

  • Press the right mouse button, or press Esc in the keyboard once, to deselect the active tool in edit mode.
  • To exit the sketch edit mode, press the Close button in the task panel, or press Esc twice in the keyboard.
  • To enter again edit mode, double click on the sketch in the tree view, or select it, and then click on Edit sketch.

Procédure

Création d'une esquisse

  1. Créez un nouveau document
  2. Passez à l'atelier Sketcher en utilisant le menu déroulant ou en cliquant sur Menu Affichage > Workbench > Esquisse.
  3. Sélectionnez Nouvelle esquisse
  4. Nous devrions voir une boîte de dialogue qui nous invite à choisir l'orientation de l'esquisse et à fournir un décalage. Nous n'utiliserons pas offset, et nous utiliserons le plan par défaut
  5. Cliquez sur OK et nous pouvons commencer à construire l'esquisse

2. Click on New sketch.

2.1. Choose the sketch orientation, that is, one of the base XY, XZ, or YZ planes. Also choose if you want an inverted orientation, and an offset from the base plane.
2.2. We will use the default plane and options.
2.3. Click OK to start constructing the sketch.

Nous sommes maintenant dans l'environnement du Sketcher. Maintenant, nous sommes en mesure d'utiliser la majorité des outils disponibles dans cet atelier.

Dans la Vue Combinée, développez l'option Modifier les contrôles et s'assurer que Contraintes auto est activé.

Upper part of the task panel of the sketcher.

Création de la géométrie

Géométrie de construction de l'esquisse

La géométrie de construction est utilisée comme guide pour la création de profils complexes. Pour y accéder, nous devons activer le mode Construction.

  1. Sélectionnez Mode construction
  2. Sélectionnez Ligne par 2 points
  3. Approchez le point d'origine dans l'esquisse, le point devrait apparaître et près de votre curseur cette icône apparaîtra.
  4. Sélectionnez le point et étendre la ligne en diagonale jusqu'à une longueur arbitraire.
  5. Répétez cette procédure et construisez cinq lignes. S'assurer de les garder toutes en diagonale.
  6. Pour quitter le mode construction, cliquez à nouveau sur Mode construction

Note: up to this point the line tool is still active. This means we can keep clicking on the 3D view to draw as many lines as we want. If we wish to exit this tool, we can press the right mouse button, or press Esc in the keyboard once. By doing this the pointer won't create lines any more, it will just be a pointer allowing us to select the objects we just created. In this pointer mode we can pick and drag the endpoints of each line to adjust its placement.

Note 2: do not press Esc a second time as this will exit the sketch edit mode. If you do this, re-enter the edit mode by double clicking on the sketch in the tree view.

Take a look at the task panel again. The Solver messages section already indicates that the sketch is under-constrained, and it mentions the number of degrees of freedom.

Look at the Constraints and Elements sections to see the new listed constraints and lines. Once your sketches have many elements, it may be difficult to select them in the 3D view, so you can use these lists to select the object that you wish exactly.

Construction lines forming a star shape with its center in the origin.

Géométrie d'esquisse =

La géométrie d'esquisse est utilisée pour créer les profils fermés requis pour effectuer des opérations 3D dans le plan de travail PartDesign.

  1. Sélectionnez Cercle
  2. Positionner son point central sur l'origine de l'esquisse (intersection des axes XOY).
  3. Étendre la circonférence à une longueur arbitraire.
  1. Sélectionnez Arc.
  2. Approchez le point final de l'une des lignes de construction.
  3. Placez le point central de l'arc a coïncider avec le point final.
  4. Sélectionnez un emplacement arbitraire de votre curseur pour définir le début de l'arc, en cliquant une fois.
  5. Étendre l'arc de façon arbitraire en vous assurant que la circonférence s'ouvre vers l'extérieur (l'espace vide fait face au cercle que vous avez créé précédemment).
  6. Répétez ces étapes pour chaque ligne de construction.

Outer arcs

4. Create a circle.

4.1. Click on Create circle.
4.2. Click on the origin of the sketch to position its center point.
4.3. Click anywhere in the 3D view to set the circumference radius as a distance from the origin. Make it approximately 8 mm. Again the dimension will be fixed later.

5. Create a series of arcs.

5.1. Click on Create arc.
5.2. Approach the endpoint of one of the construction lines, and click on it. This will set the center point of the circular arc to be coincident with this line's endpoint.
5.3. Click once in the 3D view at an arbitrary location to set simultaneously the radius of the arc, and the first endpoint of it. Define an approximate radius of 8 mm.
5.4. Move the pointer in an anti-clockwise direction to trace an arc that has its concavity pointing towards the origin of the sketch. Click to set the final endpoint of the arc, defining a circular arc that approximately sweeps 180° or half a circle.
5.5. Repeat these steps with each construction line, so that each of them has a circular arc at its tip. We will call these O-arcs for outwards-arcs.

Circular arcs added at the endpoints of the construction lines. Also a central circle.

Inner arcs

  1. Créez un arc entre la paire d'arcs précédemment construits, avec sa circonférence pointant vers le cercle.

To summarize, the O-arcs should have their curvature pointing outwards, and their concavity pointing towards the origin of the sketch; the I-arcs should have their curvature pointing inwards, and their concavity pointing away from the same origin.

Circular arcs added between the first set of arcs placed.

Constraints

Take a look at the task panel again. Due to the new geometrical elements that we have drawn, the Solver messages section indicates even more degrees of freedom. A degree of freedom (DOF) indicates a possible movement of one element. For example, a point can be moved both in horizontal and vertical directions, so it has two degrees of freedom. A line is defined by two points, therefore in total it has four degrees of freedom. If we fix one of those points, then the entire system has only two degrees of freedom available; if we additionally fix the horizontal movement of the remaining point, we only have one degree of freedom left; and if we also fix the vertical movement of this point, then the last degree of freedom disappears, and the line cannot move from its position any more.

Contraintes

Les contraintes sont utilisées pour contraindre les Degrés de Liberté des points et des courbes dans l'esquisse.

There are two principal types of constraints:

  • Geometric constraints define characteristics of the shapes without specifying exact dimensions, for example, horizontality, verticality, parallelism, perpendicularity, and tangency.
  • Datum constraints define characteristics of the shapes by specifying dimensions, for example, a numeric length or an angle.
Contraintes géométriques

Elles sont utilisées pour établir des relations entre des points et des courbes sans utiliser de dimensions.

Equal length and radius

  1. Sélectionnez les cinq lignes de construction.
  2. Sélectionnez Longueurs égales
7.3. Select all five O-arcs, those centered on an endpoint of a construction line.
7.4. Press Equal length.
7.5. Repeat with all I-arcs, those between the O-arcs.
Note: again the constraints are chained. Therefore all O-arcs will have the same radius, and all I-arcs will have the same radius. At this moment, the specific value of these lengths is not fixed. You may use the pointer to drag a point and see how the sketch is updated while respecting the constraints in place.
  1. Sélectionnez la ligne de construction la plus proche de l'axe vertical.
  2. Sélectionnez Contrainte verticale.

Note: as you add constraints, overlay symbols indicating the type of constraint appear over the geometry in the 3D view. If these symbols obfuscate your view, you can hide them by unchecking the constraint in the task panel. Also note that the number of degrees of freedom decreases after adding each constraint.

Note 2: if you wish to temporarily disable the constraint, you may select it and press Toggle active constraint. When you want to apply it again, press again the same button.

Sketch with equality constraints applied to the construction lines, and to the two sets of arcs.

Tangency

  1. Sélectionnez l'extrémité d'un arc et le point d'extrémité le plus proche.
  2. Sélectionnez Tangente
  3. Répétez l'opération pour chaque nœud final, jusqu'à ce qu'un profil fermé soit créé.

Note: applying the tangential constraint very often will move the geometry around in order to produce a smooth connection. You may have to use the pointer to reposition the points a bit before applying the next tangential constraint. Try placing the endpoints in such a way that two arcs aren't too far apart, so they can be connected with a short line rather than a long line.

À partir de cette étape, nous avons maintenant créé un profil fermé qui peut être ajusté avec les dimensions souhaitées.

Sketch with tangential constraints applied to the arcs, which closes the shape.

Contraintes de référence

Celle-ci sont utilisées pour spécifier la distance entre les points dans une direction particulière et la dimension des courbes.

These constraints specify the numerical distances between two points, and angles between two lines.

Distances and angles

  1. Sélectionnez la ligne de construction contrainte verticalement.
  2. Sélectionnez Distance verticale.
  3. Régler la longueur sur 30 mm.
  1. Sélectionnez la ligne de construction verticale et la ligne la plus proche.
  2. Sélectionnez Angle interne
  3. Réglez l'angle sur 72°
  4. Répétez la même procédure pour chaque paire de lignes adjacentes.

Sketch with length constraint applied to one vertical construction line (left), and angle constraints to three pairs of construction lines (right).

Radius

  1. Sélectionnez l'un des arcs centré sur l'extrémité d'une ligne.
  2. Sélectionnez Rayon
  3. Réglez le rayon sur 8 mm.
  4. Faire de même pour un arc non centré sur un point final. Réglez le rayon sur 11 mm.
  5. Réglez le rayon du cercle central sur 10 mm.

Sketch with radius constraints applied to the outwards arcs (left), and inwards arcs (right).

11.7. Finally, select the circle in the center of the sketch, press Radius, and set the value to 8 mm.

L' esquisse doit être entièrement contrainte. Cela peut être confirmé en remarquant le changement de couleur de toutes les courbes(de blanc, en vert).

Sketch with all geometrical and datum constraints applied.

Extrusion

12. Now that we have a fully constrained sketch, it can be used to create a solid body.

12.1. Exit the sketch edit mode by pressing the Close button, or pressing Esc twice. The sketch should appear in the tree view and the 3D view.
12.2. Switch to the PartDesign Workbench.
12.3. With the sketch selected in the tree view, press PartDesign Body, choose the default XY-plane, and press OK. The sketch should appear now inside the Body.
12.4. Select the sketch, and then press PartDesign Pad, choose the default options, and press OK to create a solid extrusion.

Left: fully constrained sketch with only the most important constraints showing. Right: solid extrusion produced with PartDesign Pad.

Additional information

For a more in depth description of the sketcher, visit the Sketcher Workbench documentation and also read the Sketcher reference.

Constraining a sketch can be done in many different ways. In general, it is recommended to use geometrical constraints first, and minimize the number of datum constraints, as this simplifies the task of the internal constraint solver. To investigate this, repeat this example, now adding the constraints in different order.

  • First constrain the construction lines before drawing the arcs.
  • Or constrain the size of the arcs before making them tangent.
  • Or set the angle of the construction lines before adding more elements.
  • Try using other construction geometry.

Template:Tutorials navi/fr