← All Modules
02 Sketch

Drawing in 2D

Lines, arcs, circles, and constraints — the flat shapes that become every 3D part you'll ever make.

The Foundation of 3D Models

Every 3D feature in parametric CAD starts as a 2D sketch. You draw geometry on a plane, then lock it with constraints and dimensions until it is fully constrained.

Why Sketching Matters for Robotics

Robotics parts demand precision. A bearing pocket 0.1 mm too large allows play; a hole pattern that shifts on upstream edits causes assembly failures. Fully constrained sketches capture design intent mathematically, so changes propagate predictably.

  • Parametric control: Change one dimension and the entire part updates consistently.
  • Manufacturability: Clean sketches export to DXF/DWG for laser cutting, waterjet, or CNC without cleanup.
  • Collaboration: Other engineers can read and modify a well-constrained sketch without guessing your intent.
1 Experience
2 Reflect
3 Theorize
4 Apply
Quick Review Opportunity

Revisit

Sketch Tools

Master these core 2D tools and you can create any profile, from a simple bracket to a complex cam.

/
Line

Click two points for a straight segment. Chain clicks for connected polylines. Press Escape to finish.

Rectangle

Four-sided closed profile. Variants: center, 3-point, and corner rectangle. Great for plates, tabs, and slots.

Circle

Define by center + radius or three circumference points. Used for holes, shafts, and bearings.

Arc

Partial circle via center + endpoints, three points, or tangent continuation. Essential for manual fillets and rounded transitions.

Polygon

Regular 3–64 sided polygon, inscribed or circumscribed. Useful for hex standoffs, knobs, and nut profiles.

Spline

Free-form curve through control points. Hard to constrain and manufacture — reserve for organic shapes and cam profiles.

Slot

Two semicircles connected by tangent lines. Common for adjustment slots in motor mounts and bearing blocks.

---
Construction Lines

Reference-only geometry (dashed lines) for symmetry lines, layout guides, and constraint anchors.

Tip: Toggle any entity between normal and construction mode with the X key. Construction geometry is invisible to Extrude but invaluable for organizing sketches.

Geometric Constraints

Geometric constraints define relationships between entities without exact numbers. Two lines constrained as parallel stay parallel no matter how the sketch resizes.

Constraint Reference Table
Constraint Symbol What It Does When to Use
Coincident Point-on-point Forces two points (or a point and a line) to share the same location. Connecting endpoints of separate lines; anchoring geometry to the origin.
Concentric Two rings Forces two arcs or circles to share the same center point. Aligning a bolt hole with a counterbore; nesting bearing seats.
Parallel Forces two lines to remain parallel (same direction, any distance apart). Opposite edges of a bracket; rail guides; slot walls.
Perpendicular Forces two lines to meet at exactly 90°. Corner joints; T-intersections; mounting flanges.
Tangent Curve kiss Forces a line and an arc (or two arcs) to meet smoothly with no kink. Rounded transitions; cam profiles; fillet-like geometry.
Equal = Forces two entities to have the same size (length for lines, radius for arcs). Symmetric bolt patterns; matched features; uniform spacing.
Horizontal Forces a line (or two points) to be aligned with the sketch X-axis. Top/bottom edges; flat surfaces; alignment references.
Vertical | Forces a line (or two points) to be aligned with the sketch Y-axis. Side edges; uprights; vertical alignment of features.
Midpoint Mid marker Forces a point to lie exactly at the midpoint of a line or arc. Centering geometry; placing holes at the middle of edges.
Symmetric Mirror line Forces two points or entities to be mirror images about a construction line. Symmetric brackets; centered cutouts; balanced designs.
Pro tip: CAD tools auto-apply constraints as you draw (snapping to horizontal, inferring tangent). Watch the cursor icons — if the wrong constraint is inferred, undo immediately and re-draw at a different angle.

Dimensional Constraints

Dimensional constraints define sizes and positions with explicit values. Combined with geometric constraints, they fully lock down a sketch.

Types of Dimensional Constraints
Distance / Length

Sets exact length of a line or distance between points/lines. The most common dimension type.

  • Line length: 50 mm
  • Point-to-point: 25 mm
  • Line-to-line offset: 10 mm
Angle

Sets the angle between two lines or an arc's sweep, in degrees.

  • Between two lines: 45°
  • Arc sweep: 90°
  • From horizontal ref: 30°
Radius

Sets the radius of a circle or arc. Preferred when center-to-edge distance matters (e.g., shaft clearance).

  • Fillet arc: R3 mm
  • Bearing seat: R11 mm
  • Rounded corner: R2 mm
