What is ʼRepair Sketchʼ in SolidWorks?

Short Answer

In SolidWorks, Repair Sketch is a sketch diagnostic tool used to find and fix open contours, overlapping entities, tiny gaps, and invalid geometry before creating features like Extrude or Revolve. The most common professional method is to run Tools > Sketch Tools > Repair Sketch inside the active sketch. It does not fully solve badly imported or heavily corrupted geometry.

What You Need to Know Before

Warning: Repair Sketch can flag multiple tiny errors in imported DXF/DWG profiles, but fixing one problem may expose others nearby. A common failure is assuming the sketch is closed after one repair pass, when micro-gaps or duplicate segments still remain and block feature creation.

How to Use Repair Sketch in SolidWorks

  • Command: Repair Sketch

  • Shortcut: No default keyboard shortcut

  • Quick Steps:

    1. Edit the sketch, then go to Tools > Sketch Tools > Repair Sketch from the top menu.
    2. In the Repair sketch tool, review detected problems such as small gaps, short entities, or overlapping segments.
    3. Use the listed issue locations to zoom and fix them, then confirm the sketch is valid for the feature you want to build.
  • Most pros use this directly inside the active sketch before creating Boss-Extrude, Cut-Extrude, or other profile-based features.

Variables & Settings

  • Key Setting: Show gap value / sketch error listing in the Repair Sketch panel

  • Expert Setting: The displayed gap or faulty-entity feedback helps you decide whether to trim, extend, delete, or redraw geometry. This is especially useful with imported 2D profiles where very small breaks may not be visible at normal zoom.

Why it Fails

  • Cause 1 (Geometry): The sketch contains zero-length entities, overlapping lines, duplicate arcs, or tiny open gaps that prevent a closed contour.
  • Cause 2 (layers/Locks): Imported sketch entities may come from DXF/DWG data with problematic structure or converted construction geometry that is not usable for feature contours.
  • Cause 3 (Command/Logic): Repair Sketch identifies errors, but it does not automatically rebuild complex bad geometry into a clean manufacturable profile.

Quick Fix & Best Practice

  • Quick Fix: Run Repair Sketch, then use Trim Entities, Extend Entities, or manually redraw the faulty segment at high zoom to fully close the contour.
  • Manager’s Verdict: Use Repair Sketch as the first diagnostic step for failed sketch-based features, especially on imported files. Avoid relying on it as a full cleanup tool when the sketch is heavily fragmented; rebuilding critical profiles is often faster and safer.

FAQ

Where is Repair Sketch in SolidWorks?

Go to Tools > Sketch Tools > Repair Sketch while editing a sketch.

Can Repair Sketch close gaps automatically?

It can identify gaps and some issues, but many cases still need manual editing.

Is Repair Sketch useful for imported DXF files?

Yes, it is commonly used to diagnose imported 2D geometry before creating features.

.