Export Revit sheets to PDF from the command line
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.
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.
bim revit export-views --filter "FLOOR" --output ./drawings/
{"ok":true,"sheets":12,"output":"C:\\drawings\\export-views.pdf"}
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.
Inspect the export
bim pdf info reads the PDF header and reports page count, producer, and whether the file contains BIM element tags.
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.
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.
bim pdf page collect drawings.pdf --pages 12-24 --out structural.pdf
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.
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.
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.
bim pdf package drawings.pdf --metadata elements.json --out drawings-bim.pdf
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.