AboutScott Cook Expertise I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!
Experience Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com.
PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
I work for an electrical eng. firm and I'm trying to find a quick way to make a BOM from an Autocad drawing.
The panel drawings consist of a physical layout of panel components, such as terminal blocks, relays, power supplies, etc.
I'd like to automate the process of counting all the components in a drawing file and populating a BOM, right now we manually count them one-by-one and draw the BOM table.
I'm thinking of creating the components(as blocks) with attributes containing the information I need in the BOM and extracting it to be used in the BOM.
I know how to apply attributes to blocks and can probably figure out how to extract that info into a text file, what I'll need help with is writing a lisp file that will take this information and put it into a table, in Autocad, as lines and text, at a particular spacing.
I'm using Autocad 2002.
thanks,
John
Answer you can use the attext command to get the info out to the file. there are other free and express tools routines you can use to bring any text file into any drawing.
the attext output file will probably not be in the format you like and will require some manual cleanup.
there is a new feature in 2005 that might do what you want a bit better, but I have only looked at it briefly.