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?
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.
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.
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.
seam´s like you need a trainig on ACAD first
Thank you Mr. M_Hensley,
That was the simplest explanation of scripting I have ever heard or read. I normally add a string of commands together and put them in a button. But I have to add filedia 0 to the beginning of some of the the commands and filedia 1 to the end of each of my macro strings. It seems that scripts are so much better. Thanks again and Kudos to you.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!