link=https://www.cadtutor.net/forum/topic/74046-batch-processing-of-script-files-on-drawing-files-with-matching-names/?do=findComment&comment=586532
have a single script with this content? then each drawing will run a script with same file nameCode: [Select](command "script" (strcat (vl-filename-base (getvar "dwgname")) ".scr"))
Because accoreconsole will only allow the use of plain AutoLisp some utilities have to be rewritten
John,
I see accoreconsole has this line. Does vl-filename-base qualify as plain AutoLisp?QuoteBecause accoreconsole will only allow the use of plain AutoLisp some utilities have to be rewritten
(str_subst ".scr" ".dwg" (getvar 'DWGNAME))
Nope (but I suspect you already know that *hmm*).
For Bricscad, batch processing drawings is easy. A single drawing can open/close a list of drawings from lisp, and run lisp commands on them at same time. (Either auto or visual lisp.) Much easier than the boot-strap autocad methods.
I get the impression you don't like AutoCAD.
So can AutoCAD. The point about using `accoreconsole.exe` (a stripped down version of AutoCAD) is that you don't load the UI (user interface) so processing a 100+ or so drawings will take a few minutes vs an hour. ScriptPro used to be a way "faster way" to launch AutoCAD and run a script but it was so slow no one liked using it because a separate AutoCAD instance launched each time (ANNOYING!). ScriptPro died a long time ago.
This was my replacement for scriptpro (10 years ago when I used AutoCAD). ...yay! But the whole point to Automation is trying to be as quick as you can; a full blown interface is not efficient and neither is launching a program to run another program to automate (hence why I wrote the windows batch script; I dont have to launch anything to run a script).