Display full version of the post: -dataextraction file path error

archdake
25.04.2012, 09:20

Hello!

I'm trying to make a macro to automate dataextraction. I've gone through the wizzard, saved the .dxe file but when I use the command line version of the command (-dataextraxtion) and it prompts for the template file (.dxe) and I type it (e.g table.dxe) I get an error message:Invalid name.Enter the template file path for the extraction:I've saved the .dxe file to a searchable file path. If I have done the extraction and created the .dxe file on one drawing, how can I make the dxe template useable with other drawing files as well?
archdake2012-04-25 09:57:30

archdake
27.04.2012, 20:19
Ok, took care of the filepath problem.

My other concern is how can I automate dataextraction so the template I create can be used in any drawing other than the one it was created for, using the -dataextraction version of the command?

John Connor
27.04.2012, 20:54
Write a script file.  


archdake
28.04.2012, 08:08


The problem I'm facing is that the table inserted with -dataextraction is always the same table that was created when the .dxe template was created during the original dataextraction.The process works fine when the file I use the macro in is the same file that was used to create the extraction template. The table inserted does reflect any changes to the file. When I use the macro in a different drawing though, the table inserted is just the one created with the template and does not dynamically track the current drawing!I thought that ticking the "Include current drawing" in the Data source field would make AutoCAD dynamically apply the template to any file  the macro is used in.