Skip to content
You Start with one site
Amounts in Start with one site
Mechanical Engineering & Design · Course

Your first part: a hinge, from table to drawing

Lesson 0: start here 50 min read
Made with FreeCAD 1.1checked November 2026Newer version?
Stays the same
  • Sketches, constraints and degrees of freedom
  • Design intent: spreadsheet, sketch, feature, assembly
  • Part Design features: pad, pocket, revolve, fillet
  • Drawings from the model, not drawn by hand
May look different
  • Menu and toolbar places
  • The Assembly workbench, new in 1.0 and growing fast
  • Dialog layouts and default settings

A step looks different? Hover the toolbars, or use the menu of the workbench named in the step. The command name is the part that stays.

The ideas in this lesson do not depend on the version. Where a click moved, the lesson still names the command.

Found this useful?

A workshop cannot make a part from a picture. It needs sizes it can measure, a limit on each size, and a drawing that shows what the eye cannot see. Students lose marks, and companies lose money, on the same few things: a sketch that moves when a number changes, a pin that will not go in, a section with no hatching, a drawing with no fits. This lesson takes one small hinge through every step once, so that you meet each tool by name before the machines in the rest of the course.

#FreeCAD #TechDraw #GDT

The hinge you will make, turning on its joint. Two leaves and a pin, 40 × 60 mm open flat. Made in FreeCAD.

What you will make

A butt hinge, the kind on a cupboard door. Leaf A has two knuckles and is screwed to the frame; leaf B has the middle knuckle and is screwed to the door. A 5 mm pin is pressed into leaf A and leaf B turns on it, from closed (0°) to open flat (180°).

Size40 × 60 mm open, 2.5 mm leaves
Parts2 leaves, 1 pin
Pin⌀5, pressed in A, turns in B
Motionone revolute joint, 0 to 180°
DrawingA3, 3 views and section A-A
FilesFCStd, GLB, STEP, PDF

The same seven parts mark every CAD test in this course, and most university CAD exams: (a) a spreadsheet with aliases, (b) fully constrained sketches, (c) Part Design solids, (d) assembly joints that move, (e) a drawing with views, a section and an item list, (f) fits and GD&T, and (g) the exported files. The steps below follow that order.

What you need

  • FreeCAD 1.1, from freecad.org, on Windows, macOS or Linux. Every click below was checked in FreeCAD 1.1.4 (November 2026). FreeCAD 1.0 has the same tools, with small differences noted where they matter.
  • A three-button mouse helps. No CAD experience is needed.
  • Three five-minute pages, for when a word in steps 5 and 6 is new: Section views, Limits and fits, GD&T basics.

The whole way, once

A tour, then seven steps. Each step ends with a check: something you can see or read that tells you the step is right. Do not go on until it passes. A sketch that is not fully constrained today is a part that changes shape next week.

  1. Start0 The interfacea Spreadsheet
  2. Modelb Sketchesc Solids
  3. Moved Assembly
  4. Drawe Drawingf Fits, GD&Tg Export

Step 0: the interface tour

FreeCAD is a set of workbenches: each one is a toolbox for one kind of job. You change workbench from the list in the toolbar. This lesson uses five: Spreadsheet, Sketcher, Part Design, Assembly and TechDraw.

  1. Open FreeCAD. The Start page shows recent files and buttons for new documents. FreeCAD 1.1 Click Empty file, then File > Save As, name it Hinge.FCStd.
  2. On the left is the Combo View. Its Model tab holds the model tree (every object, in the order it was made) and under it the Property View (the numbers of the object you select). When a tool is running, its Tasks tab shows the task panel, with OK and Cancel at the top.
  3. Top right of the 3D view is the navigation cube: click a face to look straight at it, or the arrows to turn by 45°. Bottom right, the mouse icon chooses a navigation style. Choose one and keep it; Gesture and Blender are the common choices.
  4. FreeCAD 1.1 Edit > Preferences > General > Document: Maximum number of backup files 2. Each save keeps the old file as .FCBak, your way back if a file breaks. Ctrl+Z undoes, also inside a sketch.

Check: the model tree shows one item, Hinge, and the title bar says Hinge.FCStd. You can turn the empty view with the mouse and put it back with the cube.

Step a: the spreadsheet, with aliases

Every size of the hinge lives in one table. A sketch or a feature reads the size by its name, its alias, so a change in the table changes the whole model. One size is worked out, not typed: the three knuckles and two gaps must fill the leaf, so KnuckleLength is a formula.

  1. FreeCAD 1.1 Workbench Spreadsheet, then Spreadsheet > Create spreadsheet. Double-click Spreadsheet in the tree to open it.
  2. Type the table below: names in column A, values in column B, notes in column C. A value that starts with = is a formula.
  3. For each value in column B: right-click the cell, Properties > Alias, and type the name from column A.
