bim-rhino
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'
Drive a running Rhino 6 session from the command line. Execute scripts, inspect geometry, and control the application without touching the UI. Same pattern as the Revit driver — your AI assistant can script both in the same pipeline.
Rhino 6 automation via an in-process plugin. Every command is a JSON request over localhost — no keyboard, no mouse, no Rhino window in focus required.
Requires: Rhino 6 running with the rhino-cli plugin loaded. Run bim rhino install once, then restart Rhino.
How it works
The rhino-cli plugin binds to a dynamic port at startup and writes it to %LOCALAPPDATA%\bim-cli\instances\rhino-<pid>.json. bim-rhino reads that file, sends JSON requests, and the plugin executes them in Rhino's UI thread. Multiple Rhino instances are supported — use bim rhino instances to list them and --pid to target one.
exec globals
These variables are pre-injected into every bim rhino exec snippet:
| Variable | Type |
|---|---|
doc |
Rhino.RhinoDoc (null if no document open) |
app |
RhinoAppProxy (wraps static RhinoApp) |
Verbs
| Verb | What it does |
|---|---|
bim rhino launch
| Launch Rhino and wait for the add-in to register; returns immediately if a live instance already exists |
bim rhino instances | List all live Rhino instances |
bim rhino quit
| Close a Rhino instance. Auto-selects when exactly one instance is running. |
bim rhino kill
| Terminate one or all registered Rhino instances (alias for quit) |
bim rhino exec
| Execute arbitrary C# against the live RhinoCommon API |
bim rhino export
| Export the active Rhino view to a bim-pdf package (PDF + elements.json + marks.json) |
bim rhino open
| Open a .3dm file in the active Rhino instance |
bim rhino status
| Rhino + add-in state (running, document, port) |
bim rhino install | Copy the add-in DLL to %APPDATA%\McNeel\Rhinoceros and write HKCU registry keys for each detected Rhino version |
bim rhino doctor | Driver health check |
bim rhino version | Driver version |
For agent use: /rhino/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.