ScriptPro 3.0 is a batch processing utility that allows you to apply a set of commands to multiple drawings. Simply specify a script file that contains the commands you want to run on a single drawing, and then use ScriptPro to apply that script to as many drawings as you like. ScriptPro handles opening and closing each drawing for you, with an easy-to-use interface, logging, reusable project files, and robust error recovery.
+ +Source Code: ADN-DevTech/ScriptPro on GitHub
+ +Supported AutoCAD Versions: AutoCAD 2024 and above (Autodesk's current support cycle)
+Operating System: 64-bit Windows (Windows 10 or later recommended)
+Runtime: .NET 8.0 Desktop Runtime (x64) or above - Download here
+Development: Visual Studio 2022 with .NET 8.0 SDK (required only for building from source)
+ +Using the Installer (Recommended): Run the ScriptPro MSI installer. It will install the application to your Program Files directory and create a Start Menu shortcut.
+Standalone Version: Extract the portable build to any folder and run ScriptUI.exe directly. No installation required.
+Uninstallation: From Windows Settings → Apps & features, find "ScriptPro" and uninstall.
+ +ScriptPro is a batch-processing tool that runs an AutoCAD script on each drawing in a list of drawing files. Before you begin, you should have a specific task in mind and create a script file to handle it.
+ +ScriptPro is a standalone application that runs independently of AutoCAD. Launch it from the Start Menu shortcut or by running ScriptUI.exe directly.
+ +The ribbon contains the following groups:
+How long ScriptPro waits for AutoCAD to respond before aborting the current drawing and moving to the next. Increase this value if processing very large drawings. Default is typically 300 seconds (5 minutes).
+ +Number of drawings to process before restarting AutoCAD. Processing multiple drawings in one session is faster but increases memory usage. Restarting AutoCAD periodically helps manage memory consumption. Set to 0 to never restart.
+ +A script file (.scr) to run once when starting a new AutoCAD session. Use this to load LISP routines, .NET plugins, or configure AutoCAD settings before processing drawings.
+ +Location where log files are saved. Two log files are created per session:
+ProjectName_DD_HH_MM_SS.log - Lists each drawing and its pass/fail statusProjectName_Detail_DD_HH_MM_SS.log - Contains full AutoCAD command-line output for each drawingCaptures a screenshot of the AutoCAD window for each processed drawing. Options: All drawings, Failed drawings only, or None.
+ +When enabled, "Add From Folder" will search subdirectories recursively. When disabled, only the selected folder is searched.
+ +Pauses processing before closing each drawing, allowing you to verify the drawing state. No timeout occurs in this mode. Useful for debugging scripts.
+ +Adds a delay between script commands to give AutoCAD more time to respond. Useful for slower machines or complex operations. Set to 0 for maximum speed.
+ +Specify a particular AutoCAD version to use. If left blank, ScriptPro uses the most recently registered AutoCAD version on your system. If the selected version is already running, ScriptPro will attach to that instance instead of launching a new one.
+ +Runs the script on an empty drawing. Enable this when your script contains commands to open and close drawings (e.g., RECOVER command). The drawing list is used to resolve keywords at runtime.
+Example - Batch Recover Script:
+; Batch recover script for ScriptPro
+QAFLAGS 31
+_RECOVER
+<acet:cfullfileName>
+_SAVEAS
+2018
+<acet:cFolderName>\<acet:cBaseName>_RECOVERED.dwg
+_CLOSE
+
+
+ ScriptPro supports command-line automation for batch processing:
+ +Basic usage:
+ScriptUI.exe "C:\Projects\MyProject.bpl" run
+
+ Silent exit (no user interaction required):
+ScriptUI.exe "C:\Projects\MyProject.bpl" run exit
+
+ This allows you to run ScriptPro projects from Windows Task Scheduler or batch files for unattended automation.
+ScriptPro provides special keywords that are replaced with values from the current drawing being processed. This allows you to create dynamic scripts that adapt to each drawing.
+ +| Keyword | +Description | +Example | +
|---|---|---|
<acet:cFolderName> |
+ Drawing file directory path | +C:\Drawings |
+
<acet:cBaseName> |
+ File name without extension | +Floor_Plan |
+
<acet:cExtension> |
+ File extension | +.dwg |
+
<acet:cFileName> |
+ File name with extension (same as DWGNAME) | +Floor_Plan.dwg |
+
<acet:cFullFileName> |
+ Full path with file name | +C:\Drawings\Floor_Plan.dwg |
+
Use the CALL command to execute another script file and return to the main script. This is useful for modular script organization.
Example:
+ZOOM E
+CALL setup.scr
+; Script continues here after setup.scr completes
+_QSAVE
+
+
+ ScriptPro preprocesses scripts before running, replacing all CALL commands with the actual content of the called scripts. The merged script is placed in the system temporary directory.
+A script is a text file (.scr) containing a series of AutoCAD commands. Create scripts using any text editor (Notepad, VS Code, etc.) and save with ASCII/UTF-8 encoding.
+ +-INSERT "C:\My Project Files\sink.dwg"_QSAVE or _SAVEAS in your script if needed_PURGE instead of PURGE); Purge all unused items from drawing
+_-PURGE _ALL * _N
+_QSAVE
+
+ This is an open-source project maintained by Autodesk Developer Network. Contributions are welcome!
+Repository: github.com/ADN-DevTech/ScriptPro
+ +Original Version 2.0: Virupaksha Aithal (with input from Kean Walmsley)
+Version 3.0 (.NET 8.0 Modernization): Madhukar Moogala
+Icons: FatCow Free Icons
+ +Copyright © 2010-2026 Autodesk, Inc.
+Permission to use, copy, modify, and distribute this software in object code form for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and the limited warranty and restricted rights notice below appear in all supporting documentation.
+Disclaimer: AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC. DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE UNINTERRUPTED OR ERROR FREE.
+ ++ ScriptPro 3.0 | Autodesk Developer Network | 2026 +
+This ScriptPro 2.0 source code
+This is the source code for the application posted here: http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=4091678&linkID=9240618 +
+We intend to correct them as we encounter. We hope this will be still useful for you to get started.
+Good luck!
+Developer Technical Services
Autodesk Developer Network
ScriptPro 2.0 is a batch processing utility that allows you to applya set of commands to multiple + drawings. Simply specify a script filethat contains the commands you want to run on a single drawing, + andthen use ScriptPro 2.0 to apply that script to as many drawings asyou like. ScriptPro 2.0 will handle + opening and closing each drawingfor you. ScriptPro 2.0 takes AutoCAD scripting to a new level withan + easy-to-use interface, logging, reusable project files and robusterror recovery so your processing + continues even when AutoCAD can't.
+This version of ScriptPro is a ground-up rewrite of this highlypopular utility for AutoCAD. It has been + redeveloped with the keyfeature of being usable on 64-bit systems, and is now being providedwith full + source code for others to use and extend.
+This application has been tested with AutoCAD 2008 onwards. It willuse the version of AutoCAD most + recently used on the system. Toselect a particular version of AutoCAD for use with the tool, simplystart + and close that version prior to using it.
+A pre-built version of the application has been provided which shouldwork on 32- and 64-bit Windows + systems. The application requires the.NET Framework 3.5 or above.
+The application has not been tested with all AutoCAD-based products,but should work (see Feedback, below, + otherwise).
+The source code has been provided as a Visual Studio 2008 projectcontaining C# code (not required to run + the tool).
+This application makes use of Microsoft Ribbon for WPF October 2010. This only needs to be installed if + you wish to work with the source project: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4 +
+Copy the contents of the bin folder (the main application file,ScriptPro.exe and its supporting DLLs, + DrawingListUC.dll,Microsoft.Windows.Shell.dll and RibbonControlsLibrary.dll)to the same location on your + local system. Optionally copy thisReadMe to the same folder or the folder above.
+ScriptPro 2.0 is a batch-processing tool that will run an AutoCADscript on each drawing in a list of + drawing files. Before you beginusing ScriptPro 2.0, you should have a specific task in mind.
+It can be as simple or as complex as you like. Once you have decidedon your task and have written a + script to handle it, you decide whichdrawings you would like to run the script with.
+In the ScriptPro 2.0 Project Editor, you can specify the script fileto use and select the drawings to + apply the script to. Thisinformation can be saved as a ScriptPro 2.0 project file.
+While running a project, ScriptPro 2.0 opens each drawing in sequenceand runs the associated script file. +
+The following topics outline each of the steps for creating andrunning a ScriptPro 2.0 project.
+Starting ScriptPro
+ScriptPro 2.0 is a stand-alone application that runs independently ofAutoCAD. To simplify running the + tool, you can create a shortcut toScriptPro.exe on your desktop. Otherwise simply run the + executabledirectly from Windows Explorer or a command-prompt window.
+ScriptPro 2.0 has a ribbon UI. The ribbon has a number of differentgroups. They are List, Drawing Files, + Run, Stop, Optionsand Help.
+New - Creates a new ScriptPro 2.0 project.
+Load - Loads an existing ScriptPro 2.0 project.
+Save - Saves the current ScriptPro 2.0 project.
+Save As - Saves the current project to another location.
+Load SCP Project
+Add - Adds drawing files (DWG & DXF) to the current project.Add From Folder - Adds drawing files (DWG + & DXF) from a selected folder. to the current projectRemove - Removes the selected files from the + current project.Check/Uncheck - Allows drawing files to be skipped during processing.
+Stop - Stops the processing of drawings.
+Options:
+The Options dialog box contains a number of project-relatedsettings:
+A timeout period indicating how long AutoCAD is inactive beforeScriptPro 2.0 aborts processing on the + current drawing and moveson to the next drawing in the list. The time-out period is specifiedin seconds. + If you are processing very large drawings, you may needto increase the time-out period to allow AutoCAD + enough time to openthese drawings.
+This indicates the number of drawings to process prior to restartingAutoCAD. Processing multiple drawings + in the same AutoCAD sessionreduces the time needed to process them - as the application does notneed to + be restarted - but typically leads to a gradual increase inmemory consumption. This option tells + ScriptPro 2.0 to restartAutoCAD after processing a certain number of drawings, resetting thememory + needed by the AutoCAD process.
+A script to be executed once when starting a new AutoCAD session.This can be used to load required LISP, + ObjectARX, .NET or VBAapplications, for instance.
+The location in which logs will be created. Each log will be named using the format
+ SPlog_date_hour_min_seconds.log (e.g. SPlog_20_14_23_49.log) while running unsaved drawing
+ list. In case of running drawing list, the name of log file will include the drawing list name with date
+ time. A detailed log containing the text from AutoCAD's command-line will also be created using the
+ format SPlog_Detail_log_date_hour_min_seconds.log (for unsaved drawing list) and
+ Drawinglistname_Detail_log_date_hour_min_seconds.log .
+
Causes a screenshot to be captured of the AutoCAD application window,whether for all processed drawings + or only the ones that have failed.
+Causes the Add From Folder command to search sub-folders whenpopulating the list of drawings to process. +
+Causes processing to stop just before closing each drawing for theuser to verify the state of the drawing + file. There is no timeoutduring this mode of running.
+Delay setting which enables the user to slow down the tool, which in turnsgives enough time to AutoCAD to + respond to the tools commands
+This option allows the selection of particular AutoCAD version to be used with the tool. If no path is + given, tool will use most recently used AutoCAD version on the system.
+Causes the script to run on empty/dummy document. Use this option when script file has commands to open + and close the drawing. This option is helpful for commands likeRecover which requires the script open + the file. The Drawing list selected in the UIis used to resolve the keywords in run time. This below + example shows the script forperforming batch recover.
+Example 1:
+
+
+ QAFLAGS 31
+ _RECOVER
+ <acet:cfullfileName>
+ _SAVEAS
+ 2007(LT2007)
+ <acet:cFolderName>\<acet:cBaseName>_RECOVED.dwg
+ close
+
+
+
+ To run a series of ScriptPro 2.0 projects from a DOS batch file,you can use the ScriptPro command line + interface:
+<install dir>\ScriptPro <project name> run
For example: C:\\ScriptPro 2.0\\ScriptPro.exe c:\\TestProject.bpl run
You can also use exit at the end to make silent exit of ScriptPro after processing the drawing list.
+For example:`C:\ScriptPro 2.0\ScriptPro.exe c:\TestProject.bpl run exit
+Keywords can be used to specify the current file name and its directory. When ScriptPro runs, it will + replace each keyword with the correct value before processing the script. This is done for each drawing + file after it has been opened so that the keywords are always replaced with the correct values from the + current drawing.
+| Keyword | +Description | +
|---|---|
| acet:cFolderName | +Specifies the drawing file folder name (directory name) | +
| acet:cBaseName | +Specifies the base file name without a directory or extension | +
| acet:cExtension | +Specifies the extension for the drawing file (.dwg, .dwt, or .dxf) | +
| acet:cFileName | +Specifies the base name with the extension. This will have the same value as the + DWGNAME system variable. |
+
| acet:cFullFileName | +Specifies the full file name with path and extension. Call Script files |
+
AutoCAD terminates the current script when a SCRIPT command is invoked. If you wish to call another + script from the current one and continue processing from the current script once the called script + process has completed, you can use the ScriptPro CALL command.The CALL command prompts for the script + file to be called.
+For example:
+
+
+ zoom e
+ call save.scr
+
+
+ ScriptPro preprocesses scripts before running them. During this process, it finds all instances of CALL + and replaces them with the actual script code from the called script. The resulting script file contains + all the code from the original script and all the code from the called scripts. This file is placed in + the temporary directory and is used when running the project.
+A script is a series of AutoCAD commands in a text file that can beused to carry out a task. With + scripts, you can run several commandsin succession. You create script files outside AutoCAD, using a + texteditor (such as Microsoft Windows Notepad) or a word processor (suchas Microsoft Word) that saves + the file in ASCII format. The fileextension must be .scr. All references to long file names thatcontain + embedded spaces must be enclosed in double quotes. Forexample, to insert the drawing c:\My Project + Files\sink.dwg from ascript, you must use the following syntax:
+-insert c:\My Project Files\sink.dwg
+ Script files can contain comments. Any line that begins with asemicolon (;) is considered a comment, and + AutoCAD ignores the linewhile processing the script file. For information about creatingscripts, see the + Customization Guide.
+When putting together a script for use with ScriptPro 2.0, you needto consider the actions you want + performed on the drawing. ScriptPro2.0 will handle opening the drawing file and exiting the file + onceprocessing is complete. ScriptPro 2.0 will not save the drawingautomatically. If you want the + drawing saved, you must put thatinto your script.
+ScriptPro 2.0 preprocesses scripts before running them. During thisprocess, it finds all instances of + CALL and replaces them with theactual script code from the called script. The resulting script + filecontains all the code from the original script and all the code fromthe called scripts. This file is + placed in the temporary directoryand is used when running the project.
+ScriptPro 2.0 comes with some sample files to help you get started.The files are contained in the Samples + sub-folder.
+From Control Panel find ScriptPro and uninstall
This plugin was written by Virupaksha Aithal with input from KeanWalmsley.
+Acknowledgements
+The icons used for this application were downloaded from FatCow http://www.fatcow.com/free-icons
+For more information on developing with AutoCAD, please visit the AutoCAD Developer Center at http://www.autodesk.com/developautocad
+Email us at labs.plugins@autodesk.com with + feedback or requests forenhancements.
+xxxxxxxxxx+
2.0 Original release+
2.0.1 A delay setting is added in options dialog so that users can+
have control over speed of the ScriptPro tool.+
An options is provided (in options dialog) in which+
user can specify the AutoCAD application path to be used+
by ScriptPro tool.+
2.0.2 Keywords capability is added.+
Silent exit capability is added for running ScriptPro through DOS batch file.+
An options is provided (in options dialog) in which+
ability to run the script before opening drawing file is added –+
required for recovery kind of commands. This can be used along+
with Keywords effectively.+
2.0.3 Added support to accoreconsole.exe+
//////////////////////////////////////////////////////////////////////+
(C) Copyright 2013 by Autodesk, Inc.+
Permission to use, copy, modify, and distribute this software in+
object code form for any purpose and without fee is hereby granted,+
provided that the above copyright notice appears in all copies and+
that both that copyright notice and the limited warranty and+
restricted rights notice below appear in all supporting+
documentation.+
AUTODESK PROVIDES THIS PROGRAM AS IS AND WITH ALL FAULTS.+
AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF+
MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.+
DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE+
UNINTERRUPTED OR ERROR FREE.+