Manuel : Dessin 2D traditionnel

From FreeCAD Documentation
Revision as of 07:41, 5 June 2017 by Jpg87 (talk | contribs) (Created page with "* Nous pouvons maintenant cacher la géométrie de construction en cliquant avec le bouton droit sur le groupe Construction et en choisissant '''Masquer la sélection'''. * De...")

Vous pouvez être intéressé par FreeCAD car vous avez déjà une expérience de dessin technique, par exemple avec un logiciel comme AutoCAD. Ou vous savez déjà quelque chose dans le Design, ou vous préférez dessiner avant de construire. Dans les deux cas, FreeCAD propose un atelier avec des fonctionnalités plus traditionnelles, avec des outils que l’on trouve dans la plupart des applications CAO 2D : L’atelier de dessin 2D (Draft Workbench).

L’atelier Draft, bien qu'il adopte des façons de travailler hérité du dessin traditionnel 2D du monde de la CAO n'est pas limité au royaume 2D. Tous ses outils fonctionnent dans l'ensemble de l'espace 3D et beaucoup de ses outils, par exemple Déplacement ( Move) ou Rotation ( Rotate), sont couramment utilisés partout dans FreeCAD car ils sont souvent plus intuitifs que changer les paramètres de placement manuellement.

Parmi les outils offerts par l’atelierDraft, vous trouverez des outils de dessin traditionnels comme Ligne ( Line), Cercle ( Circle) ou Polyligne ( Wire), des outils de modification comme Déplacer en translation ( Move), Pivoter ( Rotate) ou Décaler ( Offset), un système de plan de travail / grille (working plane/grid system) qui vous permet de définir précisément dans quel plan vous travaillez, et un système d'accrochage complet (snapping system) qui rend très facile de dessiner et de positionner précisément des éléments l'un par rapport à l'autre.

Pour montrer le travail et les possibilités de l'ébauche de travail, nous réaliserons un exercice simple, dont le résultat sera ce petit dessin, montrant le plan d'étage d'une petite maison qui ne contient qu'un dessus de cuisine (un plan d'appartement très absurde, mais on peut faire ce que nous voulons ici, n'est-ce pas?) :

  • Rendez-vous dans l’atelier Draft
  • Comme dans toutes les applications de dessin technique, il est judicieux de configurer votre environnement correctement, cela vous épargnera beaucoup de temps. Configurez la grille et le plan de travail (grid and working plane), le texte (Text) et les paramètres de dimensions (Dimension) à votre convenance dans le menu Edition -> Préférences -> Draft. Dans cet exercice, cependant, nous agissons comme si ces paramètres de préférences étaient laissés à leurs valeurs par défaut.

  • L’atelier Draft dispose également de deux barres d'outils spéciales : l'une avec les paramètres visuels, où vous pouvez modifier le plan de travail actuel, activer / désactiver le mode de construction (construction mode), définir la couleur de la ligne, la couleur de la face, l’épaisseur de la ligne et la taille du texte à utiliser pour les nouveaux objets, Et un autre avec des filtres d’accrochages. Là, vous pouvez activer / désactiver la grille et définir / désactiver les filtres d’accrochages particuliers (Snap locations) :

  • Commençons par passer en mode construction, ce qui nous permettra de dessiner des lignes directrices sur lesquelles nous allons dessiner notre géométrie finale.
  • Si vous le souhaitez, mettez le plan de travail sur XY. Si vous faites cela, le plan de travail ne changera pas, peu importe la vue actuelle. Si ce n'est pas le cas, le plan de travail s'adapte automatiquement à la vue actuelle, et vous devriez prendre soin de rester en vue de dessus lorsque vous souhaitez dessiner sur le plan XY (sol).
  • Ensuite, sélectionnez l'outil Rectangle et tracez un rectangle, en commençant par le point (0,0,0), de 2 mètres par 2 mètres (laissez Z à zéro). Notez que la plupart des commandes Draft peuvent être entièrement exécutées à partir du clavier, sans toucher la souris, en utilisant leur raccourci à deux lettres. Notre premier rectangle 2x2m peut se faire comme ceci : re 0 Entrée 0 Entrée 0 Entrée 2m Entrée 2m Entrée 0 Entrée.
  • Dupliquez ce rectangle de 15 cm à l'intérieur, en utilisant l'outil Décalage ( Offset), en activant son mode Copie et en lui donnant une distance de 15 cm :

  • Nous pouvons ensuite dessiner quelques lignes verticales pour définir où nos portes et fenêtres seront placées, en utilisant l'outil Ligne ( Line). L’intersection de ces lignes avec nos deux rectangles nous donnera des intersections utiles pour enrayer nos murs. Dessinez la première ligne du point (15cm, 1m, 0) au point (15cm, 3m, 0).
  • Dupliquez cette ligne 5 fois, en utilisant l'outil Déplacer ( Move) avec le mode Copy activé. Activez également le mode relatif, ce qui nous permettra de définir des déplacements selon des distances relatives, ce qui correspond à la position exacte de chaque ligne. Donnez à chaque nouvelle copie un point de départ, vous pouvez le laisser à (0,0,0) par exemple, et les points finaux relatifs suivants :
    • line001: x: 10cm
    • line002: x: 120cm
    • line003: x: -55cm, y: -2m
    • line004: x: 80cm
    • line005: x: 15cm

  • C'est tout ce dont nous avons besoin maintenant, nous pouvons donc désactiver le mode de construction. Vérifiez que toute la géométrie de la construction a été placée dans un groupe "Construction", ce qui permet de le masquer tout à la fois ou même de le supprimer complètement plus tard.
  • Maintenant, dessinons nos deux pièces murales à l'aide de l'outil Polyligne ( Wire). Assurez-vous que le filtre d’accrochage intersection (File:Snap Intersection.png intersection snap) est activé, car nous devrons créer les intersections de nos lignes et de nos rectangles. Dessinez deux polylignes comme suit, en cliquant sur tous les points de leurs contours. Pour les fermer, cliquez sur le premier point, ou appuyez sur le bouton Fermer :

