Dangling relations in SolidWorks: why sketches turn brown and how to repair them

A sketch that turns brown has not failed. That is the problem. The part still rebuilds, the drawing still prints, and nothing looks wrong until the day a dimension shifts by 4 mm because a relation was pointing at geometry that no longer exists.

What a dangling relation actually is

When you sketch, SolidWorks stores relations — coincident, collinear, concentric — as links to specific entities. If you draw a line coincident to an imported edge and that edge is later deleted, suppressed or renumbered, the relation survives but its target does not.

SolidWorks marks this with color rather than an error:

  • Brown / dark yellow entity — the relation is dangling. It has no valid reference.
  • Yellow warning on the feature — at least one relation inside it is dangling.
  • Blue entity — under-defined. Different problem, but worth fixing while you are in there.

The sketch holds its last known position by memory, not by constraint. It is dimensionally correct until something nudges it.

Finding every dangling relation in a part

Do not hunt visually. Use the dialog built for this:

  1. Edit the sketch.
  2. Go to Display/Delete Relations (Sketch toolbar, or Tools > Relations).
  3. In the filter dropdown, select Dangling.
  4. You now have the complete list for that sketch, not just the ones you can see.

Work sketch by sketch from the top of the tree down. As with rebuild errors, an upstream repair often clears several downstream ones.

Repairing rather than deleting

The temptation is to select everything in the dangling filter and hit Delete. Sometimes that is correct. Often it strips design intent that took someone an hour to build.

The better repair, when the geometry still exists in some form:

  1. Select the dangling relation in the list. The affected entity highlights, and a small handle appears on the sketch.
  2. Drag that handle onto the new reference — the replacement edge, face or vertex.
  3. The relation reattaches and the entity returns to black or blue.

Delete only when the original intent no longer applies. Then re-dimension deliberately instead of leaving the entity under-defined.

Two dialogs people confuse

  • SketchXpert diagnoses over-defined sketches and proposes relations to remove. It does not fix dangling references.
  • Repair Sketch (Tools > Sketch Tools) finds gaps, overlaps and short segments in contours. Useful before extruding an imported profile. Also not for dangling relations.

For dangling references the tool is Display/Delete Relations. Nothing else.

Where dangling relations come from

Four sources account for most of them:

  1. Imported and translated geometry. STEP and IGES bodies have no feature history, and their edges renumber on every reimport. Any sketch related to them is a future dangling relation.
  2. Converted entities. Convert Entities creates an on-edge relation by default. Convenient, and it breaks the moment the source face changes.
  3. Deleted or suppressed features whose faces other sketches were built on.
  4. Configuration switching, where a suppressed feature in one configuration removes references the other configuration relies on.

Prevention that actually holds

  • Relate to the origin and the three default planes whenever the design intent allows. They cannot be deleted or renumbered.
  • When using Convert Entities on geometry that will change, uncheck the on-edge relation and dimension the profile instead.
  • On imported bodies, build a clean sketch on a plane and dimension it to the import, rather than relating directly to imported edges.
  • Before releasing a part, run the Dangling filter on every sketch in the tree. It takes minutes and it is the difference between a drawing you trust and one you hope about.

The full diagnostic protocol for dangling references, broken external references and configuration conflicts — with the exact prompts to hand a failure to an AI assistant and get a ranked root cause back — is in The AI Copilot for Mechanical Designers.