About Scripts

Script (SCR) files are used to automate repetitive tasks by executing commands and command options in a specific sequence.

Script files are ASCII text files with the file extension .scr and can be edited using a simple text editor such as Notepad on Windows or TextEdit on Mac OS.

When transitioning to the latest release, existing script files should work unless they use commands or system variables that have been deprecated from the AutoCAD-based product. Typically, changes to a command do not impact the execution of scripts because of the way changes are implemented to not affect scripts or AutoLISP files. Copy your existing SCR files to one of the support search paths already defined for the AutoCAD-based product or add the location of your SCR files to the Files tab of the Options dialog box to use then in the latest release.

AutoCAD 2026-Based Products and Later

Asynchronously Load Raster Images
Scripts that modify or plot drawings with raster images might need to be updated to wait for the images to fully load before proceeding. Use the IMAGEASYNCWAIT command after opening a drawing file to ensure that all raster images being loaded in the background are complete before proceeding.
Connected Support Files
Support files are now connected, which means that all drawings and collaborators in an Autodesk Docs project can share one set of support files. For scripts, this can impact where the AutoCAD locates referenced files. If an Autodesk Docs project has not been set up for support files, the locations for all support files are defined by the current AutoCAD user profile.