Logo van Bonsai Impl Classification

Bonsai Impl Classification

Organisatie
Impertio-Studio
bonsai-impl-classification

Use when classifying IFC elements in Bonsai with systems like Uniclass 2015, OmniClass, NL-SfB, or CCI. Prevents the common mistake of assigning classifications without importing the classification library first. Covers bSDD integration, IfcClassificationReference assignment, bulk classification operations, and cross-referencing between systems. Keywords: classification, Uniclass, OmniClass, NL-SfB, CCI, bSDD, IfcClassificationReference, bulk classification, classification library, classify elements, tag elements, assign class code.

Overzicht

UitgeverImpertio-Studio
RepositoryBlender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
Skillnaambonsai-impl-classification
Sterren
44
Forks
5
Meegeleverde bestanden
3
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 3 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Impertio-Studio op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Bonsai Impl Classification in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/bonsai/impl/bonsai-impl-classification
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package.git /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package
mkdir -p .claude/skills
cp -r /tmp/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/skills/bonsai/impl/bonsai-impl-classification .claude/skills/bonsai-impl-classification
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Bonsai Impl Classification in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Bonsai Impl Classification automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Bonsai Impl Classification niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Bonsai Classification Implementation

Version: Bonsai v0.8.x | IfcOpenShell v0.8.x | Python 3.11+ Module paths: bonsai.bim.module.classification, bonsai.bim.module.bsdd IFC schemas: IFC2X3, IFC4, IFC4X3

Critical Warnings

  • ALWAYS use ifcopenshell.api.run("classification.add_reference", ...) with products (list), NOT product (singular). The API requires a list even for single elements.
  • NEVER use identifier URIs (identifier.buildingsmart.org) for bSDD API calls. ALWAYS use api.bsdd.buildingsmart.org endpoints.
  • ALWAYS filter bSDD searches by related_ifc_entity to prevent incorrect classification assignments.
  • NEVER hardcode classification codes without verifying them against the source (bSDD or library file).
  • In IFC2X3, the attribute is ItemReference, NOT Identification. The IfcOpenShell API handles this migration automatically when using add_reference.

Decision Tree: Classification Source Selection

Need to classify an IFC element?
├── Have internet access?
│   ├── YES → Need live, up-to-date codes?
│   │   ├── YES → Use bSDD Client (Path 1)
│   │   └── NO  → Use Library File (Path 2)
│   └── NO  → Use Library File (Path 2)
├── Need associated properties auto-populated?
│   └── YES → Use bSDD Client (Path 1) with apply_ifc_classification_properties()
├── Batch processing large model?
│   └── YES → Use Library File (Path 2) for performance
└── Custom project-specific codes?
    └── YES → Use Manual Classification (Path 3)

Three Classification Paths

Path 1: bSDD Client (Online Lookup)

Use bsdd.Client for real-time classification lookup from the buildingSMART Data Dictionary.

python
from bsdd import Client
import ifcopenshell
import ifcopenshell.api

client = Client()
model = ifcopenshell.open("model.ifc")

# Search for wall classifications in NL-SfB
results = client.search_class(
    search_text="external wall",
    dictionary_uris="https://identifier.buildingsmart.org/uri/nlsfb/nlsfb2005/2.2",
    related_ifc_entities=["IfcWall"]
)

# Add classification system to model
classification = ifcopenshell.api.run(
    "classification.add_classification", model,
    classification="NL-SfB 2005"
)

# Assign reference to element
wall = model.by_type("IfcWall")[0]
ifcopenshell.api.run(
    "classification.add_reference", model,
    products=[wall],
    identification="21.21",
    name="Buitenwanden",
    classification=classification
)

Path 2: Classification Library File (Offline)

Use pre-downloaded IFC classification library files from https://github.com/Moult/IfcClassification.

python
import ifcopenshell
import ifcopenshell.api

model = ifcopenshell.open("model.ifc")
library = ifcopenshell.open("Uniclass2015.ifc")

# Copy classification from library to model
lib_classification = library.by_type("IfcClassification")[0]
classification = ifcopenshell.api.run(
    "classification.add_classification", model,
    classification=lib_classification
)

# Find and assign a specific reference
lib_ref = [r for r in library.by_type("IfcClassificationReference")
           if r.Identification == "Ss_25_10_30"][0]
wall = model.by_type("IfcWall")[0]
ifcopenshell.api.run(
    "classification.add_reference", model,
    products=[wall],
    reference=lib_ref,
    classification=classification,
    is_lightweight=True
)

