← All Modules
02 Sketching

2D Sketching Mastery

Learn the basics of creating fully constrained sketches using lines, circles, arcs, and dimensions.

The Foundation of 3D Models

Before you can create any 3D object in parametric CAD, you must first define its cross-sectional shape as a 2D sketch. Sketching is the single most important fundamental skill in CAD modeling — every extrusion, revolution, sweep, and loft begins with a sketch profile.

A sketch lives on a plane (the XY, XZ, or YZ plane, or a face of an existing body). Within that plane you draw geometry (lines, arcs, circles) and then lock that geometry down with constraints and dimensions until nothing can move freely. That locked-down state is called fully constrained, and it is the goal of every sketch you create.

Why Sketching Matters for Robotics

Robotics parts demand precision. A bearing pocket that is 0.1 mm too large will allow play; a motor mount hole pattern that shifts when you edit a dimension upstream will cause assembly failures. Fully constrained, well-organized sketches ensure that your design intent is captured mathematically — so changes propagate predictably through the entire model.

  • 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.

Sketch Tools

Every CAD package offers a core set of 2D drawing tools. Master these and you can create any profile, from a simple rectangular bracket to a complex cam profile.

/
Line

The most fundamental tool. Click two points to create a straight segment. Chain clicks to create connected polylines. Press Escape to finish.

Rectangle

Creates a four-sided closed profile. Variants include center-rectangle, 3-point rectangle, and corner-rectangle. Great for plates, tabs, and slots.

Circle

Define by center + radius or by three points on the circumference. Used for holes, shafts, bearings, and any cylindrical feature.

Arc

Partial circle defined by center + endpoints, three points, or tangent continuation. Essential for fillets and rounded transitions drawn manually.

Polygon

Regular polygon with 3–64 sides. Inscribed or circumscribed about a circle. Useful for hex standoffs, knobs, and nut profiles.

Spline

Free-form curve through control points. Use sparingly — splines are hard to constrain fully and can cause manufacturing headaches. Best for organic shapes and cam profiles.

Slot

Oblong shape (two semicircles connected by tangent lines). Commonly used for adjustment slots in motor mounts and bearing blocks.

---
Construction Lines

Reference geometry that does not form part of the profile. Used for symmetry lines, layout guides, and constraint anchors. Shown as dashed lines.

Tip: You can convert any sketch entity between normal and construction mode by selecting it and pressing the Construction toggle (often the X key). Construction geometry is invisible to features like Extrude but invaluable for organizing complex sketches.

Geometric Constraints

Geometric constraints define relationships between sketch entities without specifying exact numbers. They are the backbone of design intent — when you say two lines are parallel, they 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: Most CAD tools auto-apply constraints as you draw (snapping to horizontal, inferring tangent, etc.). Watch the constraint icons that appear near your cursor — if the software infers the wrong constraint, press the undo key immediately and re-draw with a different approach angle.

Dimensional Constraints

While geometric constraints define relationships, dimensional constraints define sizes and positions with explicit numerical values. Together they fully lock down a sketch.

Types of Dimensional Constraints
Distance / Length

Sets the exact length of a line or the distance between two points, two lines, or a point and a line. This is the most common dimension type.

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

Sets the exact angle between two lines, or the sweep angle of an arc. Measured in degrees.

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

Sets the radius of a circle or arc. Preferred when you care about the distance from center to edge (e.g., shaft clearance).

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

Sets the full diameter of a circle. Preferred for holes and shafts because standard sizes are specified as diameters (e.g., M5 = 5 mm diameter).

  • Bolt hole: ∅5.5 mm
  • Motor shaft: ∅8 mm
  • Bearing OD: ∅22 mm
Best practice: Dimension from the origin or from a known datum whenever possible. Chaining dimensions end-to-end (daisy-chaining) accumulates tolerance errors in manufacturing. Use baseline or ordinate dimensioning for critical features like hole patterns.

Sketch Colors & Status

