🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Constrained Sketching and Design Intent

CAD & Mechanical DesignCAD Modeling and DocumentationđŸŸĸ Free Lesson

Constrained Sketching and Design Intent

What You'll Learn

  • 1Count degrees of freedom on points, lines, arcs, and patterns
  • 2Budget constraints against freedom and reach exactly zero
  • 3Detect redundant constraints by comparing count with rank
  • 4Capture design intent so a size change edits cleanly

An under-defined sketch will still build a solid, and that is exactly why it causes trouble: the geometry drifts the first time someone drags a face or the model regenerates in a different feature order. A redundant sketch refuses to rebuild at all and flags every dimension red on the screen. Both failures come from the same root cause, which is not understanding how many degrees of freedom each entity carries and which constraint removes them. This lesson turns sketching into arithmetic.

Theory and Foundations

Start with the entity counts. A point carries two coordinates. A line segment is two points, so it carries four:

A circle is a centre plus a radius, and an arc adds a start angle and an end angle:

A spline with control points carries two coordinates each, so , which is why a five point spline has ten degrees of freedom and resists being fully defined. An ellipse needs five: centre, two semi-axes, and a rotation.

Now budget the constraints. Each constraint removes a known number of freedoms, and the removals must add up to the total:

The standard removal values are: coincidence between two points removes 2, horizontal or vertical on a line removes 1, parallel removes 1, perpendicular removes 1, tangent between a line and a circle removes 1, concentric removes 2, equal for two lines or two circles removes 1, symmetry about an axis removes 2, fix on a point removes 2, and any linear, radial, or angular dimension removes 1.

A rectangle makes the arithmetic concrete. Four free lines carry degrees of freedom. Four corner coincidences remove , leaving 8. Two horizontal and two vertical relations remove 4, leaving 4. A width and a height dimension remove 2, leaving 2, and fixing one corner removes the last 2:

The same budget explains why the sketch turns red. The solver does not count constraints, it solves a system of equations. Let be the Jacobian of the constraint equations with respect to the coordinates. The sketch is exactly determined when the rank of equals the number of unknowns , and a constraint is redundant when it adds a row that does not increase the rank:

If you apply 19 constraints to a system of 16 unknowns and the rank stays at 16, then rows are redundant, the system is inconsistent or singular, and the CAD kernel flags the sketch.

Design intent is the discipline of spending your constraints on relationships rather than on numbers. A pattern is the clearest example: holes dimensioned individually need coordinate dimensions, while the same holes driven by a pattern need only the position of the seed plus the pitch:

For six holes that is twelve driving dimensions against four, and a pitch edit becomes one number change instead of six coordinated edits that will probably end up uneven.

Apply geometric constraints first: coincidence, horizontal, vertical, tangent, concentric, equal, parallel, perpendicular, symmetric, and fix. They encode shape relationships and cost nothing in manufacturing precision. Dimensions then control size. A driving dimension controls geometry, while a driven dimension is a reference readout that follows the model and cannot be edited, and mixing the two causes the confusing habit of overwriting a reference dimension and getting no effect.

Key Formulas

Worked Examples

EntityDegrees of FreedomFixes It
Point2Two coordinate dimensions or one fix
Line4Two coincident points or a point and angle
Circle3Center coordinates plus a diameter
Arc5Center, radius, and two angular limits
SplineTwo per control pointEndpoints and tangency conditions
ConstraintFreedom removedTypical use
Coincident, point to point2Close a profile corner
Horizontal or vertical1Square a rectangle side
Concentric2Put a circle on a boss axis
Tangent, line to circle1Smooth a slot side into its end
Linear or radial dimension1Set one size

Real-World Examples

  • Centered slot - A construction centerline with two tangent arcs constrained symmetrically needs only one overall length dimension instead of two end dimensions.
  • Bolt pattern - Six holes as a rectangular pattern with one 40 mm pitch edit every hole at once, replacing the twelve coordinate dimensions an individual approach would need.
  • Mirrored bracket - Mirror across a vertical centerline so a wall thickness change updates both arms together, spending two symmetry constraints instead of duplicating every size.
  • Broken sketch - A radius dimension duplicates an equal constraint and turns the whole profile red until one is deleted, which is exactly .

💡Constraints Before Dimensions

Lock the shape with geometry constraints, then add size dimensions. Doing it the other way around creates redundant dimensions and redraws.

Common Mistakes

Dragging geometry instead of constraining it

Fix: Treat dragging as a diagnostic only; finish with explicit constraints and dimensions.

Dimensioning a symmetric profile from one edge

Fix: Build a centerline and dimension to it so both sides stay equal.

Leaving a sketch blue for later

Fix: Every released feature sketch should show a zero freedom count before you exit it.

Key Takeaways

  • Lines carry 4 degrees of freedom, circles 3, arcs 5, and a spline 2 per control point.
  • Full definition means the budget B equals zero, which is rank of J equals n.
  • Redundancy is a count, not a feeling: r equals m minus rank of J, and r above zero is an error.
  • A pattern cuts driving dimensions from 2n to 4, which is the cheapest form of design intent.

Frequently Asked Questions

Why does my sketch turn red?

Two constraints are demanding the same thing, so exceeds the rank of the Jacobian and becomes positive. Find the redundant dimension or duplicated relation and delete whichever one is less meaningful.

Should I fully constrain every sketch?

Yes for production features, because an under-defined profile is a profile that will move on the next regeneration. Construction and layout sketches may stay open deliberately, but a feature profile should reach .

What is the difference between a driven and driving dimension?

A driving dimension moves geometry and removes one degree of freedom, a driven dimension only reports geometry and removes none, and the driven one is usually shown in parentheses or a different color. Counting them as if they were equal is the most common source of accidental redundancy.

Interview Questions

Q1: How do you make a sketch survive a size change?

Constrain relationships first, mirror or pattern where intent demands equality, and leave only size as driving dimensions so one edit changes one number.

Q2: Count the freedom in a rectangle you just drew.

Four lines give sixteen degrees of freedom, removed by four corner coincidences costing 8, horizontal and vertical relations costing 4, two dimensions costing 2, and one fixed point costing 2.

CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-27

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CAD & Mechanical Design Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement