Block Count tool in 2022 version

Block Count tool in 2022 version

MRF80
Enthusiast Enthusiast
5,323 Views
11 Replies
Message 1 of 12

Block Count tool in 2022 version

MRF80
Enthusiast
Enthusiast

Hi All,

 The block count tool that has been introduced in the 2022 version of Autocad was almost perfect for some of the data extractions I was looking to do.  I basically wanted to get block counts for specific selections of blocks to put into a table.  However it appears that its not possible to perform the counts on a selection, it only seems to count the blocks on the entire model space, then down to the user to check/uncheck what they want included in the table or not.  I'm currently using the data extraction tool which does what I want it and allows you to select what objects are included.  However the block count tool is far quicker, and If I could find a way to allow it to count by selection it would be perfect. Does anyone know if this can be done? I'm currently using the Full version just for the data extract tool, if I could make this work with the block count tool, I would only need to use LT which would save lots of money every year.

Any help is appreciated.

 

0 Likes
Accepted solutions (1)
5,324 Views
11 Replies
Replies (11)
Message 2 of 12

vinodkl
Mentor
Mentor

Hi @MRF80 

 

Have you tried the "Block counter" lisp? If not then try it out. It's way easier to count the block by selection. You can download the lisp from here

Once the lisp is downloaded drag and drop the lisp in AutoCAD and type in the command "COUNT" and select the blocks and click to place the table which gives you the count of the block in the selections 🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 3 of 12

MRF80
Enthusiast
Enthusiast
Hi Vinodkl.



Thanks for pointing me towards this. It looks good, But I'm struggling to use it. I've no experience with LISPs. The instructions on the links website have confused me a bit. I've managed to download it and save in to the Autocad file. Just not sure how to make it run? Do you have and "idiots guide" 🙂 ?


0 Likes
Message 4 of 12

vinodkl
Mentor
Mentor

Hi @MRF80 

 

As said in my previous post after downloading the lisp files, drag & drop that file into AutoCAD. After that type in the command "COUNT" and select the blocks.

If you find this difficult then,  in AutoCAD type in the command "APPLOAD" and then browse the lisp file you downloaded and select click on "LOAD" and close that window. Now type in the command "COUNT" and select the blocks  🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 5 of 12

MRF80
Enthusiast
Enthusiast
I have it loaded it's definitely there. But just opens up autocad count pallet.


0 Likes
Message 6 of 12

vinodkl
Mentor
Mentor

Hi @MRF80 

Apologies I didn't realize AutoCAD 2022 has already a command named "COUNT" and that's why you are facing this issue. 

Try the attached modified lisp. Load this lisp and then type in the command "COUNTB" and then select the blocks 🙂

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 7 of 12

MRF80
Enthusiast
Enthusiast
Did you attach the modded lisp?


0 Likes
Message 8 of 12

vinodkl
Mentor
Mentor
Accepted solution

Yes. I have attached it @MRF80 

 

vinodkl_1-1624281630785.png

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 9 of 12

thomas_climawest
Enthusiast
Enthusiast
Lifesaver!!!
I've been using this lisp for years now and the 2022 release rendered it useless by giving it the exact same name (Count).
Thanks to you I can continue working!
Message 10 of 12

vladimir_michl
Advisor
Advisor

You can also use _UNDEFINE _COUNT to "hide" the internal command and use the LISP add-on instead of it.

 

Vladimir Michl, www.arkance-systems.cz - www.cadforum.cz

 

0 Likes
Message 11 of 12

jeff
Observer
Observer

I have a drawing that this tool counts some blocks and not others. Is there a reason it would not count some blocks?

0 Likes
Message 12 of 12

milad_f
Community Visitor
Community Visitor

very good. thank you for your help