Closing gaps in lines

Is there a tool for closing gaps in poly curves? I’m trying to reverse engineer a file that was set up for laser cutting. There are little gaps all over the place to hold the pieces into the sprue. I want to close them. It’s easy enough to use the connect tool I was just hoping for an automated way to do it.

This is an old script I dug up, maybe it will work for you - it tries to find the “nearest neighbor” open spot and close the gap with a line segment. Check the results carefully.

–Mitch

JoinDisjointPolyline.rvb (1.5 KB)

Thanks that works great.