AutoCAD-CLI

Compile declarative 2D/3D scenes, buildings, rule checks and ABNT/electrical drawing specs

Declarative CAD as code across Ring 0, Ring 1B and Ring 1C. Expand `cad-building/v1` models into idempotent `cad-scene/v1` drawings with compiled plan/section/elevation/roof/schedule sheets, evaluate `cad-rules/v1` packs offline, insert parametric ABNT library blocks, and build audited `abnt-title-block`, `laser-plate` and `plc-terminal-strip` deliverables.

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

cad library [--name NAME] [--set k=v[,k=v]]
Parametric 2D blocks in millimetres (Ring 0): ABNT sheets sheet-a0..a4, door, window, i-section (your h,b,tw,tf), north
cad scene-build --spec FILE --out FILE [--apply] [--confirm]
Expands a cad-building/v1 JSON (millimetres) into a cad-scene/v1 for scene-apply (Ring 0, AutoCAD not needed): 3D solids at the origin, one dimensioned plan per level to the right, and optional compiled paper-space layouts[] from…
cad scene-apply --spec FILE [--limit N] [--layout NAME] [--file FILE] [--out FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Compiles a cad-scene/v1 or cad-building/v1 JSON (expanded in Ring 0) into model space and any paper layouts[] in ONE transaction
cad scene-extract --out FILE [--scene NAME] [--file FILE] [--acad PATH] [--timeout N] [--apply] [--confirm]` (Ring 1C)
Writes the stored item specs of one scene (model space under entities[] and paper layouts under layouts[]) back to a cad-scene/v1 JSON
cad rules-check --spec FILE --pack FILE
Evaluates a cad-rules/v1 data rule pack (--pack) against a cad-building/v1 building spec (--spec) offline (Ring 0, read-only), returning count, failCount, and items[] (rule, target, value, limit, pass) with `ok…
cad spec-check --spec FILE
Validates a declarative CAD spec JSON
cad spec-show --spec FILE [--outline] [--node ID]
Inspects a declarative CAD spec outline or drills into one parameter/section (--node param.width or --node terminals) offline (Ring 0)
cad spec-set --spec FILE --param NAME=VALUE [--apply] [--confirm]
Updates one top-level parameter in a declarative CAD spec JSON and refuses any value that fails spec-check (Ring 0)
cad build --spec FILE [--out DIR] [--dwg] [--pdf] [--plan] [--acad PATH] [--timeout N] [--apply] [--confirm]
Builds a declarative CAD spec (abnt-title-block, laser-plate, plc-terminal-strip, custom) into an audited AC1027 DXF offline (Ring 0) and optionally native DWG (--dwg) and vector PDF (--pdf) via accoreconsole.exe (Ring 1B)

Common questions

Which drawing recipes ship built into `cad build`?

cad build ships abnt-title-block (ABNT A4–A1 sheets and attributed title block), laser-plate (closed cut profile, mounting holes, CUT/ETCH/BEND layers), plc-terminal-strip (DIN rail and numbered terminal strip for PLC panels), and custom entity lists.

Can I validate and edit specs on a machine without AutoCAD?

Yes. cad spec-check, cad spec-show, cad spec-set and DXF-only cad build run completely offline in Ring 0; adding --dwg or --pdf invokes accoreconsole.exe in Ring 1B.

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