bim-blender
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:
- Headless (static):
bim blender convertspawnsblender --background, runs the conversion, exits. No visible window. Suitable for batch pipelines. - Bridge (live):
bim blender launchopens Blender with its UI visible. A background Python server binds a random local port and writes a discovery file.bim blender execsends Python snippets over TCP -- changes appear in the open Blender window in real time.
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
| Verb | What it does |
|---|---|
bim blender version | Driver version |
bim blender doctor
| Check bim-blender environment: managed Blender install, Bonsai addon, bridge addon version; lists all managed installs when called without --blender-version |
bim blender status
| Show managed Blender install info and any running session (pid, port, alive) |
bim blender convert
| Convert between 3D file formats headlessly (FBX, glTF/GLB, OBJ, USD, BLEND; IFC requires --component bonsai) |
bim blender install
| Install managed Blender (and optionally Bonsai) into %LOCALAPPDATA%\bim-cli\blender\ |
bim blender upgrade
| Upgrade managed Blender and/or Bonsai to the latest pinned versions |
bim blender instances
| List running managed Blender instances with their PIDs, ports, and open files |
bim blender launch
| Start managed Blender; --headless for a persistent background session, default opens UI |
bim blender quit
| Close a managed Blender instance. Auto-selects when exactly one instance is running. |
bim blender kill
| Terminate a managed Blender instance (alias for quit) |
bim blender exec
| Execute a Python snippet against a running Blender instance |
bim blender run
| Execute a bpy script headlessly and optionally export GLB / render a PNG still |
ifc
| Verb | What it does |
|---|---|
bim blender ifc info
| Read IFC metadata: schema version, project name, element counts by type, GlobalId of top-level IfcProject |
bim blender ifc validate
| Validate an IFC file via IfcOpenShell; returns {valid, errors[], warnings[]} with per-issue severity and instance pointers |
bim blender ifc convert
| IFC schema migration via IfcOpenShell: converts between IFC2X3, IFC4, IFC4X3 schemas; element count preserved within tolerance |
bim blender ifc to-pdf
| 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
| 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. |
| Verb | What it does |
|---|---|
bim blender pdf export
| Export a Blender/IFC model to a multi-page PDF with orthographic views (floor plan, section, elevation) using headless Blender rendering |
massing
| Verb | What it does |
|---|---|
bim blender massing envelope export
| 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
| 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
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.