AnsweredAssumed Answered

SolidWorks Sketch Repair - Errant Line Segments

Question asked by Jason Taylor on Jan 26, 2016
Latest reply on Jan 27, 2016 by Ivana Kolin

I have written a program that loops through a folder of .DXF files, imports them to a sketch, extrudes them to various thicknesses based on values in a text file, and saves them as a 3D part. Some of the files aren't "clean" and have the tiny extra line segments or gaps between points. I'm able to fix the gaps with the "merge gaps closer than" feature on import. However, I can't figure out a way to fix sketches with errant line segments (see picture for example). Does anyone know of a setting or a way of doing this with code after the sketch is imported?