bonsai-impl-classification
Installation
SKILL.md
Bonsai Classification Implementation
Version: Bonsai v0.8.x | IfcOpenShell v0.8.x | Python 3.11+ Module paths:
bonsai.bim.module.classification,bonsai.bim.module.bsddIFC schemas: IFC2X3, IFC4, IFC4X3
Critical Warnings
- ALWAYS use
ifcopenshell.api.run("classification.add_reference", ...)withproducts(list), NOTproduct(singular). The API requires a list even for single elements. - NEVER use identifier URIs (
identifier.buildingsmart.org) for bSDD API calls. ALWAYS useapi.bsdd.buildingsmart.orgendpoints. - ALWAYS filter bSDD searches by
related_ifc_entityto prevent incorrect classification assignments. - NEVER hardcode classification codes without verifying them against the source (bSDD or library file).
- In IFC2X3, the attribute is
ItemReference, NOTIdentification. The IfcOpenShell API handles this migration automatically when usingadd_reference.