228 lines
36 KiB
HTML
228 lines
36 KiB
HTML
<html><head><title>Creating a simple part with PartDesign/it</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Creating a simple part with PartDesign/it</h1></div>
|
||
|
||
<div id="mw-content-text" lang="it" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" style="width: 230px; float: right; margin-left: 1em">
|
||
<tr>
|
||
<td class="ctTitle">
|
||
<h3><span class="mw-headline" id="Tutorial"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Tutorial</span></h3>
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Argomento
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">Modellazione
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Livello di difficoltà
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">Base
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Tempo di esecuzione
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">1 ora
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Autore
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">GlouGlou
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Versione di FreeCAD
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">0.17 o superiore
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">File di esempio
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven"><a rel="nofollow" class="external text" href="https://github.com/FreeCAD/Examples/blob/master/Creating_a_simple_PartDesign_Body.FCStd">Creating a simple PartDesign Body.FCStd</a>
|
||
</td></tr>
|
||
<tr>
|
||
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
||
<ul>
|
||
<li class="toclevel-1"><a href="#Tutorial"><span class="tocnumber">1</span> <span class="toctext">Tutorial</span></a></li>
|
||
<li class="toclevel-1 tocsection-1"><a href="#Using_Part_Design_workbench_v0.17.2C_tracing_the_sketch"><span class="tocnumber">2</span> <span class="toctext">Using Part Design workbench v0.17, tracing the sketch</span></a></li>
|
||
<li class="toclevel-1 tocsection-2"><a href="#Using_Pad_and_Pocket_features"><span class="tocnumber">3</span> <span class="toctext">Using Pad and Pocket features</span></a></li>
|
||
<li class="toclevel-1 tocsection-3"><a href="#Changing_color_and_transparency"><span class="tocnumber">4</span> <span class="toctext">Changing color and transparency</span></a></li>
|
||
<li class="toclevel-1 tocsection-4"><a href="#Manually_move_the_part"><span class="tocnumber">5</span> <span class="toctext">Manually move the part</span></a></li>
|
||
<li class="toclevel-1 tocsection-5"><a href="#Displaying_reference_dimensions_in_the_sketch"><span class="tocnumber">6</span> <span class="toctext">Displaying reference dimensions in the sketch</span></a></li>
|
||
<li class="toclevel-1 tocsection-6"><a href="#Editing_one_or_more_dimensions"><span class="tocnumber">7</span> <span class="toctext">Editing one or more dimensions</span></a></li>
|
||
<li class="toclevel-1 tocsection-7"><a href="#Center_the_hole"><span class="tocnumber">8</span> <span class="toctext">Center the hole</span></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
</td></tr></table>
|
||
<p><br />
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_Vue.PNG" class="image"><img alt="GGTuto1 Vue.PNG" src="GGTuto1_Vue.PNG" width="744" height="544" /></a></div></div>
|
||
<p>Questo tutorial ha lo scopo di insegnare ai principianti di FreeCAD alcune funzioni di base attraverso un esempio.
|
||
Dopo aver scoperto alcune nozioni di base nella <a href="https://www.freecadweb.org/wiki/index.php?title=User_hub/it" title="User hub/it">Documentazione utente</a> è possibile disegnare una prima parte passo dopo passo.
|
||
</p><p><b>In questo tutorial ci occuperemo in particolare di:</b>
|
||
</p>
|
||
<ul><li> Usare l'ambiente <a href="https://www.freecadweb.org/wiki/index.php?title=PartDesign_Workbench/it" title="PartDesign Workbench/it">Part Design v0.17per</a> disegnare degli schizzi.</li>
|
||
<li> Usare le funzioni Pad e Pocket.</li>
|
||
<li> Cambiare il colore e la trasparenza.</li>
|
||
<li> Spostare la parte manualmente.</li>
|
||
<li> Visualizzare le quote di riferimento nello schizzo.</li>
|
||
<li> Modificare una o più dimensioni.</li>
|
||
<li> Usare della geometria esterna e usare un piano di riferimento per centrare un foro.</li></ul>
|
||
<h3><span class="mw-headline" id="Using_Part_Design_workbench_v0.17.2C_tracing_the_sketch">Using <a href="PartDesign_Workbench.html" title="PartDesign Workbench">Part Design workbench v0.17</a>, tracing the sketch</span></h3>
|
||
<p>Create a new document and select the Part Design workbench. Freecad will start with toolbars at the top, the combo view to the left and the 3D view at the right.
|
||
</p><p><b>Create body:</b>
|
||
</p><p>Press <a href="https://www.freecadweb.org/wiki/index.php?title=File:PartDesign_Body.png" class="image"><img alt="PartDesign Body.png" src="32px-PartDesign_Body.png" width="32" height="32" srcset="/wiki/images/thumb/5/5e/PartDesign_Body.png/48px-PartDesign_Body.png 1.5x, /wiki/images/5/5e/PartDesign_Body.png 2x" /></a> <a href="PartDesign_Body.html" title="PartDesign Body">Create body</a>. A body is a container in which Part Design features are sequentially arranged. It contains its own reference axes and planes. It will be highlighted in light blue, which means that it is active, that is to say that we can edit shapes. If it's not highlighted, double-click it. Let's take the opportunity to rename it.
|
||
</p><p><b>Rename body:</b>
|
||
</p><p>Click on the body with the right mouse button. Select Rename and type a name, for example "Body part1" and press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Enter</span> to validate.
|
||
</p><p><b>Create sketch:</b>
|
||
</p><p>We will now trace the sketch which defines the general shape of the part. A sketch is a diagram describing a profile to be applied to a feature in order to produce a shape. It can be either "positive" or "additive", like a pad for example; or "negative" or "subtractive", like a pocket.
|
||
</p><p>Here, since the part's general shape is regular along the Y axis, we will create the Pad along this axis.
|
||
</p><p>Press <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_NewSketch.png" class="image"><img alt="Sketcher NewSketch.png" src="32px-Sketcher_NewSketch.png" width="32" height="32" srcset="/wiki/images/thumb/4/46/Sketcher_NewSketch.png/48px-Sketcher_NewSketch.png 1.5x, /wiki/images/4/46/Sketcher_NewSketch.png 2x" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=Sketcher_NewSketch/fr" title="Sketcher NewSketch/fr">New sketch</a>. FreeCAD then offers to attach this sketch to a plane of the Body; select the XZ plane and press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>. The interface now changes, the Sketcher now takes over and its toolbars appear over the 3D view. We find ourselves on the XZ plane of the body to trace the sketch.
|
||
</p><p>To aid with sketching, set the following options in "Edit controls" in the Tasks panel to the left:
|
||
</p>
|
||
<ul><li> Show grid: checked</li>
|
||
<li> Grid size: 10 mm</li>
|
||
<li> Auto constraints: checked</li></ul>
|
||
<p>We will trace the following sketch:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_0.PNG" class="image"><img alt="GGTuto1 0.PNG" src="GGTuto1_0.PNG" width="830" height="478" /></a></div></div>
|
||
<p><b>Let's start with the first segments:</b>
|
||
</p><p>Select the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_Line.png" class="image"><img alt="Sketcher Line.png" src="32px-Sketcher_Line.png" width="32" height="32" srcset="/wiki/images/thumb/7/72/Sketcher_Line.png/48px-Sketcher_Line.png 1.5x, /wiki/images/7/72/Sketcher_Line.png 2x" /></a> <a href="Sketcher_Line.html" title="Sketcher Line">Line</a> tool. Click on the origin point, first making sure that a small red dot appears besides and to the right of the mouse pointer. Click next on the X axis about 10 squares to the right or at about 100 mm. If the segment is not exactly 100 mm at this point, it does not matter, we will later give it a fixed dimension that will constrain this length.
|
||
</p><p>Do the same for the other segments, try to aim at the points that you have created which must light up in yellow. Which means that these points will be coincident. You should get pretty much this:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_1.PNG" class="image"><img alt="GGTuto1 1.PNG" src="GGTuto1_1.PNG" width="769" height="467" /></a></div></div>
|
||
<p>Note the small red lines above and beside the segments you have drawn: these are horizontal and vertical constraints. Your lines are forced to stay either horizontal or vertical. Note also the symbol in the form of a small arc on the left: it means that the point is fixed to the Z axis.
|
||
</p><p>Now pick different line segments with the left mouse button and while keeping the left button pressed, drag the mouse to try to move them: some are free, others not.
|
||
</p><p><b>Applying constraints:</b>
|
||
</p><p>At the top of the combo box, in the Tasks panel, you can read the number of degrees of freedom of the already sketched elements: it must be about 6, the objective of the constraints is to reduce the number of degrees of freedom to 0.
|
||
</p><p>The slanted line should be free to rotate at this time: we will give it an angle constraint to fix it.
|
||
</p><p>Click on the slanted line, then the bottom line; once selected these lines will turn dark green; then click the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_InternalAngle.png" class="image"><img alt="Constraint InternalAngle.png" src="32px-Constraint_InternalAngle.png" width="32" height="32" srcset="/wiki/images/thumb/7/75/Constraint_InternalAngle.png/48px-Constraint_InternalAngle.png 1.5x, /wiki/images/7/75/Constraint_InternalAngle.png 2x" /></a> <a href="Constraint_InternalAngle.html" title="Constraint InternalAngle">Constraint_InternalAngle</a> icon.
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_2.PNG" class="image"><img alt="GGTuto1 2.PNG" src="GGTuto1_2.PNG" width="748" height="453" /></a></div></div>
|
||
<p>Enter a value of 30°. Both lines have a fixed angle now. The constraint was created to the left of the sketch; with the mouse, move it inside the profile.
|
||
</p><p>We will now constrain the bottom line with a dimension: select it then click <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_HorizontalDistance.png" class="image"><img alt="Constraint HorizontalDistance.png" src="32px-Constraint_HorizontalDistance.png" width="32" height="32" srcset="/wiki/images/thumb/5/57/Constraint_HorizontalDistance.png/48px-Constraint_HorizontalDistance.png 1.5x, /wiki/images/5/57/Constraint_HorizontalDistance.png 2x" /></a> <a href="Constraint_HorizontalDistance.html" title="Constraint HorizontalDistance"> Horizontal distance</a>.
|
||
</p><p>Enter a value of 100 mm. The vertical line on the right now aligns exactly with the grid's 10th square to the right of the origin.
|
||
</p><p>Let's set the overall height to the profile by selecting the highest point on the left then the origin point. Click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_VerticalDistance.png" class="image"><img alt="Constraint VerticalDistance.png" src="32px-Constraint_VerticalDistance.png" width="32" height="32" srcset="/wiki/images/thumb/b/ba/Constraint_VerticalDistance.png/48px-Constraint_VerticalDistance.png 1.5x, /wiki/images/b/ba/Constraint_VerticalDistance.png 2x" /></a> <a href="Constraint_VerticalDistance.html" title="Constraint VerticalDistance">Vertical Distance</a>, enter a value of 50 mm.
|
||
</p><p>Do the same for the horizontal length of the sloped line with another 50 mm vertical distance contraint.
|
||
</p><p>Move the dimensions away from the profile for better visibility. You should now have something like this:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_3.PNG" class="image"><img alt="GGTuto1 3.PNG" src="GGTuto1_3.PNG" width="942" height="596" /></a></div></div>
|
||
<p>Notice that the number of degrees of freedom reduced to 2. These are the ends still open.
|
||
</p><p><b>Tracing the arc</b>
|
||
</p><p>Click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_Arc.png" class="image"><img alt="Sketcher Arc.png" src="32px-Sketcher_Arc.png" width="32" height="32" srcset="/wiki/images/thumb/1/15/Sketcher_Arc.png/48px-Sketcher_Arc.png 1.5x, /wiki/images/1/15/Sketcher_Arc.png 2x" /></a> <a href="Sketcher_Arc.html" title="Sketcher Arc">Arc</a>, position the center at approximately x = 80 y = 30; then click to define the first starting point of the arc on the upper horizontal line's right end point; then click to define the end of the arc to the right vertical line's upper end point (make sure the points are highlighted in yellow before clicking).
|
||
</p><p>Give the radius a radius constraint: select the arc, then click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Radius.png" class="image"><img alt="Constraint Radius.png" src="32px-Constraint_Radius.png" width="32" height="32" srcset="/wiki/images/thumb/5/58/Constraint_Radius.png/48px-Constraint_Radius.png 1.5x, /wiki/images/5/58/Constraint_Radius.png 2x" /></a> <a href="Constraint_Radius.html" title="Constraint Radius">Radius</a> then enter a value of 20 mm.
|
||
</p><p>Now let's make the arc tangent to the lines it's connected to: select the arc, then the top line, then click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Tangent.png" class="image"><img alt="Constraint Tangent.png" src="32px-Constraint_Tangent.png" width="32" height="32" srcset="/wiki/images/thumb/1/1a/Constraint_Tangent.png/48px-Constraint_Tangent.png 1.5x, /wiki/images/1/1a/Constraint_Tangent.png 2x" /></a> <a href="Constraint_Tangent.html" title="Constraint Tangent">Tangent</a>. A <i>Constraint substitution</i> message appears, click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>. Do the same for the tangent constraint on the other side of the arc.
|
||
</p><p>We proceeded in two stages to create the sketch, but we could also have traced the profile completely before constraining it fully.
|
||
</p><p><br />
|
||
<b>Fully constrained sketch:</b>
|
||
</p><p>If you worked well, you should get this:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_4.PNG" class="image"><img alt="GGTuto1 4.PNG" src="GGTuto1_4.PNG" width="695" height="473" /></a></div></div>
|
||
<p>The sketch has become green, which means that it is fully constrained. There is no longer any ambiguity, everything is perfectly defined. This is confirmed by the solver message at the top left. Also note that the center of the arc has moved slightly, indeed giving these last three constraints, FreeCAD has calculated the true position of the center.
|
||
</p><p>If your sketch is not yet green, one or more points are not coincident (2 points are superimposed but not coincident). Make a small window (capture window) around a point, and click <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_PointOnPoint.png" class="image"><img alt="Constraint PointOnPoint.png" src="32px-Constraint_PointOnPoint.png" width="32" height="32" srcset="/wiki/images/thumb/e/e3/Constraint_PointOnPoint.png/48px-Constraint_PointOnPoint.png 1.5x, /wiki/images/e/e3/Constraint_PointOnPoint.png 2x" /></a> <a href="Constraint_PointOnPoint.html" title="Constraint PointOnPoint">Coincident</a>.
|
||
</p><p>Proceed in the same way with all the points.
|
||
</p><p>If your sketch is still not green, verify that all lines (but the slanted one) have either a <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Horizontal.png" class="image"><img alt="Constraint Horizontal.png" src="32px-Constraint_Horizontal.png" width="32" height="32" srcset="/wiki/images/thumb/3/3f/Constraint_Horizontal.png/48px-Constraint_Horizontal.png 1.5x, /wiki/images/3/3f/Constraint_Horizontal.png 2x" /></a> <a href="Constraint_Horizontal.html" title="Constraint Horizontal">Horizontal</a> or <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Vertical.png" class="image"><img alt="Constraint Vertical.png" src="32px-Constraint_Vertical.png" width="32" height="32" srcset="/wiki/images/thumb/d/d6/Constraint_Vertical.png/48px-Constraint_Vertical.png 1.5x, /wiki/images/d/d6/Constraint_Vertical.png 2x" /></a> <a href="Constraint_Vertical.html" title="Constraint Vertical">Vertical</a> constraint, and add if necessary.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Using_Pad_and_Pocket_features">Using Pad and Pocket features</span></h3>
|
||
<p>Click on <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Close</span> in the combo box, at the top left corner, the Part Design workbench is automatically activated again.
|
||
</p><p>Click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-axonometric.png" class="image"><img alt="View-axonometric.png" src="24px-View-axonometric.png" width="24" height="24" srcset="/wiki/images/thumb/0/05/View-axonometric.png/36px-View-axonometric.png 1.5x, /wiki/images/thumb/0/05/View-axonometric.png/48px-View-axonometric.png 2x" /></a> <b>Axonometric view</b> then <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-zoom-all.png" class="image"><img alt="View-zoom-all.png" src="24px-View-zoom-all.png" width="24" height="26" srcset="/wiki/images/thumb/7/7b/View-zoom-all.png/36px-View-zoom-all.png 1.5x, /wiki/images/7/7b/View-zoom-all.png 2x" /></a> <a href="Std_ViewFitAll.html" title="Std ViewFitAll">Fit all</a>, which gives a centered 3D isometric view.
|
||
</p><p>Click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:PartDesign_Pad.png" class="image"><img alt="PartDesign Pad.png" src="32px-PartDesign_Pad.png" width="32" height="32" srcset="/wiki/images/thumb/7/7e/PartDesign_Pad.png/48px-PartDesign_Pad.png 1.5x, /wiki/images/7/7e/PartDesign_Pad.png 2x" /></a> <a href="PartDesign_Pad.html" title="PartDesign Pad">Pad</a>, enter a length of 30 mm; check the <b>Reversed</b> box to reverse the direction of the Pad. Click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>, the shape is completed.
|
||
</p><p>Note that the shape created forms a solid.
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_5.PNG" class="image"><img alt="GGTuto1 5.PNG" src="GGTuto1_5.PNG" width="677" height="570" /></a></div></div>
|
||
<p><b>Creating the hole</b>
|
||
</p><p>Click on the top (square) side of the part and click the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_NewSketch.png" class="image"><img alt="Sketcher NewSketch.png" src="32px-Sketcher_NewSketch.png" width="32" height="32" srcset="/wiki/images/thumb/4/46/Sketcher_NewSketch.png/48px-Sketcher_NewSketch.png 1.5x, /wiki/images/4/46/Sketcher_NewSketch.png 2x" /></a> icon to create a new sketch. FreeCAD creates a new sketch attached to this face. So we are on a plane parallel to the absolute plane XY, but offset in height from the height of the piece, i.e. 50 mm.
|
||
</p><p>You can activate a 3D view <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-axonometric.png" class="image"><img alt="View-axonometric.png" src="24px-View-axonometric.png" width="24" height="24" srcset="/wiki/images/thumb/0/05/View-axonometric.png/36px-View-axonometric.png 1.5x, /wiki/images/thumb/0/05/View-axonometric.png/48px-View-axonometric.png 2x" /></a> or stay in top view <a href="https://www.freecadweb.org/wiki/index.php?title=File:View-top.png" class="image"><img alt="View-top.png" src="24px-View-top.png" width="24" height="24" srcset="/wiki/images/thumb/a/a2/View-top.png/36px-View-top.png 1.5x, /wiki/images/thumb/a/a2/View-top.png/48px-View-top.png 2x" /></a>.
|
||
</p><p>Note that the origin of this new sketch is that of the body. They may be different, but here are confounded with the absolute origin.
|
||
</p><p>With the <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_Circle.png" class="image"><img alt="Sketcher Circle.png" src="32px-Sketcher_Circle.png" width="32" height="32" srcset="/wiki/images/thumb/d/da/Sketcher_Circle.png/48px-Sketcher_Circle.png 1.5x, /wiki/images/d/da/Sketcher_Circle.png 2x" /></a> <a href="Sketcher_Circle.html" title="Sketcher Circle">Circle</a> tool, click roughly in the center of the face and make a circle of any radius.
|
||
</p><p>Select the circle then <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Radius.png" class="image"><img alt="Constraint Radius.png" src="32px-Constraint_Radius.png" width="32" height="32" srcset="/wiki/images/thumb/5/58/Constraint_Radius.png/48px-Constraint_Radius.png 1.5x, /wiki/images/5/58/Constraint_Radius.png 2x" /></a> <a href="Constraint_Radius.html" title="Constraint Radius">Radius</a>, enter a value of 5 mm.
|
||
</p><p>Select the center of the circle then <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_ConstrainLock.png" class="image"><img alt="Sketcher ConstrainLock.png" src="32px-Sketcher_ConstrainLock.png" width="32" height="32" srcset="/wiki/images/thumb/6/6c/Sketcher_ConstrainLock.png/48px-Sketcher_ConstrainLock.png 1.5x, /wiki/images/6/6c/Sketcher_ConstrainLock.png 2x" /></a> <a href="Constraint_Lock.html" title="Constraint Lock">Lock</a>, double click on the horizontal dimension and enter -65 mm (here we indicate a position relative to the origin of the sketch). Do the same for the vertical dimension (-15 mm). The circle takes its correct position and the sketch must be green, it is fully constrained:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_6.PNG" class="image"><img alt="GGTuto1 6.PNG" src="GGTuto1_6.PNG" width="604" height="516" /></a></div></div>
|
||
<p>Close the sketch and click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:PartDesign_Pocket.png" class="image"><img alt="PartDesign Pocket.png" src="32px-PartDesign_Pocket.png" width="32" height="32" srcset="/wiki/images/thumb/6/67/PartDesign_Pocket.png/48px-PartDesign_Pocket.png 1.5x, /wiki/images/6/67/PartDesign_Pocket.png 2x" /></a> <a href="PartDesign_Pocket.html" title="PartDesign Pocket">Pocket</a>.
|
||
</p><p>Pocket is a feature called "subtractive", it removes material from our part, here in the form of a cylinder since the sketch is a circle. Set "Through all" to completely cut the part. Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Changing_color_and_transparency">Changing color and transparency</span></h3>
|
||
<p>It is possible to change the color of the part, it is often useful to distinguish a part among others. The transparency of the piece can also be modified, which is useful for visualizing its internals.
|
||
</p><p>Select the body and go to the lower part of the left display, select the View tab, and click on the gray square of "Shape Color" and select another color then click OK. Next change the value of Transparency, for example to 50 and press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Enter</span> to complete (0 = totally opaque, 100 = totally transparent).
|
||
</p><p>The hole is now visible inside the part. This is often useful for seeing the hidden or internal faces of the model.
|
||
</p><p>You can also vary "Line Color" and "Line Width" to change the line thickness and the color of the part outline.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Manually_move_the_part">Manually move the part</span></h3>
|
||
<p>Go to the <i>View</i> menu and select <i>Toggle axis cross</i>. These are the absolute axes. You should see in the 3D view, the 3 axes X, Y, Z in different colors. This landmark will help us to orient ourselves in space. This landmark is fixed and immutable, it is either the view that rotates or the object that rotates in this space.
|
||
</p><p>Select the Body, in the lower part of the combined view on the left, you can see this (the <i>Data</i> tab needs to be on the foreground, you may need to click on the <i>Data</i> tab to make it visible):
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_10.PNG" class="image"><img alt="GGTuto1 10.PNG" src="GGTuto1_10.PNG" width="550" height="302" /></a></div></div>
|
||
<p>Click on the three small dots (if they don't appear, click on the <b>Placement</b> field), this opens a new dialog in the Tasks panel. Using the arrows you can vary the position and angles of the part. It is actually the position of the body (so its origin) that moves in space, the orientation of the 3D view does not change.
|
||
</p><p>Another method: in the combo view, select the Body and click on the right button of the mouse, then select <i>Transform</i>. A view like this appears:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_11.PNG" class="image"><img alt="GGTuto1 11.PNG" src="GGTuto1_11.PNG" width="769" height="577" /></a></div></div>
|
||
<p>Hold and drag the cones along the axes or the spheres to move the piece (the body) in all directions.
|
||
</p><p>Validate. Then reset angles and coordinates to 0.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Displaying_reference_dimensions_in_the_sketch">Displaying reference dimensions in the sketch</span></h3>
|
||
<p>It may be useful to know the dimensions of some parts of the sketch, from the internal calculation of FreeCAD. It can be used just for reference, or use them later to set other dimensions for example.
|
||
</p><p>Double click on the first sketch, then click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_ToggleConstraint.png" class="image"><img alt="Sketcher ToggleConstraint.png" src="32px-Sketcher_ToggleConstraint.png" width="32" height="32" srcset="/wiki/images/thumb/a/a9/Sketcher_ToggleConstraint.png/48px-Sketcher_ToggleConstraint.png 1.5x, /wiki/images/a/a9/Sketcher_ToggleConstraint.png 2x" /></a> <a href="Sketcher_ToggleConstraint.html" title="Sketcher ToggleConstraint">Toggle Constraint</a>. From now on, we can create reference dimensions rather than dimensional constraints: they will be blue and will have no influence on the shapes of the sketch from which they come, they are calculated automatically.
|
||
</p><p>You can display these dimensions for example:
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_7.PNG" class="image"><img alt="GGTuto1 7.PNG" src="GGTuto1_7.PNG" width="922" height="671" /></a></div></div>
|
||
<p>We can see for example that the arc has a length of 20 since it's tangent with the edges.
|
||
</p><p>We can also see that FreeCAD calculates the left face (50-50xTAN 30 °), as well as the distance dimension of the axis of the arc with the origin.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Editing_one_or_more_dimensions">Editing one or more dimensions</span></h3>
|
||
<p>During modeling, you can vary the dimensions of the model. It's very simple: for the thickness of the piece, double-click Pad, then enter a new value, 40mm for example. In the lower part of the combo view, you can change this value as well. Validate, the shape of the object has changed.
|
||
</p><p>Do the same for the total length of the piece: double-click on Sketch, then double-click on the 100 mm dimensional constraint, change it to 110 mm then validate.
|
||
</p><p>We can see that the piece was enlarged, but the hole is no longer centered in the middle of the top face. That's because it has been constrained to the sketch origin. Which does not necessarily correspond to what one would like, the hole should remain in the center, whatever the size of the face.
|
||
</p><p><br />
|
||
</p>
|
||
<h3><span class="mw-headline" id="Center_the_hole">Center the hole</span></h3>
|
||
<p><b>First method using external geometry.</b>
|
||
</p><p>Edit again the sketch of the hole and erase its horizontal and vertical distance constraints.
|
||
</p><p>Then click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_External.png" class="image"><img alt="Sketcher External.png" src="32px-Sketcher_External.png" width="32" height="32" srcset="/wiki/images/thumb/b/b5/Sketcher_External.png/48px-Sketcher_External.png 1.5x, /wiki/images/b/b5/Sketcher_External.png 2x" /></a> <a href="Sketcher_External.html" title="Sketcher External">External Geometry</a>.
|
||
</p><p>We will now create two lines in the sketch, but extracted from a shape (or feature) external to this one and previously defined: that of the Pad.
|
||
</p><p>Click on a vertical edge at the top of the part. For example, the edge slope side.
|
||
</p><p>A new magenta line will appear above the edge. Repeat for the other edge, on the rounded side.
|
||
</p><p>We can now use these lines (and especially their end points) to centre the circle, however we must add two construction lines: for example the diagonals.
|
||
</p><p>Click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_ToggleConstruction.png" class="image"><img alt="Sketcher ToggleConstruction.png" src="32px-Sketcher_ToggleConstruction.png" width="32" height="32" srcset="/wiki/images/thumb/4/4f/Sketcher_ToggleConstruction.png/48px-Sketcher_ToggleConstruction.png 1.5x, /wiki/images/4/4f/Sketcher_ToggleConstruction.png 2x" /></a> <a href="Sketcher_ToggleConstruction.html" title="Sketcher ToggleConstruction">Construction Mode</a>, we switch to construction mode: the lines will be blue and will be discarded outside of the sketch editing mode. They will allow to fix the center of the circle. Create the diagonals in the same way that you drew the first lines. Make sure all points are coincident.
|
||
</p><p>Then select the center of the circle, then the two blue diagonal lines and click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_PointOnObject.png" class="image"><img alt="Constraint PointOnObject.png" src="32px-Constraint_PointOnObject.png" width="32" height="32" srcset="/wiki/images/thumb/7/7d/Constraint_PointOnObject.png/48px-Constraint_PointOnObject.png 1.5x, /wiki/images/7/7d/Constraint_PointOnObject.png 2x" /></a> <a href="Constraint_PointOnObject.html" title="Constraint PointOnObject">Point on object</a>, the circle must be centred at the intersection of the diagonals, that is at the center of the face. The sketch must be green, completely constrained (it is essential). Note that besides the radius of the circle, it is no longer necessary to create dimensional constraints.
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_8.PNG" class="image"><img alt="GGTuto1 8.PNG" src="GGTuto1_8.PNG" width="875" height="655" /></a></div></div>
|
||
<p>Leave the sketch, we see that the circle is well centred. (The pocket feature was not deleted, but modified). If you change the dimensions of the part again, the thickness or the length, the circle will remain centered on the face.
|
||
</p><p><b>Avoid construction lines:</b>
|
||
</p><p>It is often possible to avoid creating construction lines. You can edit the sketch again, erase the construction lines and use a <a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Symmetric.png" class="image"><img alt="Constraint Symmetric.png" src="32px-Constraint_Symmetric.png" width="32" height="32" srcset="/wiki/images/thumb/b/be/Constraint_Symmetric.png/48px-Constraint_Symmetric.png 1.5x, /wiki/images/b/be/Constraint_Symmetric.png 2x" /></a> <a href="Constraint_Symmetric.html" title="Constraint Symmetric">Symmetric constraint</a> between the two opposite vertices of the external geometry lines and the centre of the circle (select points in this order):
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_12.PNG" class="image"><img alt="GGTuto1 12.PNG" src="GGTuto1_12.PNG" width="867" height="660" /></a></div></div>
|
||
<p>We get exactly the same resultat for the position of the hole. In fact, thanks to the constraints available in the Sketcher workbench, there are many possible methods. This example shows that it is often better to choose the simplest method, thus limiting the number of objects created as well as the errors that might result.
|
||
</p><p><b>Second method using a datum plane.</b>
|
||
</p><p>Here is another, faster method that is possible since version 0.17: the use of a datum plane and its attachment.
|
||
</p><p>Start by erasing the "Pocket" function as well as the sketch of the hole. Select the top face and click <a href="https://www.freecadweb.org/wiki/index.php?title=File:PartDesign_Point.png" class="image"><img alt="PartDesign Point.png" src="32px-PartDesign_Point.png" width="32" height="32" srcset="/wiki/images/thumb/8/80/PartDesign_Point.png/48px-PartDesign_Point.png 1.5x, /wiki/images/8/80/PartDesign_Point.png 2x" /></a> <a href="PartDesign_Point.html" title="PartDesign Point">Datum point</a>: create a datum point in the active body. The attachment mode chosen must be "Center of mass".
|
||
</p><p>As the face is rectangular, its center of mass corresponds to the center of its diagonals. Validate, and a datum point is created.
|
||
</p><p>Select the top face again and while holding down the CTRL key, select the point you just created in the Model tree, release CTRL and click <a href="https://www.freecadweb.org/wiki/index.php?title=File:PartDesign_Plane.png" class="image"><img alt="PartDesign Plane.png" src="32px-PartDesign_Plane.png" width="32" height="32" srcset="/wiki/images/thumb/4/4a/PartDesign_Plane.png/48px-PartDesign_Plane.png 1.5x, /wiki/images/4/4a/PartDesign_Plane.png 2x" /></a> <a href="PartDesign_Plane.html" title="PartDesign Plane">Datum plane</a>. A reference plane is created with the origin of the point. Click OK.
|
||
</p><p>It is now very easy to center the circle! Select from the Model tree or in the 3D view the plane you created, and click on <a href="https://www.freecadweb.org/wiki/index.php?title=File:Sketcher_NewSketch.png" class="image"><img alt="Sketcher NewSketch.png" src="32px-Sketcher_NewSketch.png" width="32" height="32" srcset="/wiki/images/thumb/4/46/Sketcher_NewSketch.png/48px-Sketcher_NewSketch.png 1.5x, /wiki/images/4/46/Sketcher_NewSketch.png 2x" /></a> <a href="Sketcher_NewSketch.html" title="Sketcher NewSketch">Create a sketch</a>, a sketch is created with as origin, the origin of the plane. Then just trace the 5 mm radius circle on this origin, then validate (the sketch must be green imperatively).
|
||
</p><p>You get with "Pocket", as created previously, the hole and it will always be centered.
|
||
</p>
|
||
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:GGTuto1_9.PNG" class="image"><img alt="GGTuto1 9.PNG" src="GGTuto1_9.PNG" width="814" height="686" /></a></div></div>
|
||
<p>This tutorial is completed, save this file, you can have fun exploring various features. Change other dimensions, make other shapes, put other holes on other faces, it is when making mistakes that we progress!
|
||
</p><p>You can also continue with this other tutorial of a slightly more complicated part:
|
||
</p><p><a href="Basic_Part_Design_Tutorial_017.html" title="Basic Part Design Tutorial 017">Basic Part Design Tutorial 017</a>
|
||
</p>
|
||
<div style="clear:both"></div>
|
||
<p><br />
|
||
</p>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</div><div class="printfooter">
|
||
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Creating_a_simple_part_with_PartDesign/it&oldid=288145">http://www.freecadweb.org/wiki/index.php?title=Creating_a_simple_part_with_PartDesign/it&oldid=288145</a>"</div>
|
||
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
||
</div>
|
||
</div>
|
||
<div id="mw-navigation">
|
||
<h2>Navigation menu</h2>
|
||
|
||
</body></html> |