title: draw outline for some connected lines
body: <p>I have some lines that are connected at various points. I want to draw the outline of these lines and I also want to deal with the extra lines at the connection points.</p>
  
  <p>I have seen two similar questions in this website: <a href="https://stackoverflow.com/questions/687173/how-do-i-render-thick-2d-lines-as-polygons">Here</a> and <a href="https://stackoverflow.com/questions/5641769/how-to-draw-an-outline-around-any-line">here</a></p>
  
  <p>I have handled the normal cases by offsetting the Centerlines and then changing the start and end points of the lines.</p>
  
  <p>but I haven't been able to deal with special cases when the points are near each other.</p>
  
  <p>Unfortunately, my reputation is low I couldn't post images to explain this better.</p>
  
  <p>I'm coding in Visual Basic .net and I'm writing for Autocad, but any advice will be very useful to me.</p>