📘 CodingMarble Learn

CAD Modelling: From a Sketch to a 3D Part

CAD (computer-aided design) means using a computer to draw and build exact models of objects before they are made. A design starts as a freehand sketch. In CAD it becomes a 2D sketch with constraints and dimensions. 3D tools such as extrude, revolve and cut turn the sketch into a solid. Each step is saved in a feature tree, so changing one size rebuilds the whole model. Parts are joined in assemblies, tested by simulation, shared as drawings and sent to 3D printers, laser cutters or CNC machines.

🎬 Step-by-step story

  1. Every design starts as a quick freehand sketch. It shows the idea, not the exact sizes.
  2. In CAD we redraw it as a 2D sketch. Constraints keep it neat, and dimensions fix the sizes.
  3. Extrude pulls the flat sketch out into a 3D solid with a thickness.
  4. A new feature cuts a round hole through the plate. The feature tree remembers each step.
  5. An assembly joins parts. A pin slides into the hole, held by a mate.
  6. Your turn: change the sizes and watch the model rebuild, with its volume and mass.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why sketch by hand if CAD exists?

Hand sketches are the fastest way to try many ideas; CAD comes when an idea is chosen.

What is the difference between a constraint and a dimension?

A constraint is a shape rule (straight, square, equal); a dimension is a size in mm.

How does a flat drawing become 3D?

Extrude pulls the sketch out by a set depth, giving it thickness.

Can I change a size after making the hole?

Yes. The feature tree replays all steps, so the hole stays in the right place.

How do parts know how to fit together?

Mates in the assembly, such as concentric for a pin in a hole.

How do I know how much plastic a print needs?

Volume × density. Change sizes in the 3D and read the mass.

Tools to represent an idea

Before making a product, designers must show the idea to others and check it. They use several tools:

CAD stands for computer-aided design. It lets us change a design quickly, share it, check sizes and send it straight to a machine (CAM: computer-aided manufacture).

2D CAD and vector drawing

2D CAD draws flat shapes made of lines, arcs and circles. These are vector shapes: they are stored as maths (start point, end point, radius), not as pixels, so they stay sharp at any zoom. 2D CAD is used for floor plans, laser-cutting files and technical drawings.

A sketch in a 3D program is also 2D, drawn on a flat plane. Two kinds of rules make it exact:

When every line is fixed by constraints and dimensions, the sketch is fully defined and cannot be dragged out of shape by mistake.

Building 3D solids: extrude, revolve, cut and more

Parametric modelling and the feature tree

Most CAD programs are parametric: every feature is stored, in order, in a feature tree (history). If you change a dimension in the first sketch, all later features update. Good practice: name features, fully define sketches and build from the main shape to small details.

Other ways to model

Surface and mesh / sculpt modelling shape free-form objects such as car bodies, characters and jewellery. Block-based tools build shapes from simple solids and are good for beginners.

Assemblies and working together

An assembly is a file that brings several parts together. Mates (assembly constraints) say how parts touch: concentric (centred on the same axis), coincident (faces together), distance, angle. Mates let you check that parts fit and move correctly, and find clashes (parts overlapping).

A bill of materials (BOM) lists every part and how many are needed.

In collaborative CAD, a team works on the same model online. Version history records who changed what, and each person can work on a different part of the assembly at the same time, like a shared document.

Simulation, output and uses of CAD

Simulation tests a design before it is made: stress under a load, airflow, heat, or motion of a mechanism. It saves time and material.

Outputs:

Who uses CAD: product design, mechanical and civil engineering, architecture, fashion and jewellery, furniture, film and game art, medical implants.

Advantages: exact, easy to edit and copy, easy to share, can be tested and sent straight to machines. Limits: needs a computer and training, software can be costly, and an on-screen model can hide problems you would notice by holding a real prototype.

Try it

Measure a real object, such as a phone stand or a pencil holder, with a ruler. Make a freehand sketch with the sizes, then build it in a free CAD tool using sketch → extrude → cut. Compare your model's volume with the 3D: volume = area of sketch × thickness.

Key formulas and definitions

Worked examples

1. Which CAD tool would you use to make a drinking cup from a side profile?

Revolve. Spinning the side profile around a vertical axis makes a round cup.

2. A plate sketch is 60 mm × 40 mm and is extruded 20 mm. Find its volume in cm³.

V = 60 × 40 × 20 = 48 000 mm³ = 48 cm³.

3. A 12 mm hole is cut through that 20 mm plate. Find the new volume.

Hole area = π × 6² ≈ 113.1 mm². Hole volume = 113.1 × 20 ≈ 2262 mm³. New volume ≈ 48 000 − 2262 = 45 738 mm³ ≈ 45.7 cm³.

4. Find the mass of the 45.7 cm³ part if printed solid in PLA (1.24 g/cm³).

m = 1.24 × 45.7 ≈ 56.7 g.

5. A part is 150 mm long. How long is it on a 1:5 drawing?

150 ÷ 5 = 30 mm on the drawing.

6. Explain why a fully defined sketch is better than a loose one.

Every line is fixed by constraints and dimensions, so it cannot be dragged out of shape by mistake, and changing one dimension updates the shape in a predictable way.

Common mistakes

Practice quiz

1. CAD stands for:
2. Which tool turns a flat rectangle into a block?
3. A rule that keeps two lines at 90° is a:
4. Which file type is usually sent to a 3D printer?
5. What keeps a pin centred in a hole in an assembly?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is CAD modelling?

Using computer software to build exact 2D and 3D models of objects, so they can be checked, changed, shared and manufactured.

What is the difference between 2D and 3D CAD?

2D CAD draws flat lines and shapes (plans, cutting files). 3D CAD builds solids with depth that can be rotated, assembled, simulated and 3D printed.

Which free CAD tools can students use?

Several free or education-licence tools run in a browser or on a PC, including block-based beginner tools and full parametric modellers. Pick one that supports sketches, extrude and STL export.

Where this is taught

ItalySecondaria di secondo grado – classe 3ªDrawing
ItalySecondaria di secondo grado – classe 4ªDrawing
Spain2º ESOCommunicating and sharing ideas
Spain3º ESOCommunicating and sharing ideas
Spain1º BachilleratoCAD systems
Spain2º BachilleratoCAD systems
Spain2º BachilleratoDigital design tools
Ukraine10 класComputer-aided design
Ukraine11 класComputer-aided design
Japan高校(専門学科)1〜3年Drafting
FranceQuatrièmeDesign and innovation
FrancePremière4. Eco-design of products
FranceTerminale4. Eco-design of products

Learn first

Learn next

Related lessons

All Computer Science lessons