Revit PDF batch export from a terminal

install bim-cli · windows · per-user · no admin
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'

Export your entire Revit drawing set to correctly-named PDFs from a terminal — no dialogs to click, no per-seat subscription. One command. bim starts Revit or uses the one you have open; Revit still runs in its own window.

One real run on the Revit 2026 Snowdon Towers sample: all 55 sheets exported, split into 5 trade sets and 55 singles. Silent, waits sped up. Watch on YouTube

Why batch export from Revit is painful

Revit's native Print/Export dialog crashes mid-run on large sheet sets, produces inconsistent file naming, and requires someone to sit at the workstation and click through it. Third-party plugins help, and most of them are driven from Revit's ribbon by a person.

bim-cli talks to a lightweight add-in running inside Revit. You call it from a terminal, a script, or an AI agent. Nobody has to click through Revit.

Export a single sheet

export sheet A-101 to PDF
bim revit export --sheet "A-101" --output ./output

--output is required: it is the folder the PDF and its data files go to. The JSON reply lists the sheets it exported (sheetNumbers), the PDF it wrote (exportedPdfPath) and, with bim data on, the package and sidecar files (packedPath, sidecarFiles).

Export the full drawing set

export every sheet in the model
bim revit export --all-sheets --output ./output

By default every selected sheet goes into one combined PDF, export.pdf in the output folder. For one PDF per sheet, add --per-sheet; files are named by sheet number, or by sheet name with --name-by name:

one PDF per sheet
bim revit export --all-sheets --per-sheet --output ./output

For both in the file name, use --per-sheet --name-by custom --name-pattern "{number}-{name}". A 200-sheet model exports in one command.

Export multiple sheets by number

export a discipline package
bim revit export --sheets A-101,A-102,A-201,A-202 --output ./output/architecture

--sheet-set "Permit Set" exports a named sheet set instead.

Structured bim data alongside the PDF

bim data is on by default. Each export writes up to six JSON sidecars (elements, marks, scales, levels, annotations and titleblock) to a sidecars folder, then packs them with the PDF into a bim-pdf package. An AI agent can read these files directly to answer questions about the drawings, with no Revit session needed after the export.

output/
  export.pdf            the combined PDF -- opens in any viewer
  export.bimpdf         the same PDF with the sidecars embedded
  sidecars/
    elements.json       elements on the sheets
    marks.json          element positions on the PDF pages
    scales.json         view scales
    levels.json         level names and elevations
    annotations.json    annotation data
    titleblock.json     titleblock parameters per sheet

--sidecars elements,marks writes only the ones you name, --no-pack keeps the JSON files without building the package, and --no-bim gives a plain PDF. The bim-pdf format page describes the package.

Control orientation

force landscape orientation
bim revit export --all-sheets --orientation landscape --output ./output

--orientation auto (default) uses each sheet's own orientation setting.

Use from an AI agent

Because bim revit export is a CLI command, any AI tool with terminal access can call it directly. The agent doesn't need to control the Revit UI, click print dialogs, or understand Revit's export settings.

bim revit export --all-sheets --output ./output/permit

After that command, the agent reads output/permit/sidecars/elements.json to verify element counts, check parameters, or generate a submittal log, without going back to Revit.

Install

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

The first bim revit command installs the add-in for your Revit version (or run bim revit install). If bim starts Revit itself, it loads the add-in for you. If Revit was already open, restart it once and choose Always Load when Revit asks about the unsigned bim add-in. Then export runs from any terminal.

agent handoff pattern → bim-pdf format → headless Revit → process exported PDFs → install bim →
install bim-cli · windows · per-user · no admin
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.