Can I run the dataextraction command via a command line and respond to the prompts via lisp or script. In other words is there a commandline version of dataextraction - setting cmddia to 0 doesn't help. Thanks for any help
@Anonymous wrote:Can I run the dataextraction command via a command line and respond to the prompts via lisp or script. In other words is there a commandline version of dataextraction - setting cmddia to 0 doesn't help. Thanks for any help
Command: -DATAEXTRACTION
Henrique
@Anonymous wrote:
Hello Henrique,
Thanks for the help, but I don't seem to be able to control the path
and name of the output file - it just wants to create one the same
name as in the dxe file. I don't seem to be able to use the name of
a variable such as (getvar "dwgname") to make a generic extraction file.
George, neither I!
A workaround:
(command "-DATAEXTRACTION" "C:\\DATAEXTRACTION\\01.dxe" "Y");; the .dxe directory
(if (findfile "C:\\DATAEXTRACTION\\01.xls");; the directory where .dxe saves the xls
(vl-file-rename (vl-file-rename "C:\\DATAEXTRACTION\\01.xls" (strcat (getvar "dwgprefix") (vl-filename-base (getvar "dwgname")) ".xls"))) );; renames the .xls file to the current directory with the current dwg name
Not a very clean way...
Henrique
Thanks for your comments and code - I was thinking of a similar idea but your code is great.
George
oops typo??
(vl-file-rename (vl-file-rename "C:\\DATAEXTRACTION\\01.xls" (strcat (getvar "dwgprefix") (vl-filename-base (getvar "dwgname")) ".xls")))
??
@Anonymous wrote:oops typo??
(vl-file-rename (vl-file-rename "C:\\DATAEXTRACTION\\01.xls" (strcat (getvar "dwgprefix") (vl-filename-base (getvar "dwgname")) ".xls")))
??
Yes, typo!
I seem to have intermittent problems with the "-dataextraction" command. If I run the routine on a new drawing this is OK, but if i then edit the number of blocks the routine does not reliably produce new data. I've given up using it and writing my own lisp. If any one is interested I will post it. rgds George (New Zealand)
Can anybody tell me if there is a way to run dataextracition in autocad 2014 LT? I use it in standard version, and when I went to access it in LT it isn't there. It is important that I use it.
Looks like data extraction is not a part of LT.
But this link seems helpful ?
http://www.cad-notes.com/how-to-extract-block-attributes-in-autocad-lt/