Hello everyone !
I'm working with autocad 2013, and i have to delete all duplicates entities.
I know there is the OVERKILL command but it's not working as I need. I need to delete all the duplicates.
Ex : In a drawing, 2 lines are exactly the same, and 1 is different. I need a function that erase the 2 first because they're duplicates and leave the last one on the drawing.
I can do it with a simple algorithm that compare every line with every other line, but it takes a very long time if there's too much line on the drawing.
Is there an other function to do this?
Thanks for replies.
Adri DiCri
P.S : Sorry for my english, not my mother tongue !
Please give more detail as to why OVERKILL isn't working for you...
Hello fenton.webb
As i said, OVERKILL deletes just 1 of 2 duplicates entities, but i need that both entities to be deleted of the drawing, and single entities stays on the drawing.
Imagine a square composed by 2 triangles. I need to erase the duplicated diagonales and keep only the contour.
Or did I miss something with the OVERKILL function???
I hope it's clear enought 🙂
If not, i will try to post a DWG file to explain better 😉
Thanks for your reply !
Adri DiCri
Can't you just re-run the OVERKILL command until all have been removed?
By your own explanation if you have two lines and you delete the one duplicate then the other line is no longer a duplicate and won't be erased.
If you wanted to limit checking every single object in the drawing against a single object. You could get the bounding box of the object and see if any object intersect or are contained within your area and then compare the objects agains that list, instead of the entire drawing.