Path 3: Manual/Custom Classification

Create project-specific classification codes without external sources.

python
import ifcopenshell
import ifcopenshell.api

model = ifcopenshell.open("model.ifc")

classification = ifcopenshell.api.run(
    "classification.add_classification", model,
    classification="ProjectClassification"
)

wall_type = model.by_type("IfcWallType")[0]
ifcopenshell.api.run(
    "classification.add_reference", model,
    products=[wall_type],
    identification="W-001",
    name="Load Bearing External Wall",
    classification=classification
)

Bonsai Operator Reference (Blender Context)

Classification Operators

Operatorbl_idnamePurpose
LoadClassificationLibrarybim.load_classification_libraryLoad .ifc/.ifczip/.ifcxml classification file
AddClassificationbim.add_classificationAdd classification from loaded library
AddClassificationFromBSDDbim.add_classification_from_bsddAdd classification from active bSDD dictionaries
AddClassificationReferencebim.add_classification_referenceAssign library reference to selected elements
AddClassificationReferenceFromBSDDbim.add_classification_reference_from_bsddAssign bSDD class + auto-create property sets
AddManualClassificationbim.add_manual_classificationCreate custom classification with user attributes
AddManualClassificationReferencebim.add_manual_classification_referenceCreate custom reference for selected elements
EditClassificationbim.edit_classificationModify classification attributes
EditClassificationReferencebim.edit_classification_referenceModify reference attributes
RemoveClassificationbim.remove_classificationRemove classification AND all child references
RemoveClassificationReferencebim.remove_classification_referenceUnassign reference from selected elements
ChangeClassificationLevelbim.change_classification_levelNavigate classification tree hierarchy

bSDD Operators

Operatorbl_idnamePurpose
LoadBSDDDictionariesbim.load_bsdd_dictionariesFetch all dictionaries from bSDD API
SearchBSDDClassificationsbim.search_bsdd_classificationsSearch classes by keyword
ImportBSDDClassesbim.import_bsdd_classesLoad bSDD classes for current element
SearchBSDDPropertiesbim.search_bsdd_propertiesSearch properties by keyword
AddBSDDPropertiesbim.add_bsdd_propertiesAdd selected bSDD properties as psets

IFC Classification Entity Model

IfcClassification                          (the classification system)
  .Name            = "Uniclass 2015"
  .Source           = "NBS"
  .Edition          = "1.8"
  .Specification    = "<URI>"              (IFC4X3 only)
  .Location         = "<URI>"              (IFC4 — mapped to [5] internally)
  └── HasReferences → [IfcClassificationReference, ...]

IfcClassificationReference                 (a specific code assignment)
  .Identification   = "Ss_25_10_30"        (IFC4+; "ItemReference" in IFC2X3)
  .Name             = "Wall structures"
  .Location         = "<class URI>"
  .ReferencedSource → IfcClassification    (or parent IfcClassificationReference)
  └── HasReferences → [child refs...]      (hierarchical codes)

IfcRelAssociatesClassification             (links elements to references)
  .RelatingClassification → IfcClassificationReference
  .RelatedObjects   → [IfcWall, IfcWallType, ...]

Schema Version Differences

FeatureIFC2X3IFC4IFC4X3
Classification code attributeItemReferenceIdentificationIdentification
Classification URI attributeN/ALocation (attr index [5])Specification (attr index [5])
Non-rooted element supportNoIfcExternalReferenceRelationshipIfcExternalReferenceRelationship
Multiple classifications per elementYesYesYes

bSDD Integration Details

Active Dictionary Persistence

Bonsai persists active bSDD dictionary selections in the IFC file as IfcLibraryInformation entities named "BBIM_Active_bSDD". This makes selections portable across sessions.

python
# How Bonsai stores active bSDD state in IFC
# IfcLibraryInformation.Name = "BBIM_Active_bSDD"
# └── IfcLibraryReference per active dictionary
#     .Name = dictionary["name"]
#     .Location = dictionary["uri"]

bSDD-to-IFC Mapping

bSDD ConceptIFC EntityIFC Attribute
Dictionary nameIfcClassification.Name
Dictionary URIIfcClassification.Specification (IFC4X3) / .Location (IFC4)
Dictionary versionIfcClassification.Edition
OrganizationIfcClassification.Source
Class codeIfcClassificationReference.Identification
Class nameIfcClassificationReference.Name
Class URIIfcClassificationReference.Location
PropertyIfcPropertySingleValue.Name
Allowed valuesIfcPropertyEnumeratedValue.EnumerationValues

