Hi @luke_cope
The program is not 100% complete, but it's in a working enough state for what you need it to do.
Make sure you create a backup of your project first before trying out this code!
When you load the program, you will get two commands:
RenameDrawings (with Dialog Box)
_RenameDrawings (without Dialog Box)
Here is a snippet of the dialog

All the drawing and project properties are available with the %codes. Thanks @rhesusminus for the concept.
Add your name config under the Configure Filename Edit box and click on the Update Button.
The Updated Filename will show the new drawing name.
When happy with he name, click on the Rename Button.
The video below demonstrates the lisp in action (both with and without dialog versions).
Now the limitations of v1 of the lisp.
The project descriptions (LINEXX elements) are also not available yet, I don't think you need these anyway.
The lisp currently only supports one drawing at a time. I need to find some more time test and add batch processing functionality.
I realize that's not very helpful since you want to batch process these drawings. That's why I included the dialog-less version of the command which could be used by calling something like (_renamedrawings "%S-%1")
The benefit of the dialog-less command is that it could be added to a simple one-line script file (.scr) and there is a utility in AutoCAD Electrical which allows you to run scripts on multiple drawings (Batch Processing).
The attached PDF exactly explains how to run a Lisp file across multiple drawings.
Let me know if you run into any issues.
Arshdeep Singh
Electrical Designer & Programmer
C.Tech | CAPM | CMSE | Autodesk Expert Elite
LinkedIn | Autodesk App Store | GitHub
Did you find this post helpful? Please feel free to Like this post.
Did your question get successfully answered? Please click the Accept Solution button to help other users who may have the same question.
