Block Count

Here’s a way to count the blocks in your drawing.
Use the command BCOUNT and you can individually select blocks, use a window selection or type ALL at the command line and every block in your drawing will be selected. After you make your selection set, hit <enter> and in the command line, a list will show the name of the block and the number of occurrences the block either appears in your selection set or if you entered “ALL,” it will show how many times every block appears in your drawing.

To see a more full list, hit F2 and a window will pop up. This window is your command line in a bigger format and it allows you to see your command history more easily. And in this case, allows you to see your list of blocks better.

From this list you can select the list and copy and paste it into a text editor if you needed a text file of your blocks (just an idea…)

(I promise, that when I figure out how to post code using the blog editor, I will post some AutoLISP/VisualLISP codes that do a better job at counting blocks)

About these ads

About AutoCAD Tips

I work for a large engineering firm and perform various CAD Administration duties and. I enjoy teaching/tutoring people in AutoCAD and seeing them enjoy using the program as much as I do. I hope that you find this blog a useful tool.
This entry was posted in Blocks, TIPS. Bookmark the permalink.

10 Responses to Block Count

  1. Jose says:

    Hi,

    Just stumbled upon your site and found really useful info. Thanks for posting!
    Regarding this post, is BCOUNT supposed to come with the software? I used it a lot at a previous workplace but now that I am with my own copy of Auto CAD arch 2011 it won’t work. It is basically not found, any idea why?

    Thanks in advance!

  2. mitra says:

    Hi,I need to count blocks in a drawing.the way that you mention was so usefull
    im so proud of you :)

  3. Ankit says:

    Thanks friend. It help alot.

  4. Jon says:

    I just started with a new design/build firm and they have AutoCAD LT, which is obviously missing Express tools. In this case, what’s the best way to block count…?

    • AutoCAD Tips says:

      There isn’t a programmatic way of doing a block count like shown in the post.
      If there LT has Quick Select (QSELECT) you can use it to select all instance of a block by the block name and then use the LIST command to see how many are selected.
      The FILTER command is similar and will show you automatically how many objects (block in your case) have been selected

      [edit] I just though of an easier way depending on whter or not AutoCAD LT has this functionality – Select the block you want to count. Right-click then click “Select Similar” from there you can either look at the command line history or use the LIST command to see the results.
      ~Greg

  5. AAA says:

    thank u man It really works !!!!

  6. Andre says:

    Tank you soo much!!! The BCOUNT command saves my life!!!

  7. moses says:

    thanks man you have saved me with the task of counting one block by one

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s