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/v1JSON (millimetres) into acad-scene/v1for scene-apply (Ring 0, AutoCAD not needed): 3D solids at the origin, one dimensioned plan per level to the right, and optional compiled paper-spacelayouts[]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/v1orcad-building/v1JSON (expanded in Ring 0) into model space and any paperlayouts[]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 underlayouts[]) back to acad-scene/v1JSON cad rules-check --spec FILE --pack FILE- Evaluates a
cad-rules/v1data rule pack (--pack) against acad-building/v1building spec (--spec) offline (Ring 0, read-only), returningcount,failCount, anditems[](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.widthor--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.
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
- 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
- Check AutoCAD installations, ROT sessions, plugin status, drawing paths and sealed knowledge base7 verbs