Nous pouvons changer leur couleur grise par défaut en un motif de hachures agréable, en sélectionnant les deux murs, et en définissant leur propriété Motif à Simple, et leur taille à votre goût, par exemple 0,005.

  • Nous pouvons maintenant cacher la géométrie de construction en cliquant avec le bouton droit sur le groupe Construction et en choisissant Masquer la sélection.
  • Dessinons maintenant les fenêtres et les portes. Assurez-vous que le filtre d’accrochage Point Milieu (File:Snap Midpoint.png midpoint snap) est activé et tracez six lignes comme suit :

  • We will now change the door line to create an opened door symbol. Start by rotating the line using the Rotate tool. Click the enpoint of the line as rotation center, give it a start angle of 0, and an end angle of -90.
  • Then create the opening arc with the Arc tool. Pick the same point as the rotation center we used in the previous step as center, click the other point of the line to give the radius, then the start and end points as follow:

  • We can now start placing some furniture. To begin with, let's place a counter by drawing a rectangle from the upper left inner corner, and giving it a width of 170cm and a height of -60cm. In the image below, the Transparency property of the rectangle is set to 80%, to give it a nice furniture look.
  • Then let's add a sink and a cooktop. Drawing these kinds of symbols by hand can be very tedious, and they are usually easy to find on the internet, for example on http://www.cad-blocks.net . In the Downloads section below, for convenience, we separated a sink and a cooktop from this site, and saved them as DXF files.You can download these two files by visiting the links below, and right-clicking the Raw button, then choosing save as.
  • Inserting a DXF file into an opened FreeCAD document can be done either by choosing the File -> Import menu option, or by dragging and dropping the DXF file from your file explorer into the FreeCAD window. The contents of the DXF files might not appear right on the center of your current view, depending on where they were in the DXF file. You can use menu View -> Standard views -> Fit all to zoom out and find the imported objects. Insert the two DXF files, and move them to a suitable location on the tabletop:

  • We can now place a couple of dimensions using the Dimension tool. Dimensions are drawn by clicking 3 points: the start point, an end point, and a third point to place the dimension line. To make horizontal or vertical dimensions, even if the two first points are not aligned, press Shift while clicking the second point.
  • You can change the position of a dimension text by double-clicking the dimension in the tree view. A control point will allow you to move the text graphically. In our exercise, the "0.15" texts have been moved away for better clarity.
  • You can change the contents of the dimension text by editing their Override property. In our example, the texts of the door and windows dimensions have been edited to indicate their heights:

  • Let's add some description texts using the Text tool. Click a point to position the text, then enter the lines of text, pressing Enter after each line. To finish, press Enter twice.
  • The indication lines (also called "leaders") that link the texts to the item they are describing are simply done with the Wire tool. Draw wires, starting from the text position, to the place being described. Once that is done, you can add a bullet or arrow at the end of the wires by setting their End Arrow property to True

  • Our drawing is now complete! Since there begins to be quite a number of objects there, it would be wise do some cleaning and place everything in a nice structure of groups, to make the file easier to understand to another person:

  • We can now print our work by placing it on a Drawing sheet, which we will show further in this manual, or directly export our drawing to other CAD applications, by exporting it to a DXF file. Simply select our "Floor plan" group, select menu File -> Export, and select the Autodesk DXF format. The file can then be opened in any other 2D CAD application such as LibreCAD. You might notice some differences, depending on the configurations of each application.

  • The most important thing about the Draft Workbench, however, is that the geometry you create with it can be used as a base or easily extruded into 3D objects, simply by using the Part_Extrude tool from the Part Workbench, or, to stay in Draft, the Trimex (Trim/Extend/Extrude) tool, which under the hood performs a Part Extrusion, but does it "the Draft way", that is, allows you to indicate and snap the extrusion length graphically. Experiment extruding our walls as shown below.
  • By pressing the working plane button after selecting a face of an object, you are also able to place the working plane anywhere, and therefore draw Draft objects in different planes, for example on top of the walls. These can then be extruded to form other3D solids. Experiment setting the working plane on one of the top faces of the walls, then draw some rectangles up there.

  • All kinds of openings can also be done as easily by drawing Draft objects on the faces of walls, then extruding them, then using the boolean tools from the Part Workbench to subtract them from another solid, as we saw in the previous chapter.

Fundamentally, what the Draft Workbench does is provide graphical ways to create basic Part operations. While in Part you will usually position objects by setting their placement property by hand, in Draft you can do it on-screen. There are times when one is better, other times when the other is preferable. Don't forget, you can create custom toolars in one of these workbenches, add the tools from the other, and get the best of both worlds.

Downloads

Read more