AutoCAD Script – Overkill

The command OVERKILL in AutoCAD is useful in removing overlapping objects but some times you just want it to do its thing and move on without worrying about its settings.

The Script today could be a starting point for you to automate this task.

For example, you might want to have the OVERKILL command run and clean up everything that is overlapping no matter their layer or color settings and maybe another time you would like to run the OVERKILL command and have it only “optimize polylines” where it removes extra vertices… Well, with a script, you can easily set these settings and have these various scripts on hand and run the specific script as needed.

Click here to download these OVERKILL script that uses the default values:


OverKILL script


About AutoCAD Tips

This blog serves as a knowledge base for myself (and anyone else) so that I can reference tips & tricks that I have learned and also refer others to it as well. I hope that this blog helps you learn at least one tip to make your drafting/design experience better.
This entry was posted in Customization, Manage, Modifying, Polylines, Scripts, TIPS. Bookmark the permalink.

2 Responses to AutoCAD Script – Overkill

  1. Gene Hayes says:

    flag set, it returns the number of lines. This allows you to chain a number of commands together.

  2. hmikaeili says:

    Hi there,
    I am using Autocad lt 2010 and the script doesn’t seem to be working. I just clicked on the link you provided above and downloaded it. typed script on the command line in AutoCAD lt 2010. asks me where to find the file and i choose the file. but then it says an unknown command and it doesn’t run it. so I was wondering is it because of the version of AutoCAD or i am doing something wrong?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s