Block Count by Name (BC)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | BC |
|---|---|
| Category | Block Tools |
| Author | Michael Flynn |
| Source | mf4633/C3D-AutoCAD |
| License | MIT |
| Version | 1.2 |
| Updated | 2026-07-08 |
| Requirements | AutoCAD (full version; not LT), Civil 3D; should also work in BricsCAD, which supports ActiveX. |
| Prompt language | English |
| Files | blkcount.lsp (2 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Counts block references in a selection or the whole drawing, grouped by block name with dynamic blocks under their real name, and lists a total.
BC is a quick block counter from Michael Flynn's C3D-AutoCAD library. It answers questions such as how many trees, inlets or light fittings are on a plan without going through a data extraction wizard.
Overview
Select blocks, or press Enter to count every block reference in the drawing. Names come from the EffectiveName property, so dynamic block references, which AutoCAD stores under anonymous *U names, are counted under the block's real name. The result is an alphabetical list on the command line with the count for each name and the total.
How to use it
- Load blkcount.lsp with APPLOAD.
- Type BC and press Enter.
- Select the blocks to count, or press Enter to count all blocks in the drawing.
- Read the counts and the total on the command line (press F2 for a long list).
Notes and limitations
- Output goes to the command line only; there is no table or file output.
- With Enter the count covers model space and all layouts, and attached xrefs are counted like blocks.
- Only top-level references are counted; blocks nested inside other blocks are not.
- Sorting is case-sensitive, so names starting with lowercase letters come after uppercase ones.
- The repository was published in 2026; test on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- blkcount.lsp (2 KB)
- License text
References
- Source repository: mf4633/C3D-AutoCAD – https://github.com/mf4633/C3D-AutoCAD/tree/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035
- Author: Michael Flynn – https://github.com/mf4633
- License: MIT – https://github.com/mf4633/C3D-AutoCAD/blob/eeeda7b7b3ffe98917d4b2b3d329d6b84a966035/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal