The Batch Scripter application allows users to automate the execution of scripts on multiple drawing files. This tool is designed to streamline repetitive tasks in AutoCAD by running scripts across selected drawings efficiently. It creates a script file (.scr) in user's local temporary folder and then run it in the active drawing. It then loops through each drawing file and runs the user defined script.
Browse and Select Drawings: Add multiple drawing files to the list for batch processing.
Remove Drawings: Remove selected drawing files from the list.
Browse Script Files: Select a script file to run on the chosen drawings. Multiple script files can be added one by one.
Run Script: Execute the selected script on all listed drawings with options to save changes.
The main form of the application includes the following components:
Drawing Files List: Displays the list of selected drawing files for script generation and execution.
Browse Drawings Button: Opens a file dialog to add drawing files to the list.
Remove Drawings Button: Removes selected drawing files from the list.
Browse Script Button: Opens a file dialog to select a script file. Script file can be saved in .scr or .txt file format.
Run Script Button: Executes the selected script on all listed drawings.
If an error occurs during any operation prior to running a script, an error message will be displayed with details about the issue. Common errors include file access issues and invalid file formats.
- Download the latest released DLL file found in this repository in the "Release" folder
- Move the file to a desired directory.
- Open AutoCAD and run "NETLOAD" command.
- Browse to the DLL file and load it.
- Run "OW:BatchScripter" command.
I recommend running commands in this format:
'(command "Name" ...)'
for example (command "ZOOM" "E")
Instead of:
Zoom
Extent
Avoid trailing spaces or break lines as this may retrigger the rerun of the Batch Scripter command.
Windows local temporary folder is by default in C:\Users\%username%\AppData\Local\Temp
Script file name is "BatchScripter_Script_" & GUID & ".scr"
Error Log file is saved to user's local temporary directory with a file name of "BatchScripter_ErrorLog_" & GUID & ".log"
Autodesk and AutoCAD are registered trademarks of Autodesk, Inc., in the USA and other countries. BATCH SCRIPTER APP is not affiliated with, endorsed by, sponsored by, or supported by Autodesk, Inc., and/or its affiliates and/or subsidiaries.
A current list of Autodesk trademarks including use guidelines appears at: https://www.autodesk.com/trademark