Delete Blocks
eplisp, the free multilingual LISP library
| The author does not allow redistribution; download the file from the author's own site. | |
… Rate this tool: | |
| Commands | DELBLOCKS |
|---|---|
| Category | Block Tools |
| Author | Lee Mac |
| Source | Lee Mac Programming |
| License | Author's terms of use |
| Version | 1.1 |
| Requirements | AutoCAD (full version) or AutoCAD LT 2024 and later; not for AutoCAD for Mac |
| Prompt language | English |
| Added | 2026-10-26 |
| Go to the author's page ↗ | |
Deletes all references of chosen blocks, nested ones included, from every layout and removes the block definitions where possible.
Delete Blocks is a Lee Mac AutoLISP program that removes unwanted blocks from a drawing completely. It saves finding and erasing every instance of a block by hand.
Overview
When run, you can pick a block in the drawing or type N to choose by name. Choosing by name opens a filterable list of standard and dynamic blocks (anonymous blocks and xrefs excluded), and several can be selected. The program erases all references of those blocks from every layout, then tries to remove the definitions and reports the result at the command line.
The file also defines an LM:deleteblocks function that scripts or other LISP programs can call for batch processing.
How to use it
- Download the .lsp file from the author's page and load it into AutoCAD with APPLOAD.
- Type DELBLOCKS at the command line.
- Pick a block in the drawing, or type N and choose blocks from the list.
Notes and limitations
- It deletes objects and block definitions, including nested references. Use UNDO if needed, or try it on a copy first.
Source and license
This tool is not made by eplisp. The description on this page is written by us; get the file and its latest version from the author's page.
The author allows free use for yourself or within your organization; redistribution needs written consent, so we only link to the author's page.
References
- Lee Mac Programming (author's page) – https://www.lee-mac.com/deleteblocks.html
- Author: Lee Mac – https://www.lee-mac.com/
- License: Author's terms of use – https://www.lee-mac.com/terms.html
Found a mistake, or are you the author of this tool? Request a correction or removal