flopo Posted June 13, 2011 Share Posted June 13, 2011 Hello everybody, I'm working with lot of old drawings, with tousands mistakes - like entities with ends that not link each other - probably osnap used wrong. Any idea for a lisp that will draw a circle (in a new layer) around the place where 2 entities have a small gap with a given value? Like overkill command with numeric fuzz - but only to draw a circle around that gap? To be between lines, polylines, circles, splines, and even between a dimension and a entity (like a line...). Is is possible? Thanks! See the attached drawing. osnap drawing.dwg Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 13, 2011 Share Posted June 13, 2011 Possible, but very difficult indeed - especially for the circle example in your drawing. The first algorithm that comes to mind would be to check the endpoints of every object in the drawing with the endpoints of every other object in the drawing and use a condition such as: (if (and (not (equal p1 p2)) (equal p1 p2 fuzz)) ...Draw Circle... Where 'p1' and 'p2' are two points to be tested and 'fuzz' would be your tolerance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.