TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MSTG007 on August 27, 2021, 11:08:33 AM

Title: Counting Named Blocks within a selection set including dynamic nested blocks
Post by: MSTG007 on August 27, 2021, 11:08:33 AM
I am looking for a way to count "Block A" and total the number within the selection set. I have several dynamic blocks with the "Block A" nested in them and normal blocks of "Block A". I am trying to see if i can get a total count if possible and put a mtext label for the area counted.

I have been using Lee's Blockcounter, which is great, but i still need to add the normal blocks up with the nested blocks.

I have also use Lee's Count, but i have to explode all the dynamic blocks then run count to get the number. The table is a nice feature too.

But I am not having luck trying to figure this out. Most things I see, refer back to Lee's awesome programs.

Thanks for any pointers. Hope it makes sense or I am looking at this wrong. lol (Happens alot).
Title: Re: Counting Named Blocks within a selection set including dynamic nested blocks
Post by: mhupp on August 27, 2021, 04:50:58 PM
well get ready for #3

http://www.lee-mac.com/nestedblockcounter.html