Jump to content

Recommended Posts

Posted

Hi everyono,

I’ve tried using the OVERKILL command in AutoCAD to remove overlapping objects. However, it doesn’t have a parameter to keep only the longest object when there are overlaps.

I’m looking for an AutoLISP routine that can work with LINE and PLINE (polylines), detect overlapping or collinear segments, and delete all but the longest one in each group.
Thanks in advance!

Posted

There is an option in OVERKILL to combine co-linear objects that partially overlap.

 

If that's not what you need, post a before/after .dwg.

Posted
21 minutes ago, SLW210 said:

There is an option in OVERKILL to combine co-linear objects that partially overlap.

 

If that's not what you need, post a before/after .dwg.

image.thumb.png.acf73b0a7f88d8aa70f00e91e346b1c2.png

The issue is that in my case the longest object is underneath and the shorter one is on top in the draw order. When I run OVERKILL, it keeps the top-most object, which ends up deleting my longest segment.

What I need is to always keep the longest overlapping segment (LINE or PLINE) and delete the shorter one, regardless of the draw order. 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...