Maybe BCOUNT is what you are looking for?
Look here http://www.hyperpics.com/tipsandtricks/tips.asp?id=58.
Registered forum members do not see this ad.
Hi m8s
Is there a way of counting blocks in an Autocad 2002 LT drawing, I have several site drawings of a hospital that include car parking, I have created a vehicle symbol as a block for each of the following:
Zone One
Zone Two
Zone Three
Pay & Display
Disabled
HNS Vehicle
It would be extremly useful if there was a means of calculating how many spaces I have available for each of the above groups.
I would be glad of any help in pointing me in the right direction.
Thanks in advance
T9
Maybe BCOUNT is what you are looking for?
Look here http://www.hyperpics.com/tipsandtricks/tips.asp?id=58.
Hi
Thanks for your reply
I've tried entering BCOUNT on the command line, and I get an error "Unknown command "BCOUNT". Press F1 for help."
The info on the link above says it should work 0k with v.2002 but I'm not sure if LT is included.
It also says, BCOUNT will run as part of Express Tool, Please can you explain what these are, as I don't think I have them installed.
Thanks
T9


Express Tools are not available with LT (part of why it's cheaper), but check out QSELECT...
Hi
Thanks for your reply
I shall give QSELECT a go on Monday when I'm back at work.
Meanwhile - is it possible for a script to be written for counting symbols/block in 2002 TL ?
Thanks
T9


T9,
One way you could go:
01. Make sure all your blocks are on their own individual layer. Generally you would make your blocks on Layer 0 so that they would inherit the characteristics of the layer into which they are inserted. In this case, I'd make the block for a car that is to go in 'Zone One' on layer 'Zone01'.
02. When you've inserted all your cars, make one of the layers current and turn off all other layers. That should leave you with just the cars for that zone on the screen.
03. Enter a command such as Move or Erase and select them all and you'll get a message on the command line - 'x found'.
Here's a pretty ugly macro that you could employ. Put it onto a button called 'Zone01' and when you hit it, it will run through the above sequence (although it freezes as opposed to turning off the relevant layer). You'll find the 'x found' about 4 or 5 lines up from the command line.
^C^C-LA S ZONE01 F * ;ERASE ALL ^C^CUNDO 1 UNDO 1;
Lisp would be the way to go, but if you've only got LT...
There are 10 types of people in the world: those who understand binary and those who don't...
Registered forum members do not see this ad.
Thanks Wozza and all for your replies
I have tested QSelect in LT and it works fine, not as good as Attribute Extraction in the full version of 2002.
The chap that manages the car parks here at the hospital only has LT and less knowledge of Autocad than me.
Thanks Wozza for the macro.
Regards to all
T9
Bookmarks