AutoCAD-CLI

Convert DWG/DXF, purge, audit, plot PDF and run batches headlessly via accoreconsole.exe

Ring-1B headless AutoCAD Core Console automation. Convert between DWG and DXF versions, purge unused symbols and Regapps, audit and repair drawings, plot vector PDFs with DWG To PDF.pc3, and execute multi-step batch scripts in isolated scratch copies with timeout watchdogs.

6 of the 91 verbs · Windows x64 · Offline DXF + accoreconsole.exe + Late-bound COM

cad convert --file FILE --out FILE [--format dwg|dxf] [--version 2018|2013|2010|2007|2004|2000|R12] [--acad PATH] [--timeout N] [--apply] [--confirm]
Converts between DWG and DXF (or AutoCAD drawing versions) headlessly via accoreconsole.exe (Ring 1B) using locale-safe _SAVEAS and a scratch working copy
cad purge --file FILE [--out FILE] [--regapps] [--acad PATH] [--timeout N] [--apply] [--confirm]
Runs headless _-PURGE _All (and _-PURGE _Regapps with --regapps) via accoreconsole.exe (Ring 1B), saving to --out FILE or in-place
cad audit --file FILE [--out FILE] [--fix] [--verbose] [--acad PATH] [--timeout N] [--apply] [--confirm]
Runs headless _AUDIT on a DWG/DXF via accoreconsole.exe (Ring 1B) against an isolated scratch copy
cad plot-pdf --file FILE --out FILE [--layout NAME] [--paper SIZE] [--acad PATH] [--timeout N] [--apply] [--confirm]
Plots a DWG/DXF layout (default Model) to vector PDF via headless accoreconsole.exe _-PLOT using DWG To PDF.pc3 (Ring 1B)
cad console-run --script FILE [--file INPUT] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]
Runs a custom .scr script headlessly in accoreconsole.exe (Ring 1B) wrapped with _FILEDIA 0, _CMDDIA 0, AutoLISP JSON sentinel verification, and a hard --timeout watchdog (default 120 s)
cad batch [--script FILE] [--inline TEXT] [--check] [--fail-fast] [--digest] [--apply] [--confirm]
Runs multiple CLI verbs in sequence from a JSON --script FILE or semicolon-separated --inline string (Ring 1B)

Common questions

How does AutoCAD-CLI convert DWG/DXF or plot PDFs without opening the AutoCAD GUI?

Ring-1B verbs (cad convert, cad purge, cad audit, cad plot-pdf, cad console-run) launch AutoCAD's own headless accoreconsole.exe against a scratch copy using locale-independent underscore commands (_SAVEAS, _-PURGE, _AUDIT, _-PLOT), FILEDIA 0, CMDDIA 0, an AutoLISP JSON sentinel and a hard timeout watchdog.

Can I chain offline DXF, headless Core Console and live steps together?

Yes. cad batch runs a JSON script or --inline command sequence with @sandbox and $ref:ID.PATH token substitution, --check pre-validation and --fail-fast execution.

Run these verbs on your own DWG and DXF drawings

Every verb above returns structured JSON and takes plain command-line flags. AutoCAD-CLI is local and on-premise: zero UAC elevation, zero Autodesk DLLs redistributed, and every write is a dry run until you pass --apply. Fourteen-day free trial with corporate e-mail, no card.

Start a 14-day free trial

Other verb families