A: name (alias)B: valueC: note
LeafLength40mm, along the pin
LeafWidth30mm, from the pin axis to the outer edge
LeafThickness2.5mm
KnuckleDia9mm, outside of a knuckle
PinDia5mm, basic size of the pin and the bores
KnuckleLength=(LeafLength - 2 * KnuckleGap) / 3mm, worked out: 13
KnuckleGap0.5mm, between knuckles and round them
HoleDia3.4mm, clearance hole for an M3 screw
CsinkDia6.4mm, countersink, 90°
HoleInset8mm, first hole from the leaf end
HolePitch24mm, between the two holes
HoleFromAxis18mm, hole centre from the pin axis
An alias must not be a unit name. FreeCAD reads l, m, h, s, g or t as litre, metre, hour, second, gram and tonne, so an alias like t for thickness fails with an error that does not say why. Use whole words: LeafThickness.

Check: the cell B7 shows 13, and clicking it shows the formula. Type 50 into LeafLength: B7 becomes 16.33. Put it back to 40.

Step b: the first sketch, fully constrained

A sketch is a flat drawing with constraints: rules such as horizontal, tangent or 30 mm. A sketch is fully constrained when the constraints fix every line, so nothing can move unless a number changes. The leaf's whole shape is one outline: the knuckle circle and the plate, drawn across the pin axis.

  1. Workbench Part Design. Part Design > Create body; rename it LeafA (key F2).
  2. Create sketch, choose YZ_Plane. The pin axis is the X axis, so this plane cuts across it.
  3. Draw an arc round the origin, then three lines: along the bottom from the arc to the left, up, and back along the top to meet the arc. The shape is a ring with a flat plate to its left.
  4. Add the constraints: arc centre on the origin; radius =Spreadsheet.KnuckleDia / 2; bottom line tangent to the arc; bottom and top lines horizontal; left line vertical; top line ends on the arc; horizontal distance origin to left line =Spreadsheet.LeafWidth; vertical distance along the left line =Spreadsheet.LeafThickness. Typing = in a constraint box opens the expression editor.

The tangent puts the leaf's back face exactly on the bottom of the knuckle. That face will sit on the frame, and step f makes it datum A.

Check: the Solver messages in the task panel read Fully constrained, and the lines change colour. If it says 1 degree of freedom, drag each line: the one that moves needs one more rule. If it says redundant, delete the last constraint you added.

Step c: the solids in Part Design

The three parts apart, open flat: the steel leaf A with two knuckles and two countersunk holes, the teal leaf B with one knuckle between them, and the gold pin drawn out to one side.
The three parts. Leaf A and leaf B are two bodies; the pin is a third.

Each feature takes the last solid and adds to it or cuts from it. The order is the tree, top to bottom.

  1. Pad the sketch: Length =Spreadsheet.LeafLength. A 40 mm bar, ring and plate.
  2. Relief for leaf B's knuckle. A new sketch on YZ_Plane; in its Attachment Offset set z to =Spreadsheet.LeafLength / 2, so it sits in the middle. One circle on the origin, radius =Spreadsheet.KnuckleDia / 2 + Spreadsheet.KnuckleGap. Pocket, Length =Spreadsheet.KnuckleLength + 2 * Spreadsheet.KnuckleGap, FreeCAD 1.1 side Symmetric. Use the side setting, not the older Symmetric to plane box: 1.1.4 forgets that box when the file is opened again.
  3. The bore. A circle on YZ_Plane, radius =Spreadsheet.PinDia / 2. Pocket, type Through all, side Symmetric.
  4. The screw holes. A sketch on XY_Plane with Attachment Offset z =-Spreadsheet.KnuckleDia / 2 + Spreadsheet.LeafThickness: the front face. One circle, centre =Spreadsheet.HoleInset from the origin along X and =Spreadsheet.HoleFromAxis along −Y. Hole: not threaded, Diameter =Spreadsheet.HoleDia, Through all, head cut Countersink, Diameter =Spreadsheet.CsinkDia, angle 90°.
  5. Linear Pattern of the hole: direction the sketch's horizontal axis, Length =Spreadsheet.HolePitch, Occurrences 2. Right-click it, Set tip. A pattern added after other features is not always the tip; then the body's shape is the one without it.
  6. Leaf B: a second body, LeafB. The same profile drawn to the right (plate toward +Y), padded the same. Two relief pockets of length =Spreadsheet.KnuckleLength + Spreadsheet.KnuckleGap, one at each end, leave the middle knuckle. The same bore, and holes at +Spreadsheet.HoleFromAxis.
  7. The pin: a third body, Pin. A circle of =Spreadsheet.PinDia / 2 on YZ_Plane, padded =Spreadsheet.LeafLength, a 0.3 mm Chamfer on both ends so it can be pressed in.

