Launch price until 30 November: 25 % off the Suite and every module, applied automatically at checkout
Docs / Clean Sketch

Clean Sketch

Cleans up a sketch that is already in the part, for example one imported the usual way: points merged, duplicates and overlaps removed, lines, arcs, circles and splines that lie in many pieces joined into one, and spline points reduced. A before and after preview shows what will change before you click OK.

Where to find it

SWPlugins Suite tab › Clean Sketch. Use it inside an open 2D sketch, or select a sketch in the FeatureManager tree first.

The sketch is read and cleaned before anything changes, and the page says what the cleaning does: how many pieces become how many lines, arcs, circles and splines, how many closed loops there are and how many ends are still open. The Task Pane shows the sketch before and after. OK replaces the geometry of the sketch with the cleaned one.

What the cleaning does

  • Ends that lie closer together than the tolerance become one point. Zero-length pieces, duplicates and pieces lying on each other are removed.
  • A line, an arc or a circle that lies in many pieces becomes one entity. A run of short lines along a circle becomes an arc or a circle.
  • A free curve becomes one spline with as few points as the fit allows.
  • Lines that are horizontal or vertical within the tolerance are made exactly so, and radii within the tolerance of a round value take it.
  • Tiny imperfections go: a nick, a small step or a sliver between longer pieces becomes one point, and loose bits and specks are removed.
  • The tolerances come from the size of the sketch. You can set them yourself.

Options

Automatic tolerancesOn: points merge within 0.01 mm per 100 mm of sketch size, shapes are fitted within 0.1 mm per 100 mm. Off shows the two values to set by hand.
Merge points withinEnds closer together than this become one point; duplicates and overlaps are judged with it.
Fit shapes withinHow far a curve may lie from the line, arc or spline that replaces it. Larger gives fewer entities and spline points.
Close gaps up toJoins two open ends that are closer together than this. At 0 gaps are only shown, in red.
Remove details smaller thanThe size below which a nick, step, sliver or speck is removed. At 0 only what is smaller than the fit tolerance goes.
Curves asSplines: every free curve is one spline. Arcs: free curves become arcs and lines end to end, for machines that take no splines.
Add basic relationsSays what the sketch already is as sketch relations: shared ends merged, exactly horizontal or vertical lines, and tangent where two entities already run on smoothly. No dimensions. Off by default.

What stays and what goes

  • Construction geometry and sketch text stay as they are.
  • Relations and dimensions on the replaced entities are lost, and features built on the sketch may need their references again.
  • One Ctrl+Z takes back a Clean Sketch of up to 200 entities. Above that the sketch is written a faster way that Ctrl+Z does not take back; the page warns before OK: save the part first.
  • Basic relations are added for up to 500 entities.

Good to know

  • The result is plain SOLIDWORKS sketch geometry: lines, arcs, circles and splines. Nothing depends on the add-in afterwards.
  • Ends that belong together lie on exactly the same point, so SOLIDWORKS finds the closed contours and the sketch extrudes without repair.
  • For a DXF or DWG file, Clean DXF Import reads the file itself and cleans it before it becomes a sketch.