TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dubb on January 30, 2019, 10:00:11 PM

Title: modified dataextration version
Post by: dubb on January 30, 2019, 10:00:11 PM
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.
Title: Re: modified dataextration version
Post by: BIGAL on February 06, 2019, 07:39:44 PM
This is something I have looked at a better dataextraction, I have a block extract that does multi attribute sort so it counts blocks that have name att1 att2 etc
Door Black 720x2400 52, Door black 820x2400 10

It’s a work in progress but finally have time to work on it. It’s
Title: Re: modified dataextration version
Post by: dubb on February 07, 2019, 01:25:14 PM
I also have something in the works. I am trying to figure out how to iterate through nested attributes. I already know how to count blocks and create a text file. Keep us posted.

This is something I have looked at a better dataextraction, I have a block extract that does multi attribute sort so it counts blocks that have name att1 att2 etc
Door Black 720x2400 52, Door black 820x2400 10

It’s a work in progress but finally have time to work on it. It’s