Manual:Generating 2D drawings: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Manual:TOC)
 
(4 intermediate revisions by 3 users not shown)
Line 10: Line 10:
}}
}}


</translate>
<!--T:1-->
{{Manual:TOC}}
{{Manual:TOC}}
<translate>


<!--T:2-->
<!--T:2-->
Line 20: Line 21:


<!--T:4-->
<!--T:4-->
In FreeCAD, the workbench responsible for making such drawings is the [[Image:Workbench_TechDraw.svg|24px]] [[TechDraw_Module|TechDraw Workbench]].
In FreeCAD, the workbench responsible for making such drawings is the [[Image:Workbench_TechDraw.svg|24px]] [[TechDraw_Workbench|TechDraw Workbench]].


<!--T:5-->
<!--T:5-->
Line 29: Line 30:


<!--T:7-->
<!--T:7-->
In the following exercise, we will see how to create a simple drawing of a chair model found in the [https://github.com/FreeCAD/FreeCAD-library FreeCAD library] (Furniture → Chairs → IkeaLikeChair). The FreeCAD library can easily be added to your FreeCAD installation (refer to the [[Manual:Installing|installing]] chapter of this manual), or you can simply download the model from the library webpage, or via the direct link provided at the bottom of this chapter.
In the following exercise, we will see how to create a simple drawing of a chair model found in the [https://github.com/FreeCAD/FreeCAD-library FreeCAD library] (Industrial Design → Chairs → IkeaLikeChair). The FreeCAD library can easily be added to your FreeCAD installation (refer to the [[Manual:Installing|installing]] chapter of this manual), or you can simply download the model from the library webpage, or via the direct link provided at the bottom of this chapter.


<!--T:8-->
<!--T:8-->
Line 41: Line 42:


<!--T:11-->
<!--T:11-->
* Switch to the [[Image:Workbench_TechDraw.svg|24px]] [[TechDraw_Module|TechDraw Workbench]]
* Switch to the [[Image:Workbench_TechDraw.svg|24px]] [[TechDraw_Workbench|TechDraw Workbench]]
* Press the [[Image:TechDraw_PageTemplate.svg|16px]] [[TechDraw_PageTemplate|TechDraw PageTemplate]] button.
* Press the [[Image:TechDraw_PageTemplate.svg|16px]] [[TechDraw_PageTemplate|TechDraw PageTemplate]] button.
* Select the '''A4_Portrait_ISO7200TD''' template. A new tab will open in your FreeCAD window, showing the new page.
* Select the '''A4_Portrait_ISO7200TD''' template. A new tab will open in your FreeCAD window, showing the new page.
Line 74: Line 75:


<!--T:14-->
<!--T:14-->
We will now place dimensions and indications on our drawing. There are two ways to add dimensions to a model: one is placing the dimensions inside the 3D model, using the [[Image:Draft_Dimension.svg|16px]] [[Draft_Dimension|Dimension]] tool of the [[Draft_Module|Draft Workbench]], and then placing a view of these dimensions on our sheet with the [[Image:TechDraw_DraftView.svg|16px]] [[TechDraw_DraftView|TechDraw DraftView]] tool. The other is to do things directly on the TechDraw sheet. We'll use the latter method.
We will now place dimensions and indications on our drawing. There are two ways to add dimensions to a model: one is placing the dimensions inside the 3D model, using the [[Image:Draft_Dimension.svg|16px]] [[Draft_Dimension|Dimension]] tool of the [[Draft_Workbench|Draft Workbench]], and then placing a view of these dimensions on our sheet with the [[Image:TechDraw_DraftView.svg|16px]] [[TechDraw_DraftView|TechDraw DraftView]] tool. The other is to do things directly on the TechDraw sheet. We'll use the latter method.


<!--T:15-->
<!--T:15-->
* Hit the [[Image:TechDraw_ToggleFrame.svg|16px]] Toggle button to turn the vertices on.
* Hit the [[Image:TechDraw_ToggleFrame.svg|16px]] Toggle button to turn the vertices on.
* Use Ctrl + Left Mouse Click to select the two vertices you want to measure the distance between.
* Use Ctrl + Left Mouse Click to select the two vertices you want to measure the distance between.
* Hit the [[Image:TechDraw_Dimension_Length.svg|16px]] [[TechDraw_Dimension_Length|TechDraw Dimension Length]] button.
* Hit the [[Image:TechDraw_LengthDimension.svg|16px]] [[TechDraw_LengthDimension|TechDraw LengthDimension]] button.


<!--T:16-->
<!--T:16-->
Line 86: Line 87:


<!--T:19-->
<!--T:19-->
* Repeat the operation, until all the dimensions you wish to indicate are placed. Use the [[Image:TechDraw_Dimension_Vertical.svg|16px]] [[TechDraw_Dimension_Vertical|TechDraw Vertical Dimension]] and [[Image:TechDraw_Dimension_Horizontal.svg|16px]] [[TechDraw_Dimension_Horizontal|TechDraw Dimension Horizontal]] tools as necessary.
* Repeat the operation, until all the dimensions you wish to indicate are placed. Use the [[Image:TechDraw_VerticalDimension.svg|16px]] [[TechDraw_VerticalDimension|TechDraw VerticalDimension]] and [[Image:TechDraw_HorizontalDimension.svg|16px]] [[TechDraw_HorizontalDimension|TechDraw HorizontalDimension]] tools as necessary.
* Take a minute to look at the [[TechDraw_Dimension_Length#Properties|properties]] of the Dimension object in the Combo View.
* Take a minute to look at the [[TechDraw_LengthDimension#Properties|properties]] of the Dimension object in the Combo View.
* Please note that if you are dimensioning an [https://en.wikipedia.org/wiki/Axonometric_projection axonometric] view (e.g., isometric view) instead of a [https://en.wikipedia.org/wiki/Multiview_projection multiview] view (e.g., front view) like we have done here, you will need to use the [[Image:TechDraw_Dimension_Link.svg|16px]] [[TechDraw_Dimension_Link|TechDraw Dimension Link]] tool to get an accurate dimension.
* Please note that if you are dimensioning an [https://en.wikipedia.org/wiki/Axonometric_projection axonometric] view (e.g., isometric view) instead of a [https://en.wikipedia.org/wiki/Multiview_projection multiview] view (e.g., front view) like we have done here, you will need to use the [[Image:TechDraw_LinkDimension.svg|16px]] [[TechDraw_LinkDimension|TechDraw LinkDimension]] tool to get an accurate dimension.


<!--T:21-->
<!--T:21-->
Line 119: Line 120:


<!--T:26-->
<!--T:26-->
* [[TechDraw_Module|The TechDraw workbench]]
* [[TechDraw_Workbench|The TechDraw workbench]]
* [[TechDraw_TemplateHowTo|Create custom templates]]
* [[TechDraw_TemplateHowTo|Create custom templates]]
* [[Basic_TechDraw_Tutorial|Another TechDraw tutorial]]
* [[Basic_TechDraw_Tutorial|Another TechDraw tutorial]]
Line 139: Line 140:
}}
}}


<!--T:27-->
[[Category:Tutorials]]
</translate>
</translate>
[[Category:Tutorials{{#translation:}}]]

Latest revision as of 19:36, 4 November 2023

When your model cannot be printed or milled directly by a machine, for example it is too big (a building) or it requires manual assembly after the pieces are ready, you will usually need to explain to another person how to do it. In technical fields (engineering, architecture, etc), this is usually done with drawings. The drawings are handed over to the person responsible for assembling the final product and will explain how to do it.

Typical examples are Ikea instructions, architectural drawings, and blueprints. These drawings usually contain not only the drawing itself, but also many annotations, such as text, dimensions, numbers, and symbols that will help other people to understand what needs to be done and how.

In FreeCAD, the workbench responsible for making such drawings is the TechDraw Workbench.

The TechDraw Workbench allows you to create sheets, which can be blank or use a pre-made template to already have a series of items on the sheet, such as borders and a title. On these sheets, you can then place views of the 3D objects you modeled previously, and configure how these views will appear on the sheet. You can also place all kinds of annotations on the sheet, such as dimensions, texts, and other symbols commonly used in technical drawings.

Drawing sheets, once complete, can be printed or exported as SVG, PDF or DXF files.

In the following exercise, we will see how to create a simple drawing of a chair model found in the FreeCAD library (Industrial Design → Chairs → IkeaLikeChair). The FreeCAD library can easily be added to your FreeCAD installation (refer to the installing chapter of this manual), or you can simply download the model from the library webpage, or via the direct link provided at the bottom of this chapter.

  • Load the IkeaLikeChair file from the library. You can choose between the .FCStd version, which will load the full modeling history, or the .step version, which will create only one object, without the history. Since we won't need to model any further now, it is best to choose the .step version, as it will be easier to manipulate.

  • Switch to the TechDraw Workbench
  • Press the TechDraw PageTemplate button.
  • Select the A4_Portrait_ISO7200TD template. A new tab will open in your FreeCAD window, showing the new page.
  • In the tree view (or in the model tab), select the chair model. It will most likely be named something like "Open CASCADE STEP translator."
  • Press the TechDraw View button.
  • A View object will be created on our page. Select the view object in the tree view, and then give the view the following properties in the data tab of the combo view:
    • Under the Base category:
      • X: 70 mm
      • Y: 120 mm
      • Rotation: 0
      • Scale: 0.1
    • Under the Projection category (hit the drop down arrow to modify the x, y, and z components of these properties individually):
      • Direction: [0 0 1]
      • XDirection: [0 -1 0] (Change the y field first, then the x field)
  • We now have a nice top view of our chair. Hit the TechDraw ToggleFrame button to turn the View frames, labels, and vertices off.

  • Let's repeat the operation twice, to create two more views. We will set their X and Y values, which indicate the position of the view on the page, in order to show them apart from the top view, and their direction, to create different view orientations. Give each new view the following properties:
    • View001 (front view): X: 70, Y: 220, Scale: 0.1, Rotation: 0, Direction: (-1,0,0), XDirection: (0,-1,0)
    • View002 (side view): X: 150, Y: 220, Scale: 0.1, Rotation: 0, Direction: (0,-1,0), XDirection: (1,0,0)
  • After that, we obtain the following page:

  • Note that there may be easier ways to get the views that you want. You can simply rotate the 3D view of your model, and once you have the view you want, select the model in the tree view and hit New View. This will automatically insert a view with the desired rotation and direction properties. You can also use the TechDraw ProjectionGroup tool.
  • We can tweak the aspect of our views if we want, for example we can change their Line Width property (under the View tab in the Combo View) to 0.5.

We will now place dimensions and indications on our drawing. There are two ways to add dimensions to a model: one is placing the dimensions inside the 3D model, using the Dimension tool of the Draft Workbench, and then placing a view of these dimensions on our sheet with the TechDraw DraftView tool. The other is to do things directly on the TechDraw sheet. We'll use the latter method.

  • Hit the Toggle button to turn the vertices on.
  • Use Ctrl + Left Mouse Click to select the two vertices you want to measure the distance between.
  • Hit the TechDraw LengthDimension button.


  • We will now place the two callouts shown in the image above, using the TechDraw Balloon tool.

  1. Looking at the Page in the 3D view window, select the View to which the Balloon will be attached, as shown in the image above.
  2. Press the Balloon button.
  3. The cursor is now displayed as a balloon icon. Click on the page to place the balloon origin at the desired position.
  4. The balloon bubble may be dragged to the desired position.
  5. Change the balloon properties by double clicking the balloon label or the balloon object in the tree view. This will open the Balloon Task dialog. Set the Value field to the desired text and change the Symbol drop-down menu selection to None
  6. Press OK
  7. Repeat the operation for the second callout.
  • We will now fill in the sheet title block.
    • Make sure that the View frames, labels, and vertices are visible. If not, hit the Toggle button.
    • Edit the text in each section of the sheet title block by clicking on the small green square on the left side of the text.

Our page can now be exported to SVG for further work in graphical applications like Inkscape or to DXF. Select the page in the tree view and then select menu File → Export. The DXF format is importable in almost all existing 2D CAD applications. TechDraw pages can also be directly printed or exported to PDF.

Downloads

Read more

Watch tutorials