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
| Task | AutoCAD GUI, by hand | Raw COM / ObjectARX / LISP | AutoCAD-CLI |
|---|---|---|---|
| Audit DXF layers, blocks and attributes without AutoCAD | Open AutoCAD, load the DXF, inspect layers and EATTEXT manually | Buy or maintain a third-party DXF library plus custom audit scripts | cad dxf-info, cad dxf-layers, cad dxf-attrs, cad dxf-audit (Ring 0, offline) |
| Update title-block attributes reliably across revisions | Double-click each title block in the drawing and retype values | Write COM/LISP traversal over GetAttributes() and fragile selection sets | cad dxf-set-attr (offline) or cad set-attr --handle <H> (live, inside UndoMark) |
| Convert DWG/DXF, PURGE and AUDIT in bulk without UI | Open each drawing, type PURGE, AUDIT and SAVEAS one by one | Hand-craft locale-dependent .scr scripts that hang on modal dialogs or translated prompts | cad convert, cad purge --regapps, cad audit --fix via locale-safe accoreconsole.exe |
| Plot layouts to vector PDF automatically | Open Plot dialog, pick DWG To PDF.pc3, paper size and extents every time | Debug whitespace-sensitive _-PLOT prompts in .scr scripts across AutoCAD languages | cad plot-pdf --file <dwg> --out <pdf> --apply (AutoLISP command bridge, verified PDF) |
| Address drawing entities persistently across edits | Zoom, pan and re-select entities in the viewport | Track shifting ModelSpace.Item(i) indices that break after erases or inserts | Permanent hexadecimal DWG Handle (group 5 / HandleToObject) on every verb |
| Generate ABNT title blocks, laser plates or PLC terminal strips | Copy an old DWG template and manually edit geometry and terminal numbers | Write bespoke AutoLISP or .NET ObjectARX generators per drawing family | cad spec-check + cad build --spec ... --dwg --pdf --apply (0-error audited DXF/DWG/PDF) |
| Preview edits before touching production DWGs | No dry run: edits alter the open drawing immediately | Only if you build your own sandbox copy, policy checker and rollback wrapper | Every write verb is a dry run until --apply, guarded by cad sandbox and policy.json |
| Run across AutoCAD versions without Autodesk DLLs | Operate each local AutoCAD installation manually | Reference version-locked Autodesk.AutoCAD.Interop.dll or ObjectARX acdbmgd.dll per release | Single x64 late-bound COM binary + accoreconsole.exe, zero Autodesk DLLs redistributed |
| Chain multi-step drawing workflows deterministically | Run commands manually and track intermediate file paths | Glue ad-hoc PowerShell, .scr and LISP files with brittle console text scraping | cad batch --inline with @sandbox, $ref:ID.PATH and structured JSON output |
| Prevent concurrent agents from corrupting a live session | One drafter per AutoCAD window | Build your own STA lock and active-document check across processes | Global 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.
Verb families
- Inspect, audit, edit and generate ASCII DXF drawings completely offline10 verbs
- Convert DWG/DXF, purge, audit, plot PDF and run batches headlessly via accoreconsole.exe6 verbs
- Attach to live AutoCAD sessions via ROT and manage open drawings safely7 verbs
- Query live AutoCAD layers, blocks, entities, attributes, XREFs, layouts and sysvars8 verbs
- Draw 2D geometry, insert blocks and update attributes or layers by persistent Handle4 verbs
- Create drawings and run 2D CAD edits (move, copy, rotate, offset, fillet, trim, array) by Handle17 verbs
- Add dimensions, hatch, MTEXT, leaders, tables, viewports, XREFs and multi-page vector PDFs9 verbs
- Create and combine 3D solids (extrude, revolve, sweep, loft, boolean, slice, section)8 verbs
- Measure quantities, extract BOMs, run 3D clash checks, diff DWGs and render PNG previews6 verbs
- Compile declarative 2D/3D scenes, buildings, rule checks and ABNT/electrical drawing specs9 verbs
- Check AutoCAD installations, ROT sessions, plugin status, drawing paths and sealed knowledge base7 verbs