Attach to live AutoCAD sessions via ROT and manage open drawings safely
Ring-1A live session control over late-bound COM. Attach strictly through the Windows Running Object Table (ROT) with optional `--pid`, copy production DWGs safely into `workspace/scratch/`, and manage active drawings guarded by active-document checks and `workspace/policy.json`.
7 of the 91 verbs · Windows x64 · Offline DXF + accoreconsole.exe + Late-bound COM
cad info [--brief]- Reports live AutoCAD session version, PID, ROT moniker, quiescence, active drawing, and open documents (Ring 1A)
cad doctor- Diagnoses AutoCAD installations, accoreconsole.exe availability, ROT session health, quiescence, and unsaved drawings (Ring 1A)
cad sandbox --file FILE [--open] [--apply]- Copies FILE into `
cad open --file FILE [--read-only] [--apply]- Opens FILE (or activates it if already open) in the live AutoCAD session (Ring 1A)
cad activate --file FILE- Makes an already-open drawing active in the live AutoCAD session without saving or modifying it (Ring 1A)
cad close [--file FILE] [--discard] [--apply] [--confirm]- Closes an open drawing (active by default) in the live AutoCAD session without saving (Ring 1A)
cad save [--as FILE] [--file FILE] [--expect FILE] [--apply] [--confirm]- Saves the active drawing in place or as a copy via
--as FILEin the live AutoCAD session (Ring 1A)
Common questions
How does AutoCAD-CLI attach to a running AutoCAD session?
Strictly through the Windows Running Object Table (ROT), never CreateObject. cad sessions lists live monikers and PIDs, cad info reads active and open documents, and --pid targets a specific session when multiple AutoCAD windows are open.
How do I avoid altering production DWG files during testing?
cad sandbox --file <drawing> --apply copies a DWG/DXF into workspace/scratch/ using shared read access without locking or touching the original. Write verbs refuse --apply outside workspace/ unless --confirm is passed, and always honor workspace/policy.json.
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.
Other 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
- 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