Wouldn't ObjectDBX be far more complicated then you need?!
I don't understand everyone's issue or aversion to using a simple batch script and a lisp file to do this. Two files.
1. Choose a folder (Mydocuments, c:\temp, etc.)
2. Save the below code as "BatchDrawings_Script.scr"
'(
(command "_audit" "yes") ;; audit the drawing (repeat 5 (command "_purge" "a" "*" "n")) ;; purge the drawing a ;few times (command "_.saveas" "2000" "" "Y") ;; save )
) ; mapcar
)
)
3. Save the below code as "BatchDrawings_accoreconsole.bat"
3a. Update the path to accoreconsole; I use AutoCAD 2022 you may use something different.
@echo off
if [%logfile%]==[] set logfile="%~dp0\scripting.log"
echo ----------------------------------------x- %date% -x------ >> %logfile%
echo Batch command: %0 %* >> %logfile%
echo Started at %date% %time% >>%logfile%
if [%script%]==[] (
set script="%~dp0\BatchDrawings_Script.scr"
argc=0
) else (
set argc=-1
)
set script=%script:\\=\%
:: UPDATE as necessary.
if [%accoreconsole%]==[] set accoreconsole="C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe"
set count=1
for %%x in (%*) do set /A argc+=1
:processArgs
if [%1]==[] goto endmark
if NOT [%~x1]==[.dwg] goto endmark
echo Processing [%count%/%argc%]: %~f1
call %accoreconsole% /i "%~f1" /s %script% /l en-US
echo %accoreconsole% /i "%~f1" /s %script% /l en-US >> %logfile%
set /A count +=1
if errorlevel 1 goto errormark
SHIFT
goto processArgs
:errormark
echo.
echo.
echo ERROR processing %~f1
pause
echo.
goto endmark
:endmark
rem
rem finished
rem
echo Ended at %date% %time% >> %logfile%
rem
rem
4. Open two window explorer windows
4a. To the location where you just saved the above script.
4b. To the location where you have drawings that need scripting.
5. Select dwg files and drag them to the "BatchDrawings_accoreconsole.bat" you just made.
Now you have the batch script and the AutoCAD script (the system to batch drawings is complete).
EDIT: I removed the use of "command-s"; I don't really know what that version of command does so I probably shouldn't use it in a post.
EDIT: I think my browser autocorrected my text (I did not know it did that)?!