I am Trying to write a simple code to extract attribute info from a block. I want to use this block for all my CAD drawings, despite that the may be different and compile all info on to one text file.
I Am running CAD 2007
so I created a BOM with attributes I created a template using EATTEXT, Next I used ATTEXT to extract a TEST sample of attribute information.
Problem when I extract and replace information my template is not updating with new text i input and my output file is blank. after i select an save and extract the changes to the block.
I am also getting an error:
Invalid field specification: (then it shows a jumbled up order of my tags. that doesnt match that of the template.
The Blocks name is BOM_TEXT.dwg
The OUTPUT (that is Blank) is called outputbom.txt
The Template I created is called templatebom.txt
now the code I VBARUN and created
Sub BOM()
open "BOM_TEXT.dwg" as output #1
write #1, "txt.outputbom.txt" eof(1)
end
end sub
I eof so all new blocks i oped will add new text from block to the end of the last text.
any sugestions or corrections?
I Am running CAD 2007
so I created a BOM with attributes I created a template using EATTEXT, Next I used ATTEXT to extract a TEST sample of attribute information.
Problem when I extract and replace information my template is not updating with new text i input and my output file is blank. after i select an save and extract the changes to the block.
I am also getting an error:
Invalid field specification: (then it shows a jumbled up order of my tags. that doesnt match that of the template.
The Blocks name is BOM_TEXT.dwg
The OUTPUT (that is Blank) is called outputbom.txt
The Template I created is called templatebom.txt
now the code I VBARUN and created
Sub BOM()
open "BOM_TEXT.dwg" as output #1
write #1, "txt.outputbom.txt" eof(1)
end
end sub
I eof so all new blocks i oped will add new text from block to the end of the last text.
any sugestions or corrections?