Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone know how to write a lisp file?? 1

Status
Not open for further replies.

Fyrman

Electrical
Dec 11, 2003
4
US
I need to write a lisp file to count the number of certain blocks in a drawing. Does anyone know how to do this?? Thanks for the help.
 
Replies continue below

Recommended for you

Hi, Fyrman:

What version of acad are you using? acad 2000 should have a program on the express menu.

Roberto.
 
Yeah, Acad 2000...I didn't find anything in Express tools.
 
The express tool you're looking for is "bcount", one of the express tools that are "command line only".

Flores
 
AWESOME MAN!!! Thanks a LOT!! Yall have a Merry Christmas!!
 
You should be able to do something like:
"SELECT"
"(SSX)"
Pick the block you want to count
It says how many were found.
 
The attribute extraction routine has functionality built in for doing this. Then you can use that data in an excel file or even access.
 
Just be aware that BCOUNT does not count nested blocks... (blocks within blocks). And AutoCAD 2002's EATTEXT (Enhanced ATTribute EXTract) has a much easier to use interface that:

a.) Handles nested blocks and XREFs,
b.) Can write directly to an XLS or MDB file (if Excel or Access is installed),
c.) Can be saved to a template for frequent or similar extractions.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top