Print Page | Close Window

-dataextraction file path error

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=7722
Printed Date: 31.May.2026 at 22:20


Topic: -dataextraction file path error
Posted By: archdake
Subject: -dataextraction file path error
Date Posted: 25.Apr.2012 at 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?




Replies:
Posted By: archdake
Date Posted: 27.Apr.2012 at 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?



Posted By: John Connor
Date Posted: 27.Apr.2012 at 20:54
Write a script file.  

-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: archdake
Date Posted: 28.Apr.2012 at 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.





Print Page | Close Window