bSDD Search with IFC Entity Filtering

ALWAYS pass related_ifc_entities when searching bSDD. This maps bSDD classes to their corresponding IFC entity types and prevents assigning wall codes to doors.

python
from bsdd import Client

client = Client()

# Correct: filtered by IFC entity type
results = client.search_class(
    search_text="external wall",
    dictionary_uris="https://identifier.buildingsmart.org/uri/nlsfb/nlsfb2005/2.2",
    related_ifc_entities=["IfcWall"]
)

# WRONG: unfiltered search returns irrelevant results
results = client.search_class(
    search_text="external wall",
    dictionary_uris="https://identifier.buildingsmart.org/uri/nlsfb/nlsfb2005/2.2"
)

Multi-Object Classification

Bonsai operators AddClassificationReference, AddClassificationReferenceFromBSDD, AddManualClassificationReference, and RemoveClassificationReference support Blender multi-selection via context.selected_objects.

For scripted bulk classification:

python
import ifcopenshell
import ifcopenshell.api

model = ifcopenshell.open("model.ifc")
walls = model.by_type("IfcWall")

classification = ifcopenshell.api.run(
    "classification.add_classification", model,
    classification="Uniclass 2015"
)

# Classify all walls at once (products accepts a list)
ifcopenshell.api.run(
    "classification.add_reference", model,
    products=walls,
    identification="Ss_25_10_30",
    name="Wall structures",
    classification=classification
)

Reading Classifications

Using ifcopenshell.util.classification

python
import ifcopenshell.util.classification

element = model.by_type("IfcWall")[0]

# Get all classification references (includes inherited from type)
refs = ifcopenshell.util.classification.get_references(element, should_inherit=True)

for ref in refs:
    system = ifcopenshell.util.classification.get_classification(ref)
    print(f"{system.Name}: {ref.Identification} - {ref.Name}")

Direct IFC Traversal

python
element = model.by_type("IfcWall")[0]

for assoc in element.HasAssociations:
    if assoc.is_a("IfcRelAssociatesClassification"):
        ref = assoc.RelatingClassification
        print(f"Code: {ref.Identification}, Name: {ref.Name}")

Bonsai Architecture Pattern

Classification operators bypass the standard three-layer architecture:

  • Delivery layer (bim/module/classification/operator.py): Operators call ifcopenshell.api.classification.* directly.
  • Tool layer (tool/classification.py): Minimal — only get_location()/set_location() for schema-aware URI handling.
  • Core layer: No core/classification.py exists.

bSDD operators follow the full three-layer pattern:

  • Delivery layer (bim/module/bsdd/operator.py): Delegates to core.bsdd.*.
  • Core layer (core/bsdd.py): 4 pure functions with tool.Bsdd dependency injection.
  • Tool layer (tool/bsdd.py): Full bSDD client integration, caching, IFC persistence.

Common Classification Systems

SystemRegionbSDD URI (when available)
Uniclass 2015UKPublished on bSDD
OmniClassNorth AmericaPublished on bSDD
NL-SfB 2005Netherlandshttps://identifier.buildingsmart.org/uri/nlsfb/nlsfb2005/2.2
CCIInternationalPublished on bSDD
ETIMEuropePublished on bSDD
MasterFormatNorth AmericaPublished on bSDD
UniFormatNorth AmericaPublished on bSDD

Multiple classification systems CAN be assigned simultaneously to a single element. IFC supports multiple IfcRelAssociatesClassification relationships per product.

Reference Files

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Bonsai Impl Classification?

Use when classifying IFC elements in Bonsai with systems like Uniclass 2015, OmniClass, NL-SfB, or CCI. Prevents the common mistake of assigning classifications without importing the classification library first. Covers bSDD integration, IfcClassificationReference assignment, bulk classification operations, and cross-referencing between systems. Keywords: classification, Uniclass, OmniClass, NL-SfB, CCI, bSDD, IfcClassificationReference, bulk classification, classification library, classify elements, tag elements, assign class code.

Waarom Bonsai Impl Classification gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Bonsai Impl Classification bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Bonsai Impl Classification in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/bonsai/impl/bonsai-impl-classification. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Bonsai Impl Classification gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Bonsai Impl Classification gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Bonsai Impl Classification ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Bonsai Impl Classification gratis?

Ja. Deze skill is door Impertio-Studio op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