Diameter

Sets full diameter. Preferred for holes and shafts since standard sizes use diameters (e.g., M5 = 5 mm).

  • Bolt hole: ∅5.5 mm
  • Motor shaft: ∅8 mm
  • Bearing OD: ∅22 mm
Best practice: Dimension from the origin or a known datum. Daisy-chaining dimensions accumulates tolerance errors. Use baseline or ordinate dimensioning for critical hole patterns.

Sketch Colors & Status

CAD tools use color coding to show sketch constraint status at a glance. Learning these colors saves debugging time.

What Sketch Colors Mean
Color Status What It Means What to Do
Blue Under-constrained The geometry still has degrees of freedom — it can be dragged or resized. Some constraints or dimensions are missing. Add more constraints and/or dimensions until the entity turns black. Try dragging the blue geometry to see which direction it moves freely.
Black Fully constrained The geometry is completely locked down. It cannot move in any direction. This is the ideal state for every sketch. Nothing — this is your goal. The sketch is ready for feature operations like Extrude or Revolve.
Red Over-constrained Conflicting constraints or redundant dimensions have been applied. The solver cannot satisfy all rules simultaneously. Delete the most recently added constraint or dimension. Check for redundant rules (e.g., a Horizontal constraint on a line that is already dimensioned at 0°).
Green / Dashed Construction geometry Reference-only lines, circles, or arcs that will not be used as profile edges by features. Use construction geometry for symmetry lines, layout guides, and angular references. Toggle with the X key in most CAD tools.
Quick check: Try dragging any point. If nothing moves, you are fully constrained. If something slides, follow the blue entities and fix them before proceeding to 3D features.

Common Sketching Mistakes

Avoid these pitfalls: Common beginner mistakes that cause hard-to-diagnose problems later.
Mistakes That Will Cost You Time
  • Not anchoring to the origin: Always place your first point on the origin (0, 0) with a Coincident constraint to lock the sketch's position.
  • Leaving unclosed profiles: Extrude requires a closed loop. Zoom in on corners and verify Coincident constraints exist between endpoints.
  • Over-constraining the sketch: Redundant constraints (e.g., Horizontal + 0° dimension) cause conflicts. If the sketch turns red, undo the last constraint.
  • Ignoring construction geometry: Use construction lines for symmetry axes and layout grids — they keep symmetric designs stable.
  • Sketching too much in one sketch: Prefer multiple simple sketches, each driving one feature, over a single complex mega-sketch.
  • Using Splines for everything: Arcs and lines are easier to constrain and machine. Reserve splines for truly organic shapes.
  • Daisy-chaining dimensions: Dimension from a common baseline or origin instead of chaining segment-to-segment, which accumulates tolerance errors.
  • Forgetting to finish the sketch: Always click "Finish Sketch" before applying Extrude, Revolve, or other operations.

Sketch-to-Feature Workflow

Follow this process for every new feature to ensure consistent, predictable sketches.

1
Select a Plane

Choose an origin plane (XY, XZ, YZ) or an existing flat face. This determines your sketch orientation.

2
Create a New Sketch

Enter sketch mode. The view rotates to face the plane and the grid appears.

3
Add Geometry

Draw the profile using Line, Rectangle, Circle, Arc, etc. Start from the origin; exact sizes come from dimensions later.

4
Add Geometric Constraints

Apply constraints to define relationships. Verify auto-inferred constraints and add missing ones.

5
Add Dimensional Constraints

Set exact lengths, distances, angles, and radii. Dimension from the origin and watch the sketch turn from blue to black.

6
Finish the Sketch

Verify all geometry is black (fully constrained) and forms a closed loop, then exit sketch mode.

7
Apply a Feature

Apply a 3D operation — Extrude, Revolve, Sweep, or Loft — to turn your constrained sketch into solid geometry.

Remember: Every new feature repeats these seven steps. Complex parts may have 10–50+ features, each on its own sketch. Keep each sketch clean and minimal.
Stage 2 Pause and Reflect
✓ Your reflections are saved automatically
Stage 4 Apply What You Learned

Design a sketch for a motor mounting plate: a rectangle with 4 corner bolt holes and a center bore for the motor shaft.

  • Sketch the outer rectangle with appropriate dimensions
  • Add a center circle for the motor bore
  • Place 4 equally-spaced bolt holes using patterns or constraints
  • Fully constrain the sketch so nothing is blue/under-defined
  • Consider: what dimensions should be parameters for reuse?
0 / 5
← Previous
Next →