Check: no feature in the tree has a red mark. Select each body and read Volume with Part > Check geometry (with Shape content ticked): LeafA 3751.1 mm³, LeafB 3153.8 mm³, Pin 784.0 mm³. Change LeafLength to 50 and LeafWidth to 35: every part follows and every sketch stays fully constrained. Put them back.

Leaf A alone: a flat steel plate with two knuckles at the far edge, one at each end, and two countersunk holes.
Leaf A: two knuckles, two countersunk holes.
Leaf B alone: a teal plate with one knuckle in the middle of its edge and two countersunk holes.
Leaf B: the middle knuckle, relieved at both ends.

Step d: the assembly, with a joint that moves

An assembly places parts and says how they may move against each other. A joint takes away the motions the real part cannot make. A pin in a hole leaves one: turning about the axis. That is a revolute joint.

  1. Workbench Assembly. FreeCAD 1.1 Assembly > Create Assembly, then Insert Component: LeafA, LeafB, Pin.
  2. Select LeafA, Toggle Grounded. It is the frame; it does not move.
  3. Fixed joint, the pin pressed into leaf A: select the circular edge at the end of leaf A's bore, then the pin's end edge (the small circle inside its chamfer).
  4. Revolute joint, leaf B on the pin axis: select the bore edge at the end of leaf A's first knuckle, then the bore edge at the start of leaf B's knuckle. In the task panel set Offset to −0.5 mm, the knuckle gap. If leaf B jumps the wrong way, use Reverse.

Check: drag leaf B with the mouse; it should move as in the loop at the top of this page. It turns about the pin and does nothing else; the pin and leaf A do not move. From 0° to 180°, no part overlaps another and the leaves never come closer than 0.5 mm.

Step e: the drawing, with a section through the pin

A drawing gives the views a workshop works from. Three views show the outside; a section view shows the pin inside the knuckles, which no outside view can.

  1. Workbench TechDraw. Insert Page using Template: ISO/A3_Landscape_ISO5457_advanced.svg. Double-click the title block texts to fill them in.
  2. Select the three bodies in the tree. Insert Projection Group: Projection First angle (ISO, used in Kenya and most of Europe and Asia), views Front, Left, Top, Scale custom 2.
  3. Select the front view. Insert Section View. Arrow Down (you look toward leaf A), plane through the pin axis (Y 0), symbol A, scale 3.
  4. Hatching: in the section's properties set Cut Surface Display to Hide. Then select a cut face of leaf A, Apply Geometric Hatch to Face, pattern Diagonal4; leaf B's faces Diagonal5, the other direction. Give the pin no hatch: a pin cut along its length is not sectioned.
  5. The item list: a second spreadsheet ItemList (Item, Qty, Name, Material, Note), then Insert Spreadsheet View. Insert Balloon Annotation on the section for items 1, 2 and 3.

FreeCAD 1.1 If one cut face will not take a hatch, the parts touch and TechDraw has joined their outlines. Hatch the section as a whole for one part, then add a second section of the other part alone on top. Our script does exactly this, one layer per part.

The A3 assembly drawing. Left: the front view of the open hinge with the section line A-A along the pin axis, the hole pattern sizes 8 and 24 and 36 in boxes, the hole note 4 times diameter 3.4 countersunk 6.4 with a position frame, and the overall 40 by 60. Below it the view from above, right of it the left view with datum A on the back face. Right: section A-A at 3 to 1, leaf A hatched one way, leaf B the other, the pin plain, with diameter 5 H8/f7 and diameter 5 H7/p6, a coaxiality frame, a parallelism frame and datum B. An item list and the fit notes, and the ISO title block.
The finished drawing (click for the PDF). Made in FreeCAD.

Check: the section line has arrows and the letter A at each end; the section is labelled SECTION A-A; leaf A and leaf B are hatched in different directions; the pin is plain; the item list has three rows and the balloons 1, 2, 3 point at the right parts.

Step f: fits on the pin, and GD&T

The pin must turn freely in leaf B but never come loose from leaf A. The model is drawn at the basic size, 5 mm, for both; the drawing says how far each may differ. That is a fit, written as a hole letter and a shaft letter.

Predict first

The pin must stay in leaf A for the life of the door. Which fit holds it?

