bonsai-core-architecture
Installation
SKILL.md
Bonsai Core Architecture
Version: Bonsai v0.8.4 | Blender 4.2.0+ | Python 3.11 Module path:
bonsai.*— NEVERblenderbim.*Repository:IfcOpenShell/IfcOpenShellmonorepo →src/bonsai/
Critical Warnings
- ALWAYS use
bonsai.*imports. NEVER useblenderbim.*— renamed in 2024 (v0.8.0+). - ALWAYS check
IfcStore.get_file()forNonebefore any IFC operation. - NEVER describe Bonsai workflow as "import/export". The IFC file IS the document.
- ALWAYS run Bonsai scripts via
blender --python. NEVER importbonsai.*from system Python. - ALWAYS call
bpy.ops.bim.edit_object_placement()after direct matrix/location changes. - ALWAYS use
ifcopenshell.api.run()for IFC mutations, NEVER modify entity attributes directly. - NEVER use
void.add_opening()— usefeature.add_feature()(changed in v0.8.0+).