AutoCAD-CLI

Measure quantities, extract BOMs, run 3D clash checks, diff DWGs and render PNG previews

Read-only engineering takeoff and visual verification (Ring 1C). Inspect bounding boxes, extract CSV/JSON BOMs, detect 3D interferences, compare DWG revisions by Handle, and render model or paper-layout PNG previews with world-coordinate rulers so an AI agent can verify geometry visually.

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

cad query-bbox [--handle H[,H]] [--layer L[,L]] [--type T[,T]] [--limit N] [--window X1,Y1,X2,Y2] [--crossing] [--file FILE] [--acad PATH] [--timeout N]` (Ring 1C)
Lists model-space entities with bbox [minX,minY,minZ,maxX,maxY,maxZ], size and center, plus the overall bbox
cad measure [--handle H[,H]] [--layer L[,L]] [--type T[,T]] [--limit N] [--density KG_M3] [--file FILE] [--acad PATH] [--timeout N]` (Ring 1C)
Totals count, length, closed area and solid volume per layer in drawing units
cad bom [--handle H[,H]] [--layer L[,L]] [--type T[,T]] [--limit N] [--csv] [--file FILE] [--acad PATH] [--timeout N]` (Ring 1C)
Quantity takeoff: block inserts grouped by name, layer and attribute values, solids by layer with volume
cad clash-check [--layer L[,L]] [--layer-b L[,L]] [--min-volume V] [--limit N] [--file FILE] [--acad PATH] [--timeout N]` (Ring 1C)
Intersects 3D solids of model space, blocks and XREFs
cad dwg-diff --with FILE [--tolerance T] [--limit N] [--file FILE] [--acad PATH] [--timeout N]` (Ring 1C)
Compares model space by Handle: --file (or the live drawing) is the before side, --with the after side
cad preview --out FILE [--file FILE] [--layout NAME] [--view top|front|right|iso-sw|iso-ne] [--window X1,Y1,X2,Y2] [--size N] [--grid] [--hidden] [--mono] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Plots model space (or one paper --layout) to a PNG to look at the drawing (Ring 1C, headless with --file, else live)

Common questions

How does an AI agent inspect its own drawing visually?

cad preview --file <dwg> --out <png> --grid --apply renders model space (top/front/right/iso) or a paper layout to PNG with world-coordinate rulers and returns worldBounds, widthPx and heightPx.

Can AutoCAD-CLI detect 3D interferences and export BOMs?

Yes. cad clash-check intersects 3D solids across model space, blocks and XREFs, while cad bom and cad measure extract block attributes, layer lengths/areas/volumes and CSV/JSON takeoffs.

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