AutoCAD-CLI

AutoCAD-CLI vs raw AutoCAD COM / ObjectARX / AutoLISP scripts

Automating AutoCAD directly means juggling version-locked interop/ObjectARX binaries, locale-dependent .scr prompts and fragile collection indices. AutoCAD-CLI implements the plumbing once across three rings: 91 JSON verbs with permanent DWG Handle addressing and dry-run safety until --apply.

91 verbs · 3 execution rings · 10 tasks compared below

TaskAutoCAD GUI, by handRaw COM / ObjectARX / LISP AutoCAD-CLI
Audit DXF layers, blocks and attributes without AutoCADOpen AutoCAD, load the DXF, inspect layers and EATTEXT manuallyBuy or maintain a third-party DXF library plus custom audit scriptscad dxf-info, cad dxf-layers, cad dxf-attrs, cad dxf-audit (Ring 0, offline)
Update title-block attributes reliably across revisionsDouble-click each title block in the drawing and retype valuesWrite COM/LISP traversal over GetAttributes() and fragile selection setscad dxf-set-attr (offline) or cad set-attr --handle <H> (live, inside UndoMark)
Convert DWG/DXF, PURGE and AUDIT in bulk without UIOpen each drawing, type PURGE, AUDIT and SAVEAS one by oneHand-craft locale-dependent .scr scripts that hang on modal dialogs or translated promptscad convert, cad purge --regapps, cad audit --fix via locale-safe accoreconsole.exe
Plot layouts to vector PDF automaticallyOpen Plot dialog, pick DWG To PDF.pc3, paper size and extents every timeDebug whitespace-sensitive _-PLOT prompts in .scr scripts across AutoCAD languagescad plot-pdf --file <dwg> --out <pdf> --apply (AutoLISP command bridge, verified PDF)
Address drawing entities persistently across editsZoom, pan and re-select entities in the viewportTrack shifting ModelSpace.Item(i) indices that break after erases or insertsPermanent hexadecimal DWG Handle (group 5 / HandleToObject) on every verb
Generate ABNT title blocks, laser plates or PLC terminal stripsCopy an old DWG template and manually edit geometry and terminal numbersWrite bespoke AutoLISP or .NET ObjectARX generators per drawing familycad spec-check + cad build --spec ... --dwg --pdf --apply (0-error audited DXF/DWG/PDF)
Preview edits before touching production DWGsNo dry run: edits alter the open drawing immediatelyOnly if you build your own sandbox copy, policy checker and rollback wrapperEvery write verb is a dry run until --apply, guarded by cad sandbox and policy.json
Run across AutoCAD versions without Autodesk DLLsOperate each local AutoCAD installation manuallyReference version-locked Autodesk.AutoCAD.Interop.dll or ObjectARX acdbmgd.dll per releaseSingle x64 late-bound COM binary + accoreconsole.exe, zero Autodesk DLLs redistributed
Chain multi-step drawing workflows deterministicallyRun commands manually and track intermediate file pathsGlue ad-hoc PowerShell, .scr and LISP files with brittle console text scrapingcad batch --inline with @sandbox, $ref:ID.PATH and structured JSON output
Prevent concurrent agents from corrupting a live sessionOne drafter per AutoCAD windowBuild your own STA lock and active-document check across processesGlobal Ring-1A mutex (Global\AutoCadCli.Ring1) + active-changed guard between calls

Paying the plumbing cost once — offline DXF parser/auditor, locale-safe accoreconsole.exe bridge, late-bound ROT COM attach and sandbox guards — gives every script and AI agent a uniform JSON surface.

Common questions

Do I need to write ObjectARX C# or AutoLISP to automate AutoCAD?

Not for everyday inspection, DXF auditing, attribute updates, headless conversion/plotting or declarative 2D generation. AutoCAD-CLI wraps the ROT attach, accoreconsole.exe bridge, pure DXF engine and dry-run safety once, exposing 91 JSON verbs usable from PowerShell, Python, CI or AI agents.

Does AutoCAD-CLI replace an AutoCAD license?

No. Ring 1A and Ring 1B automate the licensed AutoCAD installation already on your Windows workstation. Ring 0 handles pure ASCII DXF inspection, auditing, editing and creation offline.

Run these verbs on your own DWG and DXF drawings

Audit a DXF offline or inspect a live drawing before changing a single entity. 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

Verb families