Most parametric CAD tools use color coding to tell you the constraint status of your sketch at a glance. Learning to read these colors will save you significant 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: After you think your sketch is done, try dragging any point. If nothing moves, congratulations — you are fully constrained. If something slides, the blue color will guide you to the under-constrained entities. Fix those before proceeding to 3D features.

Common Sketching Mistakes

Avoid these pitfalls: These are the most frequent mistakes beginners make when sketching for robotics parts. Each one can cause problems that are difficult to diagnose later in the design process.
Mistakes That Will Cost You Time
  • Not anchoring to the origin: If your sketch floats freely in space, it remains under-constrained. Always place your first point or center on the origin (0, 0) with a Coincident constraint. This locks the entire sketch's position.
  • Leaving unclosed profiles: Features like Extrude require a closed loop. If endpoints do not meet precisely (even by 0.001 mm), the feature will fail. Zoom in on corners and verify Coincident constraints exist between endpoints.
  • Over-constraining the sketch: Adding redundant constraints (e.g., making a line both Horizontal and dimensioned at 0°) causes conflicts. If your sketch turns red, undo the last constraint and think about whether the relationship is already implied.
  • Ignoring construction geometry: Trying to create symmetric designs without a construction centerline leads to fragile sketches. Use construction lines for symmetry axes, angular references, and layout grids.
  • Sketching too much in one sketch: Cramming every feature into a single sketch makes it brittle and hard to edit. Prefer multiple simple sketches, each driving one feature, over one mega-sketch.
  • Using Splines for everything: Splines are hard to constrain and manufacture. If a series of arcs and lines can approximate your shape, prefer those — they are easier to dimension, constrain, and machine.
  • Daisy-chaining dimensions: Dimensioning each segment from the previous one accumulates tolerance errors. Dimension from a common baseline or origin instead.
  • Forgetting to finish the sketch: Leaving a sketch open (active/editing) while trying to apply features causes unexpected behavior. Always click "Finish Sketch" or "Close Sketch" before applying Extrude, Revolve, or other operations.

Sketch-to-Feature Workflow

Follow this step-by-step process every time you create a new feature. It ensures consistent, fully constrained sketches that behave predictably when edited later.

1
Select a Plane

Choose the XY, XZ, or YZ origin plane, or select an existing flat face on your model. The plane determines the orientation of your sketch and the direction of subsequent features. For the first feature, the Front (XZ) or Top (XY) plane is typical.

2
Create a New Sketch

Enter sketch mode on your chosen plane. The view will typically rotate to look straight at the plane. The grid and origin crosshairs become visible, giving you reference for placement.

3
Add Geometry

Use Line, Rectangle, Circle, Arc, and other sketch tools to draw the profile shape. Start from the origin when possible. Focus on getting the approximate shape right — exact sizes come from dimensions in the next steps.

4
Add Geometric Constraints

Apply Horizontal, Vertical, Parallel, Perpendicular, Tangent, Coincident, Symmetric, and other constraints to define relationships. Many constraints are auto-inferred while drawing — verify them in the constraint list and add any that are missing.

5
Add Dimensional Constraints

Use the Dimension tool to set exact lengths, distances, angles, radii, and diameters. Dimension from the origin or a known datum. Watch the sketch color change from blue to black as each degree of freedom is eliminated.

6
Finish the Sketch

Verify that all geometry is black (fully constrained) and that your profile forms a closed loop. Then exit sketch mode. The sketch will appear in the feature tree/timeline as a completed entity.

7
Apply a Feature

With the sketch complete, apply a 3D operation: Extrude to push the profile into a solid, Revolve to spin it around an axis, Sweep to move it along a path, or Loft to blend between profiles. Your clean, constrained sketch ensures the feature behaves exactly as intended.

Remember: This workflow is a cycle, not a one-time process. Every new feature on your part repeats these seven steps. Complex robotics parts may have 10–50+ features, each built on its own sketch. Keeping each sketch clean and minimal is the key to a maintainable model.
← Previous
Next →