PDA

View Full Version : AutoCAD LT 2007 - Counting number of Blocks in a DWG file?



seanp
2007-03-08, 06:50 PM
I'm not the greatest CAD guy, and this is a problem I should have resolved years ago, maybe someone can help. I need to count how many card readers I have placed in a fairly large building. This item Ive populated the drawing with is just a block with a name, not any other attributes to it. Ive populated 11 floors with this block and want to know how many are in the drawing so my count is accurate to what I have actually on paper, I do design and estimating and this would be a great help as I'm sick of using a hand counter to get totals for the items i need (like how many doors in the building). Is there a audit function i AutoCAD that works it out for me?

david_peterson
2007-03-08, 06:59 PM
As a quick solution you can use the filter command with the block name and apply it to each floor plan. Then in the props dialog box, you can get a count of how many of that block name you've just selected. Just a thought.

H-Angus
2007-03-08, 07:11 PM
This thread (http://forums.augi.com/showthread.php?t=12162) may interest you. :wink:

jaberwok
2007-03-08, 07:23 PM
I'm sure I've seen public domain lisp routines called "blockcount.lsp" and similar.
It may be worth a google search.

seanp
2007-03-08, 09:08 PM
thanks guys. I haven't got the filters or the lisp functions experience yet, but this is a good challenging exercise for me. Also, my problem in trying to do this is I have LT 2007. So I have to save down to 2000 to use the functions...oh well.

jaberwok
2007-03-08, 09:12 PM
thanks guys. I haven't got the filters or the lisp functions experience yet, but this is a good challenging exercise for me. Also, my problem in trying to do this is I have LT 2007. So I have to save down to 2000 to use the functions...oh well.

and the lisps won't help you either. :-(
unless you have an add-on to run lisp with LT.

Opie
2007-03-08, 09:43 PM
thanks guys. I haven't got the filters or the lisp functions experience yet, but this is a good challenging exercise for me. Also, my problem in trying to do this is I have LT 2007. So I have to save down to 2000 to use the functions...oh well.
Does QSELECT work in LT?

seanp
2007-03-08, 10:13 PM
yes. Qselect works. However, I havent used it before. I'm still a intermediat user and just havent known about it.

Opie
2007-03-08, 10:22 PM
yes. Qselect works. However, I havent used it before. I'm still a intermediat user and just havent known about it.
You can use it to select specific blocks ( and pretty much everything else ) into a selection set. The number of blocks selected should be displayed at the top of the Properties Palette.

There is also an ATP course on it. Check the Education pages to find it.

dzatto
2007-03-09, 03:20 AM
How about selectsimilar? Is that command on LT? It may be easier to just select one, hit select similar, then look at the number in the properties dialogue box.

That should work for your doors and windows too.

Opie
2007-03-09, 03:36 AM
How about selectsimilar? Is that command on LT? It may be easier to just select one, hit select similar, then look at the number in the properties dialogue box.

That should work for your doors and windows too.
It's not a vanilla AutoCAD command. It is usually found in the verticals.

Also, check out archived course "ATP136 Have You Met QSelect? (http://www.augi.com/education/archive.asp?page=293)"

Mike.Perry
2007-03-09, 11:12 AM
[ SNIP ]

Also, my problem in trying to do this is I have LT 2007. So I have to save down to 2000 to use the functions...oh well.Hi "seanp"

Please note I have *moved* this thread from the AutoCAD 2007 General (http://forums.augi.com/forumdisplay.php?f=342) forum to this one...

Thanks, Mike

Forum Manager

Mike.Perry
2007-03-09, 11:23 AM
I haven't got the filters or the lisp functions experience yet, but this is a good challenging exercise for me. Also, my problem in trying to do this is I have LT 2007.Hi

Via the AUGI forums...

Block Counting Tool

Via the Autodesk Discussion groups...

Block Count (http://discussion.autodesk.com/thread.jspa?messageID=4924671)

counting blocks in a drawing (http://discussion.autodesk.com/thread.jspa?messageID=5140991)

Blocks Listing & Counting (http://discussion.autodesk.com/thread.jspa?messageID=5056814)

Using FILTER command for block count... (http://discussion.autodesk.com/thread.jspa?messageID=5004796)

Have a good one, Mike

jaberwok
2007-03-09, 01:41 PM
How about selectsimilar? Is that command on LT? It may be easier to just select one, hit select similar, then look at the number in the properties dialogue box.

That should work for your doors and windows too.

No. It's not even in AutoCAD - it's an ADT(?) thing. :-(

jpaulsen
2007-03-09, 03:39 PM
Not sure if this command works in LT or not but you can try the Attribute Extraction Wizard (EATTEXT). It works in vanilla AutoCAD.

It can count blocks and attributes and also build a table for you. It does not require the blocks contain attributes.

tyshofner
2007-03-09, 05:11 PM
Unfortunately with LT you don't have the best tools to acccomplish this. You can't use LISP routines, and you don't have the Enhanced Attribute Editor. Your best bet is to use Quick Select. In the Object Type specify: Block Reference, and then on properties select the "Name" option , on operator select equals, then on value select the name of the block you want Hit OK and it should select all the blocks and report how many it found on the command line.

Ty :mrgreen:

Wanderer
2007-03-11, 11:44 PM
No. It's not even in AutoCAD - it's an ADT(?) thing. :-(ADT/ABS yes, SelectSimilar was available in MAP2006 as well, but, not 2007 :cry:
One of my friends from the Adesk Discussion Groups wrote a routine (http://www.google.com/search?hl=en&rls=GGGL%2CGGGL%3A2006-26%2CGGGL%3Aen&q=select+similar+routine+autocad&btnG=Search) that functions in the same way, but, unfortunately, it is lisp, so would not work with AutoCAD LT (darned shame, because I could not work without it now that I have used it).