bim-acad
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Drive AutoCAD from the command line without opening it. bim-acad runs the headless AutoCAD Core Console (accoreconsole.exe) that ships with every AutoCAD install — the full drawing engine, no window, no mouse. Inspect drawings, extract geometry and block data, batch-convert, print PDFs, clean up, and hand structured bim metadata to bim-pdf.
AutoCAD automation via the Core Console. Each command spins the real engine headless, runs a generated script, and returns structured JSON — safe to batch across a whole drawing library.
Requires: a local AutoCAD 2025 or 2026 install. bim-acad auto-discovers accoreconsole.exe (highest year first); bim acad doctor reports what it found. No add-in DLL to install.
How it works
Every verb generates a temporary AutoCAD script (.scr + AutoLISP), runs accoreconsole.exe /i <drawing> /s <script> in an isolated profile, and reads results from a LISP-written side-car file. The Core Console is core-only — AutoLISP and .NET work, but COM/ActiveX (vla-*) does not — so bim-acad stays in core commands and core LISP. Pure-reader verbs open the drawing read-only.
DWG → bim-pdf pipeline
bim-acad's block support is shaped to compose with bim-pdf. Plot a sheet, extract its title-block data, and embed it as a validatable bim-pdf package:
bim acad convert A-01.dwg --format pdf --out A-01.pdf # plot the sheet
bim acad element list A-01.dwg > elements.json # package-v1 metadata
bim pdf package --file A-01.pdf --metadata elements.json --out A-01.pkg.pdf
bim pdf bim.validate --file A-01.pkg.pdf # 6/7 checks pass
bim acad element list emits a bim-pdf package-v1 document (schemaVersion / generator / source / units / sheets / elements) built from the drawing's blocks, attributes, and layouts.
Verbs
| Verb | What it does |
|---|---|
bim acad info FILE
| Report layers, layouts, blocks, model-space entity counts, and extents for a DWG/DXF |
bim acad convert FILE
| Convert/print a drawing to DXF, DWG (version-targeted), or PDF (plotted via DWG To PDF.pc3) |
bim acad purge FILE
| Remove all unused named objects (-PURGE All) and save the drawing |
bim acad audit FILE
| Audit and fix drawing errors (AUDIT) and save; reports errors found/fixed |
bim acad exec FILE
| Run an arbitrary .scr/AutoLISP script against a drawing (core-only; no COM/vla-*) |
bim acad doctor | Driver health check — discovers accoreconsole installs and verifies the output dir |
bim acad version | Driver version |
entity
| Verb | What it does |
|---|---|
bim acad entity list FILE
| Stream model-space entities (type, layer, handle, point, radius, text, block name) as NDJSON |
block
| Verb | What it does |
|---|---|
bim acad block list FILE
| List block definitions as NDJSON (name, instances, has_attributes, anonymous, xref) |
layer
| Verb | What it does |
|---|---|
bim acad layer list FILE
| List the LAYER table as NDJSON (name, color, on, frozen, locked, plottable, linetype) |
attribute
| Verb | What it does |
|---|---|
bim acad attribute list FILE
| Extract block-reference attributes as NDJSON records {name, handle, space, insert, attributes} — feeds `bim pdf form.fill` / `bim pdf package` |
element
| Verb | What it does |
|---|---|
bim acad element list FILE
| Emit a PDF·BIM package-v1 elements.json (schemaVersion/generator/source/units/sheets/elements) from the drawing's blocks — feeds `bim pdf package` |
xref
| Verb | What it does |
|---|---|
bim acad xref list FILE
| List external references as NDJSON (name, path, type attach/overlay, status) |
bim acad xref detach FILE
| Detach external reference(s) (-XREF Detach) and save |
bim acad xref bind FILE
| Bind external reference(s) into the drawing (-XREF Bind) and save |
For agent use: /acad/llms.txt
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Then ask your assistant to run bim describe --json. See what the installer does.