Sandbox:Piffpoof9a

Introduction
In this tutorial we will continue on from XXX. In the previous tutorial we used the Sketcher and the Part Design workbench to create a housing for a lock. This tutorial will make a key to fit the housing but will use the Part workbench so as to show how to bring these two different approached together into one model.



Problem Background
Nominally we're setting out to create a key for our lock housing from the previous tutorial. We will integrate the key which we produce with the Part workbench with objects created previously using the Sketcher and Part Design workbench.

One thing to realise is that there is no "geometry" or formulas that we can use to control the positioning of the different parts. We will place the key at the correct location, we will do this manually. Should the lock housing ever be moved, then the key would have to be moved manually at that time.

Our key will not be overly realistic as this tutorial is really focussing on producing results using more than one workbench.

We will make the key in 3 pieces: All of this will be done using the Part workbench.
 * the key shaft
 * the teeth of the key
 * the handle of the key

Preparation
FreeCAD has numerous facilities and features. To make our work easier in this tutorial, we need to make sure some of them are visible. From the menu bar at the top of the screen select the option. This will produce the Combo View which is a browser with two panes, one above the other. The upper pane has two tabs Model and Tasks - select Model. The lower pane also has two tabs View and Data - select Data.

Creating the Key Shaft

 * 1) Switch to the [[Image:Workbench_Part.svg‎‎|24px]] Part workbench.
 * 2) Click on [[Image:Document-new.svg‎‎|24px]] to create a new document.
 * 3) Click on [[Image:Part_Cylinder.svg|24 px]] Cylinder, a new cylinder will be created at the origin.
 * 4) In the Combo View click on the Cylinder and press.
 * 5) Now enter the text 'key shaft' and press.
 * 6) In the bottom pane of the Combo View, click to the left of the Placement, Angle, Axis and Position should become visible.
 * 7) Click to the left of Position, x, y, and z should become visible.
 * 8) In the y field either enter 10 or use the small arrows to the right to decrement the existing value (which will be 0).
 * 9) In the Radius field, enter 4.
 * 10) In the Height field, enter 100.
 * 11) Save your work:select the menu option, or click the [[Image:Document-save.svg‎‎|24px]] Save icon; or press -.

Creating the Key Teeth
First a bit of preparation before we model the teeth of the key.
 * 1) In the Combo View, click on the 'Sides' to select it.
 * 2) Press the  to toggle the visibility of the selected object - in this case it will make the object 'Sides' invisible.
 * 3) At any time, 'sides' can be made visible again by selecting it and pressing the  key.

With the 'sides' not being visible, we can now see into the lock housing so we can observe the modeling of the teeth of the key.
 * 1) Click on [[Image:Part_Box.svg|24 px]] Cube, a new cube will be created at the origin.
 * 2) In the Combo View click on the Cube and press.
 * 3) Now enter the text 'key teeth' and press.
 * 4) In the bottom pane of the Combo View, click to the left of the Placement, Angle, Axis and Position should become visible.
 * 5) Click to the left of Position, x, y, and z should become visible.
 * 6) In the z field either enter 5 or use the small arrows to the right to increment the existing value (which will be 0).
 * 7) In the x field, either enter -3  or use the small arrows to the right to decrement the existing value (which will be 0).
 * 8) In the y field either enter -10  or use the small arrows to the right to decrement the existing value (which will be 0).
 * 9) In the Length field, enter 6.
 * 10) In the Width field, enter 20.
 * 11) In the Height field, enter 25
 * 12) Save your work:select the menu option, or click the [[Image:Document-save.svg‎‎|24px]] Save icon; or press -.

To Do

 * Groups