AutoCAD-CLI

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 FILE in 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.

Start a 14-day free trial

Other verb families