Dynamic Block Counter
See also Block Counter & Nested Block Counter.
Function Syntax | DBCount |
Current Version | 1.1 |
Download | DBCountV1-1.lsp |
View HTML Version | DBCountV1-1.html |
Donate |
Program Description
This program will count all or a selection of standard blocks, dynamic blocks, and external references (xrefs) in the current layout of a drawing, generating a report of the quantities at the command-line and, optionally, to an output file.
For every dynamic block processed with a visibility parameter present in the block definition, the program will also output a breakdown of the number of blocks using each visibility state in the selection.
The results are printed to the AutoCAD command-line (an example of this output is shown below) and may also be written to a Text or CSV file which is automatically created in the working directory with the same filename as the active drawing.
This program utilises my Get Visibility Parameter Name function as part of my set of Dynamic Block Functions.
Example of Output
============================================= Block..................................Count ============================================= Dynamic Block..............................5 State1..................................3 State2..................................1 State3..................................1 --------------------------------------------- Standard Block1............................4 --------------------------------------------- Standard Block2............................7 =============================================
See also Block Counter & Nested Block Counter.
Instructions for Running
Please refer to How to Run an AutoLISP Program.