I am looking for a script or some guidance on how to extract block names, layers, & attribute information from a selection of objects and have it written to a delimited file to use for bill of materials. Some blocks have attributes with numeric values and some blocks don't have attributes but needs to be counted.
At first, I thought I could use ._dataextraction but it doesn't have many options and the .dxe file keeps referring to the original .dxe template. So I want to avoid using this method. Also because the dataextraction command has too many dialogue boxes to go through making it confusing and hard to teach others. I imagine, run a command select the objects, define the output file. The calculation of attribute values and block counts happens externally in a spreadsheet.
If i were to create a script
I would use ssget to select all of the blocks and attribute blocks along with their tag values and their layer state. Utilize a file dialogue box to define the output of the file.
Any help would be greatly appreciated.