Assembly Modeling, Mates, and Constraints
What You'll Learn
- 1Write the spatial degree-of-freedom budget for an assembly
- 2Assign a removal count to every common mate type
- 3Solve a gear mate ratio and confirm the assembly has one input freedom
- 4Screen an assembly for interference and minimum clearance
An assembly that looks right can still be wrong, because a component with one unconstrained direction will move the moment someone drags it or the model regenerates in a new feature order. Overconstrained assemblies are equally bad: they report errors and hide genuine mistakes inside a wall of warnings. This lesson gives assembly constraining a budget you can audit: how many degrees of freedom exist, how many each mate removes, and how to prove the balance closes at zero.
Theory and Foundations
where is the number of independent freedoms removed by mate . This is the spatial form of the Gruebler or Kutzbach mobility criterion, and it is the single most useful number to track while you build.
Ground the first component so it consumes all six, then every subsequent part must be reduced to zero freedom by its mates. The removal counts for the standard mates are fixed by geometry:
Concentric is the one people get wrong. It aligns two axes, which removes two translations and two rotations, but deliberately leaves sliding along the axis and spinning about it, giving free directions. That is exactly right for a shaft in a bushing and exactly wrong if you expected the mate to fix the part.
Counting is a discipline, not a feeling. A pin in a hole still slides and spins until you add a distance or a coincident face, and a lid that only sits flush on a rim still slides in two directions. Mates should reflect the real joint, not just make the picture look assembled.
The solver reads this as a system of constraint equations. Let be the Jacobian of the mate equations with respect to the component poses. The assembly is exactly determined when after grounding, and the number of redundant mates is:
A redundant mate adds a row that does not increase the rank, so the CAD flags it while still solving. Standard practice is to rebuild the whole mate group rather than patch warnings one at a time: delete the suspicious set, reapply three mates that describe the physical joint, and check that the status bar reports fully defined.
Motion couples are the exception to the zero-balance rule, because a designed mechanism is supposed to move. A gear mate adds one equation linking the two angular velocities, and for an external pair the direction reverses:
The minus sign records that external spur gears turn opposite ways. The assembly then holds exactly one free input direction, which is the desired state, not an error.
Verification is arithmetic too. Interference means the overlap volume of two solids is non-zero, and a clearance check asks whether the minimum gap survives the tolerance stack:
In context mates let one part adapt to another, which is powerful for covers and brackets but dangerous across files, because moving the parent silently rebuilds the child. Limit external references and lock them once a design is stable.
Key Formulas
Worked Examples
| Mate | Removes | Typical Use |
|---|---|---|
| Coincident | 3 | Stack plates on a base |
| Concentric | 4 | Pin inside a bore, leaves slide and spin |
| Parallel | 2 | Keep a bracket square |
| Distance | 1 | Clearance without contact |
| Angle | 1 | Lever against a stop |
| Lock | 6 | Freeze a purchased part |
| Check | Criterion | Fail action |
|---|---|---|
| Fully defined | F equals 0 | Add the missing mate for the free direction |
| No redundancy | r equals 0 | Delete duplicate mates, rebuild the group |
| No interference | overlap volume equals 0 | Move the feature or add clearance |
| Clearance margin | g min at least requirement | Loosen one tolerance in the stack |
Real-World Examples
- Hinge subassembly - Two concentric mates on one axis plus one axial distance fully define a door with only the swing left free, which is one degree of freedom by design.
- Gear pair - A gear mate at 40 to 16 teeth holds a 2.5 to 1 ratio as either part is resized, and the minus sign reverses direction automatically.
- Centered plate - A width mate between the plate and the frame centers it with 30 mm on each side automatically and removes the last translation in one click.
- Fan and shroud - Interference detection finds a 0.8 mm overlap over 250 mm2 of blade tip, which is 200 mm3 of virtual material no visual review would catch.
đĄGround Early, Count Always
Common Mistakes
Leaving parts under defined because they look right
Fix: Check the status bar; an ungrounded part will move during the next edit.
Adding mates until errors disappear
Fix: Rebuild the mate group from the physical joint instead of patching warnings.
Overusing in context references
Fix: Lock external references as soon as the parent geometry is stable.
Key Takeaways
- The spatial budget is F equals 6 times n minus 1 minus the sum of mate removals, and it must reach zero.
- Concentric removes 4 and leaves exactly 2: sliding along the axis and spinning about it.
- Redundancy is r equals m minus the rank of the mate Jacobian, so rebuild rather than patch.
- A gear mate adds one equation, giving the assembly one input freedom and a ratio of N1 over N2.
Frequently Asked Questions
Why ground only the first component?
Grounding several parts overconstrains the assembly, since the mates between them then fight two fixed references at once. With components the budget is , and two grounded parts spend 12 of it before any mate is applied.
How many mates does a typical part need?
Usually three that remove six degrees of freedom, though patterns and symmetry mates can cover many parts with one relation. Count the removals: 3 plus 1 plus 1 plus 1 closes a sliding block, and 5 plus 5 plus 1 closes a two gear train.
What is the difference between interference and clearance analysis?
Interference finds overlapping solids, so the criterion is a zero overlap volume, while clearance reports the minimum gap against a threshold through . Both should run before drawings are released.
Interview Questions
Q1: A part still rotates after mating. What is missing?
One degree of freedom is free, so check F: a concentric mate alone leaves 2, and you need a parallel, angle, or offset distance mate to remove the spin.
Q2: How do you handle a purchased component in an assembly?
Ground it or apply a lock mate worth 6 removals so it never drifts, then mate everything else to it using the remaining budget of 6 times n minus 1.