WhereFitHole, mmPin, mmClearance, mm
Pin in leaf B5 H8/f7, running5.000 to 5.0184.978 to 4.9900.010 to 0.040
Pin in leaf A5 H7/p6, pressed5.000 to 5.0125.012 to 5.020−0.020 to 0 (interference)

The values are ISO 286-2 for sizes over 3 mm up to 6 mm: H8 is 0 to +18 µm, f7 −22 to −10 µm, H7 0 to +12 µm, p6 +12 to +20 µm, each checked against two published tables. Clearance is the hole minus the pin, worked out at both ends: 5.000 − 4.990 = 0.010 and 5.018 − 4.978 = 0.040. The pin is ground to two diameters, p6 at the ends and f7 in the middle, and the drawing says so.

Size is not enough. Three bores of the right size can still be out of line, and the pin binds. GD&T adds three rules, each for a reason:

FrameOnWhy
Datum Aback face of leaf Ait sits on the frame: everything is measured from where the hinge really rests
Datum Bcommon axis of leaf A's boresthe axis the door turns about
⌖ ⌀0.2 Ⓜ | A | Bthe four screw holesso the screws line up with holes drilled in the door; Ⓜ lets a larger hole move further
◎ ⌀0.05 | Bleaf B's borecoaxiality, so the pin does not bind. Not concentricity: ISO 1101:2017 keeps that for one cross-section only
∥ 0.05 | Athe pin axisso the door does not swing out of line with the frame
  1. FreeCAD 1.1 Insert each dimension with Insert Dimension. For a fit, set its Format Spec to ⌀%.0f H8/f7. For the hole pattern sizes, tick Theoretical Exact: the size goes in a box, because the position frame holds the tolerance.
  2. A dimension to a hole must end on its centre: add a Cosmetic Vertex at each centre (or Add Centerline), and dimension to that.
  3. TechDraw has no feature control frame tool. Insert SVG Symbol and pick a frame from FreeCAD's Symbols/gd-and-t folder, then edit its texts; the datum symbols are in Symbols/misc.
Printing the hinge instead? A 3D printer holds about ±0.2 mm, ten times the whole H8/f7 zone. An ISO fit means nothing there. For a printed hinge, make the bore 0.3 mm larger than the pin and write printed, PLA on the drawing: the drawing must say how the part is made.
Your turn

An inspector measures leaf B's bore at 5.007 mm and its pin section at 4.985 mm. Does this pair meet 5 H8/f7?

Show the worked answer
  1. Each part against its own limits

    5.007 is inside 5.000 to 5.018 (H8). 4.985 is inside 4.978 to 4.990 (f7). ✅

  2. The clearance

    5.007 − 4.985 = 0.022 mm, inside 0.010 to 0.040. Leaf B turns freely and does not wobble. ✅

Check: the section shows ⌀5 H8/f7 on the middle knuckle and ⌀5 H7/p6 on an outer one; three feature control frames; datums A and B; the hole sizes 8, 24 and 36 in boxes; the fit values in the notes.

Step g: save and export

  1. File > Save: Hinge.FCStd holds everything, sketches, parts, assembly and drawing.
  2. Select the three bodies. File > Export, type glTF (*.gltf *.glb), name Hinge.glb: a 3D file that any web browser or phone can show, with the colours.
  3. For other CAD programs and for workshops: File > Export, STEP with colors (*.step).
  4. With the drawing page open: FreeCAD 1.1 TechDraw > Export Page as PDF.

Check: open the PDF and print it at 100%: the 40 mm length measures 80 mm with a ruler, because the views are at 2 : 1. Drop Hinge.glb into the 3D viewer: three parts, in colour. Our files: FCStd 155 KB, GLB 231 KB, STEP 54 KB, PDF 29 KB.

Ours, to compare with yours. Use Section across X to cut through the knuckles and see the pin inside, and Measure to check the 40 mm leaf.

The hinge: leaf A, leaf B and the pin. Drag to turn, pinch or scroll to zoom. Open in the full viewer.

Check yourself

Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.

1. A student uses t as the alias for the leaf thickness. The pad length =Spreadsheet.t gives an error. Why?

2. Section A-A shows leaf A's knuckles hatched at 45°. How should leaf B's knuckle and the pin be shown?

3. Leaf B's bore must line up with datum B within ⌀0.05. Its axis is measured 0.03 mm from B. Does it pass?

The files

Where the numbers come from: fits from ISO 286-2, checked against the published tables of Mitsubishi Materials and Simply Bearings; GD&T to ISO 1101:2017 and ISO 5459; hatching and sections to ISO 128; the M3 clearance hole to ISO 273. The model and the drawing were made in FreeCAD 1.1. The next lesson, the slider crank, uses every step here on a machine that turns a full circle.

Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.