Author Topic: modified dataextration version  (Read 302 times)

0 Members and 1 Guest are viewing this topic.

dubb

  • Swamp Rat
  • Posts: 1047
modified dataextration version
« 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.

BIGAL

  • Bull Frog
  • Posts: 251
  • 30 + years of using Autocad
Re: modified dataextration version
« Reply #1 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
A man who never made a mistake never made anything

dubb

  • Swamp Rat
  • Posts: 1047
Re: modified dataextration version
« Reply #2 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