[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Extract Plant Data from Architectural Drawings
Tip# ALSPSOL0706 By Tony Hotchkiss On 01-Jul-2006
Rated By 1 users Downloaded : 996
Categories : Attributed Blocks, Export, File Data, List
Software type : AutoCAD
Rename File To : Tip ALSPSOL0706 plant-list.LSP
Extracts plant lists and quantities for contractors.

Ms. Kirsten Jones of Vancouver, BC, Canada, requested a routine that calculates plant quantities from landscape architecture drawings to produce a plant list for contractors. Kirsten uses a block KEY-PLANT that has two attributes, PLANTTYPE and QUANTITY. The Eattext command doesn't add up the total quantities for each species of plant named in the PLANTTYPE attribute, so it's cumbersome to get the totals after extracting the attribute values.
The AutoLISP solution is PLANT-LIST.LSP, which creates a text file with total quantities separated by plant species.
I wrote the code in AutoCAD 2006 and have tested it in both 2006 and 2007, although it also should run in earlier versions such as 2004 and 2005. The program's execution speed depends on the complexity of the drawing. The example drawing that Kirsten Jones sent me took about five seconds to extract the results.



Average Rating:

User comments
Comment by Chau,Andrew
Posted on 2008-10-07 19:49:43
I can Safely say that this lisp routine does not work in AutoCAD 2008 LT with Lt-extender. "PLANT-LIST Error: bad argument type <NIL> ; expected <CONS> at [NTH]"