AutoCAD 2013/2014/2015

Reply
New Member
Posts: 2
Registered: ‎01-14-2013
Message 1 of 4 (196 Views)

Automate the Data Extraction (date and time)

196 Views, 3 Replies
01-14-2013 01:11 PM

I have a need to run a data extraction every night at lets say 2am and have it save to a .csv file.  Does anyone know of an easy way I can do that?

*Expert Elite*
M_Hensley
Posts: 1,647
Registered: ‎12-11-2003
Message 2 of 4 (178 Views)

Re: Automate the Data Extraction (date and time)

01-15-2013 04:03 AM in reply to: jason.rose

Create a script file that has your data extraction commands in it. Now in Windows control panel create a scheduled task to launch AutoCAD using the /b switch followed by the name of the script file.

New Member
Posts: 2
Registered: ‎01-14-2013
Message 3 of 4 (167 Views)

Re: Automate the Data Extraction (date and time)

01-16-2013 06:09 AM in reply to: M_Hensley

I've been trying to write that script... but can't get it to work.  Is there a place I can go to get a working similar script and alter it.

*Expert Elite*
M_Hensley
Posts: 1,647
Registered: ‎12-11-2003
Message 4 of 4 (158 Views)

Re: Automate the Data Extraction (date and time)

01-16-2013 12:07 PM in reply to: jason.rose

A script file is just a list of commands like you would type on the command line in AutoCAD. A script can't interact with a dialog box, so you need to use the command line version of each command. Just go through the operation manually using the command line, then open Notepad and type each command line entry on its own line (no spaces). Save it with a .scr extension. To test it type SCRIPT in AutoCAD and select the file.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube