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
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.