ScriptPro

Nothing makes writing scripts more enjoyable than ScriptPro, a free program from Autodesk (download it…). This small program allows you to run a script on multiple drawings at once. Here is how to use it…

NOTE: Make sure your scripts have a QSAVE command (followed by an Enter or a blank space) at the end or it will not save your drawings.

Browse to load a script that you saved:

Click this button to add drawings that you want to run the script on:

Browse to the folder(s) where your drawings are stored. When you find a drawing that you want to run it on, click the >> button to add them.

Click the “Run this project…” button to start processing your drawings.

If you haven’t already, it will ask you to save your project. Click the “Yes” button to save it and begin the processing.

ScriptPro will open each drawing in AutoCAD, run the script, and close the drawing. Remember, you need to have a QSAVE (followed by an Enter or blank space) added to the end of your script or it won’t save the drawing.

Download ScriptPro

ScriptPro is free from Autodesk: Download and install ScriptPro…

3 Comments so far

  1. CadKicks.com on September 26th, 2008

    How to Use ScriptPro…

    You’ve been kicked (a good thing) – Trackback from CadKicks.com…

  2. Joe A Perkins on December 23rd, 2008

    I have used Scriptpro for years and found it very useful. Up until the lastests versions of AutoCAD it ran just fine; a little system intensive but it worked. This week I was testing a lisp routine that extracts the filename, creation date, total editing time, and user ID from a drawing file and writes that data to a comma separated value file. My goal is to use Scriptpro and this dwgtime.lsp file to make an excel chart of a previous project to use as a historical basis for estimating future projects of similar type and size.The lisp routine took a some time to perfect and I’m still tweaking, but I am mostly satisfied with it.The test of Scriptpro with this had various problems.

    The first problem is this :

    this is a capture from the project log file

    —————————Project name: dwgtime-test1.scpLocal path: C:\Documents and Settings\jperkins\My Documents\Autodesk\Lisp-testing\UNC path: C:\DOCUMENTS AND SETTINGS\JPERKINS\MY DOCUMENTS\AUTODESK\LISP-TESTING\

    Drawing name: A-101-1029-0100.dwgLocal path: C:\Project-backup\1029-0100 CCE Tampa Expansion\UNC path: C:\PROJECT-BACKUP\1029-0100 CCE TAMPA EXPANSION\

    Processed by Computer: ATL107 User name: jperkins[ Status summary ]———————————*error* Acad Failed to start.———————————————–

    The failed to start error seems to happen because the current version of AutoCAD takes longer to initialize everything and Scriptpro times out. I will increase the timeout value to compensate.

    The next problem is this :

    if Scriptpro is able to run and complete the task, AutoCAD crashes every time when Scriptpro is closing the session with this:

    FATAL ERROR: Unhandled Access Violation Reading 0×0000 Exception at 5380aeh12/22/2008 at 14:28:23.538 Drawing: ————-

    So do you have any advice for how to deal with the large memory footprint of AutoCAD and how it behaves with Scriptpro? The error reports that were generated were sent to AutoDesk as well. I hope they get a bunch of them from others so they will update this very useful utility to work with a single session of AutoCAD.

  3. ArabCAD on July 11th, 2011

    why scriptPro is finding the acad.exe?
    everytime I click Run this script the window opened and says “Could not find acad.exe”
    Any idea what’s going on to my scriptPro?

Leave a reply