Guys,
This is a great thread! I'm already using the QTY's part, but at my company we also have a LENGTH attribute in our BOM block. Is it possible to get a total of the each QTY x LENGTH attribute? Our BOM block has attributes for ITEMNUM, PARTNUM, QTY, PARTDESC, LENGTH, and WEIGHT. Which brings up another idea. Can it also get the total of the weights?
Darren
Sorry, I misread the original post. Didn't see the text was in attributes.
Quote:
I've got a function called DAREA that I wrote for dynamically updating text with the area of polylines. You can link
polylines to text objects (for the area) and also link text objects to other text objects (for the sum of areas). The links
are stored in an XData dictionary so they're saved with the drawing.
You could use the sum function for adding up your BOM and update it without having to select the text objects
everytime.
Load the darea.lsp in AutoCAD. Run DAREA, type PA for ParentAdd, select your total text object, type S for Sum,
then select your text objects to add up. When you're done, it totals them and updates the total text. To update the
sums at any time, type DREC
(The vlax-ldata.lsp is a library of functions that simplifies XData management and is loaded automatically by
darea.lsp)