bim-blender

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'

Use bim-blender to convert IFC and other 3D files headlessly, or drive a live Blender session from the command line. Supports FBX, glTF/GLB, OBJ, USD, and BLEND natively -- IFC work runs on IfcOpenShell, which comes with the free Bonsai add-on. Your AI assistant can batch-convert files, load IFC models, and place geometry in a scene you're actively working in.

Headless format conversion and live Blender control via a local TCP bridge. One install command sets up a managed Blender 4.5.10 LTS -- no manual Blender setup required.

Install managed Blender: bim blender install -- downloads Blender 4.5.10 (~395 MB) to %LOCALAPPDATA%\bim-cli\blender\. No admin, no system-wide Blender install required. Run once, idempotent.

Add IFC support: bim blender install --component bonsai -- adds the free Bonsai extension (~118 MB), which bundles IfcOpenShell. bim's IFC verbs (ifc validate, ifc convert, ifc pdf export) run on IfcOpenShell.

How it works

Two modes in one driver:

Convert -- format matrix

Supported conversions. * = requires bim blender install --component bonsai.

From To Requires Bonsai
IFC FBX, glTF/GLB, OBJ, USD, BLEND Yes *
FBX glTF/GLB, OBJ, USD, BLEND No
glTF/GLB FBX, OBJ, USD, BLEND No
OBJ FBX, glTF/GLB, USD, BLEND No
USD FBX, glTF/GLB, OBJ, BLEND No
BLEND IFC *, FBX, glTF/GLB, OBJ, USD IFC only *

exec globals

These variables are pre-injected into every bim blender exec snippet:

Variable Type Availability
bpy Blender Python API module always
bpy.context active context always
bpy.data data block access always
bonsai Bonsai module when Bonsai installed
tool bonsai.tool helpers when Bonsai installed
ifcopenshell IfcOpenShell module when Bonsai installed

Return a value by assigning to _. Non-JSON-serializable results fall back to repr().

Verbs

VerbWhat it does
bim blender versionDriver version
bim blender doctor
  • [--blender-version BLENDER-VERSION]
Check bim-blender environment: managed Blender install, Bonsai addon, bridge addon version; lists all managed installs when called without --blender-version
bim blender status
  • [--blender-version BLENDER-VERSION]
Show managed Blender install info and any running session (pid, port, alive)
bim blender convert
  • --file FILE
  • --out FILE
  • [--in-format IN-FORMAT]
  • [--dry-run]
  • [--timeout TIMEOUT]
  • [--blender-version BLENDER-VERSION]
Convert between 3D file formats headlessly (FBX, glTF/GLB, OBJ, USD, BLEND; IFC requires --component bonsai)
bim blender install
  • [--component COMPONENT]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Install managed Blender (and optionally Bonsai) into %LOCALAPPDATA%\bim-cli\blender\
bim blender upgrade
  • [--component COMPONENT]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Upgrade managed Blender and/or Bonsai to the latest pinned versions
bim blender instances
  • [--blender-version BLENDER-VERSION]
List running managed Blender instances with their PIDs, ports, and open files
bim blender launch
  • [--file FILE]
  • [--timeout TIMEOUT]
  • [--reuse]
  • [--headless]
  • [--blender-version BLENDER-VERSION]
Start managed Blender; --headless for a persistent background session, default opens UI
bim blender quit
  • [--pid N]
  • [--all]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Close a managed Blender instance. Auto-selects when exactly one instance is running.
bim blender kill
  • [--pid N]
  • [--all]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Terminate a managed Blender instance (alias for quit)
bim blender exec
  • [--code CODE]
  • [--file FILE]
  • [--pid N]
  • [--timeout TIMEOUT]
  • [--blender-version BLENDER-VERSION]
Execute a Python snippet against a running Blender instance
bim blender run
  • [--file FILE]
  • [--code CODE]
  • [--glb FILE]
  • [--render FILE]
  • [--args ARGS]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Execute a bpy script headlessly and optionally export GLB / render a PNG still

ifc

VerbWhat it does
bim blender ifc info
  • --file FILE
  • [--blender-version BLENDER-VERSION]
Read IFC metadata: schema version, project name, element counts by type, GlobalId of top-level IfcProject
bim blender ifc validate
  • --file FILE
  • [--blender-version BLENDER-VERSION]
Validate an IFC file via IfcOpenShell; returns {valid, errors[], warnings[]} with per-issue severity and instance pointers
bim blender ifc convert
  • --file FILE
  • --out FILE
  • [--schema SCHEMA]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
IFC schema migration via IfcOpenShell: converts between IFC2X3, IFC4, IFC4X3 schemas; element count preserved within tolerance
bim blender ifc to-pdf
  • --file FILE
  • --out FILE
  • [--view VIEW]
  • [--scale N]
  • [--blender-version BLENDER-VERSION]
Export a bim-pdf package from an IFC file (headless, requires Bonsai): renders a plan-view PDF and writes marks.json, elements.json, scales.json, titleblock.json sidecars in the canonical bim-pdf format
bim blender ifc pdf export
  • --file FILE
  • --out FILE
  • [--no-pack]
  • [--dry-run]
  • [--titleblock TITLEBLOCK]
  • [--project-name PROJECT-NAME]
  • [--sheet-prefix SHEET-PREFIX]
  • [--blender-version BLENDER-VERSION]
Export a bim-pdf package from an IFC source via IfcOpenShell (requires Bonsai). Produces a floor-plan PDF (one page per storey) plus bim-pdf/v1 JSON sidecars (levels, elements, scales, annotations with coordinate_space). Coordinate space: PDF user-space points, bottom-left origin, Y-up. Pass --out ending in .bimpdf to also produce a packed archive.

pdf

VerbWhat it does
bim blender pdf export
  • --file FILE
  • --out FILE
  • [--views VIEWS]
  • [--scale SCALE]
  • [--cut-height CUT-HEIGHT]
  • [--section-axis SECTION-AXIS]
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Export a Blender/IFC model to a multi-page PDF with orthographic views (floor plan, section, elevation) using headless Blender rendering

massing

VerbWhat it does
bim blender massing envelope export
  • --file FILE
  • --out FILE
  • [--dry-run]
  • [--blender-version BLENDER-VERSION]
Build a massing-envelope prism from JSON, export a GLB, and write layered site-plan and axon PDF pages with page-bounds sidecars
bim blender massing sheet export
  • --file FILE
  • --out FILE
  • [--dry-run]
  • [--apn APN]
  • [--project PROJECT]
  • [--address ADDRESS]
  • [--sheet-number SHEET-NUMBER]
  • [--scale SCALE]
  • [--date DATE]
  • [--firm FIRM]
  • [--include-gltf]
  • [--blender-version BLENDER-VERSION]
Assemble a bim-pdf massing sheet from a massing-envelope JSON: builds elements.enriched.json (parcel/zoning-envelope/mass with UUID v5 ids), attaches /ElementXXXXXX marked-content on the site-plan page, writes sheet-info.json (titleblock + zoning-data-block + disclaimer), carries massing.glb as a model3d attachment, and packs the full package into a .bimpdf archive.

Example: batch IFC to glTF

bim blender install --component all
bim blender convert --file model.ifc --out model.glb

Example: co-edit with an agent

bim blender launch
bim blender exec --code "bpy.ops.mesh.primitive_cube_add(location=(2, 0, 0))"
bim blender exec --code "_ = bpy.context.active_object.location[:]"

The cube appears in the open Blender window. The second command reads back whatever you've moved it to.

For agent use: /blender/llms.txt

bim-rhino -> bim-revit -> 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.