Export Revit sheets to PDF from the command line

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'

One command exports every sheet in the model to PDF. Filter by sheet number prefix, write to any output folder, and get Revit's native PDF engine — vector graphics, embedded element IDs, the same quality as File > Export > PDF — all without touching the Revit UI.

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

Export sheets

export-views drives Revit's built-in PDF engine from the terminal. --filter is a regular expression matched against sheet names; bim revit export --all-sheets exports every sheet in the model.

export all sheets whose name matches a filter
bim revit export-views --filter "FLOOR" --output ./drawings/
{"ok":true,"sheets":12,"output":"C:\\drawings\\export-views.pdf"}
export every sheet in the model
bim revit export --all-sheets --output ./drawings/

export-views writes one combined export-views.pdf; bim revit export writes one combined PDF by default, or one PDF per sheet with --per-sheet, named by sheet number. Revit runs in its own window throughout — bim-cli connects to the running session over a local TCP bridge and drives the export without opening any dialogs.

Works on Revit 2024 through 2027. No admin rights required.

Install bim-cli ->

Inspect the export

bim pdf info reads the PDF header and reports page count, producer, and whether the file contains BIM element tags.

inspect a Revit-exported PDF
bim pdf info drawings.pdf
{"ok":true,"data":{"pages":12,"producer":"Adobe PDF Library 18.0.5","version":"1.6","size_bytes":4096000,"has_bim_tags":true}}

bim pdf pages lists each page with its sheet label and dimensions — useful for scripting downstream steps.

bim pdf pages drawings.pdf
{"page":1,"label":"A101","width_mm":841,"height_mm":594}
{"page":2,"label":"A102","width_mm":841,"height_mm":594}

Split into per-sheet files

Revit combines all sheets into one file when you export a set. page split writes one PDF per page into an output directory.

split a combined sheet set
bim pdf page split drawings.pdf --out-dir ./sheets/

A 142-sheet combined export becomes 142 individual files, one per sheet.

Collect sheets by discipline

page collect assembles a new PDF from specific pages of an existing one. Pass a comma-separated list or a range.

collect structural sheets into a new file
bim pdf page collect drawings.pdf --pages 12-24 --out structural.pdf
collect specific pages by number
bim pdf page collect drawings.pdf --pages 1,3,7,12 --out selected.pdf

Extract BIM element tags

Every element in a Revit-exported PDF is wrapped in a tagged content block that encodes its ElementId. bim pdf marked extracts all ElementIds from the content streams. A typical floor plan contains 300–400 tagged elements.

extract element IDs from a Revit PDF
bim pdf marked drawings.pdf
{"page":1,"element_id":1234567,"bounds":[120.4,340.2,180.1,380.5]}
{"page":1,"element_id":1234568,"bounds":[200.0,340.2,260.0,380.5]}

Pair with bim revit exec to resolve ElementIds back to category, type, and parameter values from the live model.

Optimize for delivery

bim pdf optimize reduces file size without re-rendering. Useful before uploading large combined sheet sets.

optimize into a new file
bim pdf optimize drawings.pdf --out drawings-optimized.pdf

Attach bim data to the PDF

bim pdf package embeds a bim element JSON file as a PDF/A-3 associated file attachment — drawing and structured bim data in one self-contained file.

attach elements.json to the PDF
bim pdf package drawings.pdf --metadata elements.json --out drawings-bim.pdf
revit automation --> headless revit --> bulk edit parameters --> install bim-cli -->
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.