← All days ◀ Day 1Day 3 ▶
28-Day SolidWorks Course · Week 1 · Day 02

Sketching Fundamentals and Sketch States

Sketches are the foundation of almost every feature. Learn the sketch tools, how a sketch becomes fully defined, and why "black lines" matter.

⏱ about 2–3 hours🧪 Lab: Degrees of freedom❓ 5-question quiz

1Today's goals

  • Open a sketch on a plane or a flat face
  • Use line, rectangle, circle, arc, slot, centreline and construction geometry
  • Use Trim, Offset, Convert and Mirror Entities
  • Read sketch colours: blue, black, red/yellow
  • Count degrees of freedom and fully define a sketch

2What a sketch is

A sketch is a 2D drawing placed on a plane or a flat face. A feature (extrude, revolve…) then turns it into 3D. A good sketch is simple, closed and fully defined.

A sketch is fully defined when every point and line has an exact position and size, given by relations (geometric rules such as horizontal or tangent) and dimensions (numbers). Nothing can be dragged any more.
Status bar saysLine colour (default)Meaning
Under DefinedBlueSomething can still move. Fine while working, not when finished.
Fully DefinedBlackExactly one solution. This is the goal.
Over DefinedRed / yellowToo many or conflicting relations/dimensions. Must be fixed.
(dangling)Brown/oliveA relation lost its reference (e.g. the edge it was tied to was deleted).

Colours are SolidWorks defaults and can be changed in System Options ▸ Colors. If you find blue/black or red/yellow hard to tell apart, set them to strong contrasting colours there and always confirm with the status bar text.

Degrees of freedom

Each free point in a sketch has 2 degrees of freedom (x, y). A free line has 4, a circle 3 (centre x, y and radius). Every relation or dimension removes some. A corner rectangle already comes with 4 coincident corners and 2 horizontal + 2 vertical relations, leaving 4 DOF: where it is (x, y) and how big it is (width, height).

3Do it in SolidWorks

  1. New part from your template. Select Front Plane in the tree → Sketch tab ▸ Sketch. The view turns normal to the plane.
  2. Corner Rectangle: click on the origin (the cursor shows a yellow coincident icon) and click again up-right.
  3. Smart Dimension: click the bottom line, place the dimension, type 80, Enter. Click the side line, type 50. The lines turn black: fully defined.
  4. Circle: centre inside the rectangle, any size. Dimension its diameter 20, and its centre 40 from the left edge and 25 from the bottom.
  5. Centerline (or a line with For construction ticked): construction lines help but are ignored by features.
  6. Sketch Fillet: select two corners of the rectangle → radius 8. Notice it adds a tangent arc and keeps the rest defined.
  7. Straight Slot: draw a slot, then dimension its length and width.
  8. Practise Trim Entities ▸ Power trim: drag across the bits you want removed.
  9. Offset Entities: select the outline, offset 5 mm inward. Convert Entities projects existing model edges into the sketch (you will use it on face sketches).
  10. Exit with the Confirmation Corner (top right) or Exit Sketch. Save as Day02_Sketch.

4Lab: degrees of freedom

A corner rectangle has 4 degrees of freedom. Tick relations and dimensions to remove them, then press P to "drag" the sketch — whatever still moves is not defined. Try to reach Fully Defined with exactly three items, then add a fourth and watch it become over defined.

5Pro tips and common mistakes

  • Anchor to the origin. The first point of the first sketch should snap to the origin. It locates the part and makes mirroring and assemblies easier.
  • Relations first, dimensions second. Let inference add horizontal, vertical, coincident and tangent while you draw; then dimension what is left.
  • Dimension like a machinist reads. Put dimensions from the same reference edges you would measure from on the shop floor.
  • Keep sketches simple. Do fillets and chamfers as features, not in the sketch, unless the profile really needs them.
  • Over defined? Use Tools ▸ Sketch Tools ▸ SketchXpert → Diagnose to list solutions.
  • A dimension that would over-define becomes a driven (reference) dimension in grey — that is allowed and useful for checking.

6Practice: gasket sketch

On the Front Plane, fully define this gasket outline (no extrusion yet):

ItemSize
Outer rectangle, centred on the origin (use Center Rectangle)120 × 80, corners R10 (sketch fillet)
Four bolt holesØ10, 15 from each outside edge
Central slot (Straight Slot, horizontal)50 long centre-to-centre, 16 wide

Check: status bar says Fully Defined. Hint: one Equal relation on the four circles saves three dimensions.

7Quick quiz

Five questions. Click an answer — you get the explanation straight away.

Progress is kept in this browser only.