[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F9XNNKX5WDQ3M1YEW0SDKS":3,"skill-same:01M7F9XNNKX5WDQ3M1YEW0SDKS":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7F9XNNKX5WDQ3M1YEW0SDKS","aec-core-bim-workflows",null,"Use when implementing end-to-end BIM workflows that combine IfcOpenShell, Bonsai, and Blender -- such as IFC creation from scratch, model enrichment, validation pipelines, geometry extraction, or batch processing of building models. Prevents the common mistake of skipping unit and context setup before creating geometry, or directly modifying IFC attributes instead of using ifcopenshell.api.run(). Covers property set management across tools, spatial hierarchy patterns, and version compatibility for IFC2X3\u002FIFC4\u002FIFC4X3. Keywords: BIM workflow, IFC creation, model validation, property extraction, batch processing, spatial hierarchy, cross-technology, IfcOpenShell Bonsai Blender, pset management, how to create IFC model, step by step BIM, get properties from IFC.","lagzgabrielmuller-dot\u002Fkit-ingenieria-3d","lagzgabrielmuller-dot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F333339260?v=4","01M7F985KYC0XB2XZ97B5YWH4C","01M7F985MHK8N2NVE4VAR5WBWS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: aec-core-bim-workflows\ndescription: >\n  Use when implementing end-to-end BIM workflows that combine IfcOpenShell, Bonsai, and Blender\n  -- such as IFC creation from scratch, model enrichment, validation pipelines, geometry\n  extraction, or batch processing of building models. Prevents the common mistake of skipping\n  unit and context setup before creating geometry, or directly modifying IFC attributes instead\n  of using ifcopenshell.api.run(). Covers property set management across tools, spatial hierarchy\n  patterns, and version compatibility for IFC2X3\u002FIFC4\u002FIFC4X3.\n  Keywords: BIM workflow, IFC creation, model validation, property extraction, batch processing, spatial hierarchy, cross-technology, IfcOpenShell Bonsai Blender, pset management, how to create IFC model, step by step BIM, get properties from IFC.\nlicense: MIT\ncompatibility: Designed for Claude Code. Requires Python 3.x.\nmetadata:\n  author: OpenAEC-Foundation\n  version: \"1.0\"\n---\n\n# Cross-Technology BIM Workflows\n\n> **Scope**: End-to-end workflows combining IfcOpenShell, Bonsai, and Blender\n> **Dependencies**: `ifcos-impl-creation`, `bonsai-core-architecture`\n> **Version coverage**: Blender 3.x-5.x | IFC2X3\u002FIFC4\u002FIFC4X3 | Bonsai v0.8.x\n\n## Critical Warnings\n\n1. **ALWAYS** determine the execution context first: standalone Python (IfcOpenShell only) vs Blender Python (bpy available) vs Bonsai-loaded (IfcStore available). The API surface differs per context.\n2. **ALWAYS** use `ifcopenshell.api.run()` for IFC mutations in ALL contexts. NEVER modify IFC entity attributes directly — this bypasses relationship management and breaks graph integrity.\n3. **ALWAYS** call `bpy.ops.bim.edit_object_placement()` after modifying a Blender object's location\u002Frotation\u002Fscale when Bonsai is active. Blender transforms do NOT auto-sync to IFC.\n4. **NEVER** mix `IfcStore.get_file()` (Bonsai context) with `ifcopenshell.open()` on the same file simultaneously. Bonsai owns the in-memory IFC graph — opening a second handle creates divergent state.\n5. **NEVER** use `blenderbim.*` imports. The package was renamed to `bonsai.*` in v0.8.0 (2024).\n6. **ALWAYS** set up units (`unit.assign_unit`) and geometric contexts (`context.add_context`) before creating any geometry. Geometry without context or units is ambiguous and may render incorrectly.\n7. **NEVER** use `void.add_opening()` in Bonsai v0.8.0+. Use `feature.add_feature()` instead.\n\n---\n\n## Decision Tree: Choose Your Execution Context\n\n```\nWhat is your workflow?\n|\n+-- Creating\u002Fmodifying IFC files WITHOUT Blender?\n|   +-- Use: Standalone IfcOpenShell (headless Python)\n|   +-- Import: ifcopenshell, ifcopenshell.api\n|   +-- File access: ifcopenshell.open(path) or ifcopenshell.api.run(\"project.create_file\")\n|   +-- Best for: batch processing, CI\u002FCD validation, server-side operations\n|\n+-- Creating\u002Fmodifying IFC files IN Blender WITH Bonsai?\n|   +-- Use: Bonsai-loaded context\n|   +-- File access: IfcStore.get_file() — NEVER ifcopenshell.open()\n|   +-- IFC mutations: tool.Ifc.run(\"command\", **kwargs) OR ifcopenshell.api.run()\n|   +-- Blender sync: bpy.ops.bim.* operators handle bidirectional sync\n|   +-- Best for: interactive BIM authoring, visual verification\n|\n+-- Extracting geometry from IFC for Blender visualization (no Bonsai)?\n|   +-- Use: IfcOpenShell geometry + Blender bpy\n|   +-- Import: ifcopenshell, ifcopenshell.geom, bpy\n|   +-- Geometry: ifcopenshell.geom.create_shape(settings, element)\n|   +-- Mesh: bpy.data.meshes.new() + mesh.from_pydata(verts, [], faces)\n|   +-- Best for: lightweight IFC viewers, geometry analysis\n|\n+-- Batch processing multiple IFC files?\n    +-- Use: Standalone IfcOpenShell (headless) or blender --background --python\n    +-- If Blender ops needed: blender --background --python script.py\n    +-- If pure IFC: python script.py (no Blender dependency)\n    +-- Best for: model validation, property extraction, report generation\n```\n\n---\n\n## Decision Tree: IFC Creation vs Enrichment\n\n```\nStarting from scratch or enriching existing?\n|\n+-- New IFC model from scratch?\n|   +-- Follow the 9-step creation pipeline:\n|   |   1. project.create_file → Create file with schema version\n|   |   2. root.create_entity (IfcProject) → Create project\n|   |   3. unit.assign_unit → Set measurement units\n|   |   4. context.add_context → Set up Model + Body subcontext\n|   |   5. root.create_entity + aggregate.assign_object → Build spatial hierarchy\n|   |   6. root.create_entity + type assignment → Create element types\n|   |   7. root.create_entity + geometry + placement → Create elements\n|   |   8. spatial.assign_container → Place elements in hierarchy\n|   |   9. pset.add_pset + pset.edit_pset → Add properties\n|   +-- Reference: ifcos-impl-creation (Pattern 1)\n|\n+-- Enriching an existing IFC file?\n|   +-- Open: model = ifcopenshell.open(\"existing.ifc\")\n|   +-- Query: elements = model.by_type(\"IfcWall\")\n|   +-- Add properties: pset.add_pset + pset.edit_pset\n|   +-- Add classifications: classification.add_reference\n|   +-- Modify geometry: geometry operations\n|   +-- Write: model.write(\"enriched.ifc\")\n|   +-- WARNING: Preserve existing GlobalIds. NEVER recreate entities that already exist.\n|\n+-- Merging data from multiple IFC files?\n    +-- Open source: source = ifcopenshell.open(\"source.ifc\")\n    +-- Open target: target = ifcopenshell.open(\"target.ifc\")\n    +-- Extract data from source (properties, classifications, types)\n    +-- Apply to target using ifcopenshell.api.run()\n    +-- WARNING: Entity IDs are file-scoped. NEVER copy raw IDs between files.\n    +-- WARNING: GlobalIds MUST be unique within a file. Generate new GUIDs for copied entities.\n```\n\n---\n\n## Sverchok Parametric Design Step\n\nWhen workflows involve parametric, generative, or data-driven geometry (arrays, facades, repetitive elements), insert a **Sverchok step** before BIM authoring:\n\n```\n[Sverchok: Parametric Geometry] --> [IfcSverchok: Generate IFC] --> [Bonsai: Review\u002FEnrich]\n```\n\n- **Sverchok** generates geometry via visual node trees (`SverchCustomTreeType`)\n- **IfcSverchok** (31 nodes) converts parametric geometry to IFC entities within the node tree\n- Enable `use_bonsai_file` on `SvIfcCreateProject` to write directly into Bonsai's active IFC file\n- **Warning**: `SvIfcStore` is transient — purged on every full tree update. Persist via Bonsai or `model.write()`\n- Refer to: `sverchok-impl-parametric`, `sverchok-impl-ifcsverchok`\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Standalone IFC Creation (No Blender)\n\n```python\n# Context: Standalone Python: IfcOpenShell only\n# Version: IFC4 | IfcOpenShell 0.8.x\nimport ifcopenshell\nimport ifcopenshell.api\nimport numpy as np\n\nmodel = ifcopenshell.api.run(\"project.create_file\", version=\"IFC4\")\nproject = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcProject\", name=\"My Project\")\nifcopenshell.api.run(\"unit.assign_unit\", model)\n\nmodel3d = ifcopenshell.api.run(\"context.add_context\", model, context_type=\"Model\")\nbody = ifcopenshell.api.run(\"context.add_context\", model,\n    context_type=\"Model\", context_identifier=\"Body\",\n    target_view=\"MODEL_VIEW\", parent=model3d)\n\nsite = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcSite\", name=\"Site\")\nbuilding = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcBuilding\", name=\"Building A\")\nstorey = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcBuildingStorey\", name=\"Ground Floor\")\n\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[site], relating_object=project)\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[building], relating_object=site)\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[storey], relating_object=building)\n\nwall = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcWall\", name=\"Wall 001\")\nrep = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall, representation=rep)\nifcopenshell.api.run(\"geometry.edit_object_placement\", model, product=wall)\nifcopenshell.api.run(\"spatial.assign_container\", model,\n    relating_structure=storey, products=[wall])\n\nmodel.write(\"output.ifc\")\n```\n\n### Pattern 2: IFC Geometry Extraction to Blender Mesh (No Bonsai)\n\n```python\n# Context: Blender Python (bpy available), NO Bonsai\n# Version: Blender 3.x-5.x | IfcOpenShell 0.8.x\nimport bpy\nimport ifcopenshell\nimport ifcopenshell.geom\n\nifc_file = ifcopenshell.open(\"model.ifc\")\nsettings = ifcopenshell.geom.settings()\nsettings.set(settings.USE_WORLD_COORDS, True)\n\nfor wall in ifc_file.by_type(\"IfcWall\"):\n    shape = ifcopenshell.geom.create_shape(settings, wall)\n    verts = shape.geometry.verts     # flat list: [x0,y0,z0, x1,y1,z1, ...]\n    faces = shape.geometry.faces     # flat list: [i0,i1,i2, i3,i4,i5, ...]\n\n    # Reshape into Blender format\n    vertices = [(verts[i], verts[i+1], verts[i+2])\n                for i in range(0, len(verts), 3)]\n    triangles = [(faces[i], faces[i+1], faces[i+2])\n                 for i in range(0, len(faces), 3)]\n\n    mesh = bpy.data.meshes.new(name=wall.Name or \"Wall\")\n    mesh.from_pydata(vertices, [], triangles)\n    mesh.update()\n\n    obj = bpy.data.objects.new(wall.Name or \"Wall\", mesh)\n    bpy.context.collection.objects.link(obj)\n```\n\n### Pattern 3: Bonsai-Context BIM Authoring\n\n```python\n# Context: Blender with Bonsai loaded\n# Version: Bonsai v0.8.x | Blender 4.2+\nimport bpy\nfrom bonsai.bim.ifc import IfcStore\nimport ifcopenshell.api\n\n# ALWAYS check for active IFC project\nmodel = IfcStore.get_file()\nif model is None:\n    raise RuntimeError(\"No IFC project loaded. Create or open a project first.\")\n\n# Create element via Bonsai's tool layer\n# Option A: Use ifcopenshell.api.run() directly\nwall = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcWall\", name=\"New Wall\")\n\n# Option B: Use Bonsai operators (handles Blender sync automatically)\nbpy.ops.bim.add_wall()\n\n# After creating elements, ensure spatial containment\nstorey = model.by_type(\"IfcBuildingStorey\")[0]\nifcopenshell.api.run(\"spatial.assign_container\", model,\n    relating_structure=storey, products=[wall])\n\n# CRITICAL: If you moved the Blender object, sync placement to IFC\nbpy.ops.bim.edit_object_placement(context_override)\n\n# Add property set\npset = ifcopenshell.api.run(\"pset.add_pset\", model,\n    product=wall, name=\"Pset_WallCommon\")\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset, properties={\n    \"IsExternal\": True,\n    \"LoadBearing\": True,\n    \"FireRating\": \"REI60\"\n})\n```\n\n### Pattern 4: Batch Property Extraction (Headless)\n\n```python\n# Context: Standalone Python or blender --background\n# Version: IfcOpenShell 0.8.x | IFC4\nimport ifcopenshell\nimport ifcopenshell.util.element\nimport csv\n\nmodel = ifcopenshell.open(\"building.ifc\")\n\nwith open(\"wall_report.csv\", \"w\", newline=\"\") as f:\n    writer = csv.writer(f)\n    writer.writerow([\"GlobalId\", \"Name\", \"IsExternal\", \"FireRating\", \"LoadBearing\"])\n\n    for wall in model.by_type(\"IfcWall\"):\n        psets = ifcopenshell.util.element.get_psets(wall)\n        common = psets.get(\"Pset_WallCommon\", {})\n        writer.writerow([\n            wall.GlobalId,\n            wall.Name,\n            common.get(\"IsExternal\", \"\"),\n            common.get(\"FireRating\", \"\"),\n            common.get(\"LoadBearing\", \"\"),\n        ])\n```\n\n### Pattern 5: Model Validation Pipeline\n\n```python\n# Context: Standalone Python\n# Version: IfcOpenShell 0.8.x | IFC4\u002FIFC2X3\nimport ifcopenshell\nimport ifcopenshell.util.element\n\ndef validate_model(filepath: str) -> list[str]:\n    errors = []\n    model = ifcopenshell.open(filepath)\n\n    # Check 1: Spatial hierarchy exists\n    if not model.by_type(\"IfcProject\"):\n        errors.append(\"CRITICAL: No IfcProject found\")\n    if not model.by_type(\"IfcSite\"):\n        errors.append(\"CRITICAL: No IfcSite found\")\n    if not model.by_type(\"IfcBuilding\"):\n        errors.append(\"CRITICAL: No IfcBuilding found\")\n    if not model.by_type(\"IfcBuildingStorey\"):\n        errors.append(\"WARNING: No IfcBuildingStorey found\")\n\n    # Check 2: All physical elements have spatial containment\n    physical_types = [\"IfcWall\", \"IfcSlab\", \"IfcColumn\", \"IfcBeam\",\n                      \"IfcDoor\", \"IfcWindow\"]\n    for ifc_type in physical_types:\n        for element in model.by_type(ifc_type):\n            container = ifcopenshell.util.element.get_container(element)\n            if container is None:\n                errors.append(\n                    f\"WARNING: {element.is_a()} '{element.Name}' \"\n                    f\"(#{element.id()}) has no spatial container\")\n\n    # Check 3: All elements have geometry\n    for element in model.by_type(\"IfcProduct\"):\n        if hasattr(element, \"Representation\") and element.Representation is None:\n            if element.is_a() not in (\"IfcSite\", \"IfcBuilding\",\n                                       \"IfcBuildingStorey\", \"IfcSpace\",\n                                       \"IfcProject\"):\n                errors.append(\n                    f\"WARNING: {element.is_a()} '{element.Name}' \"\n                    f\"(#{element.id()}) has no geometry representation\")\n\n    # Check 4: Units are assigned\n    project = model.by_type(\"IfcProject\")[0] if model.by_type(\"IfcProject\") else None\n    if project and not project.UnitsInContext:\n        errors.append(\"CRITICAL: No units assigned to project\")\n\n    # Check 5: IFC2X3 OwnerHistory requirement\n    if model.schema == \"IFC2X3\":\n        for entity in model.by_type(\"IfcRoot\"):\n            if entity.OwnerHistory is None:\n                errors.append(\n                    f\"ERROR: IFC2X3 requires OwnerHistory on \"\n                    f\"{entity.is_a()} '{entity.Name}' (#{entity.id()})\")\n\n    return errors\n```\n\n### Pattern 6: Multi-File Batch Processing\n\n```python\n# Context: Standalone Python\n# Version: IfcOpenShell 0.8.x\nimport ifcopenshell\nimport ifcopenshell.api\nfrom pathlib import Path\n\ndef enrich_models(input_dir: str, output_dir: str, classification_system: str):\n    \"\"\"Add classification references to all IFC files in a directory.\"\"\"\n    input_path = Path(input_dir)\n    output_path = Path(output_dir)\n    output_path.mkdir(parents=True, exist_ok=True)\n\n    for ifc_file in input_path.glob(\"*.ifc\"):\n        model = ifcopenshell.open(str(ifc_file))\n\n        # Add classification system if not present\n        classifications = model.by_type(\"IfcClassification\")\n        if not any(c.Name == classification_system for c in classifications):\n            classification = ifcopenshell.api.run(\n                \"classification.add_classification\", model,\n                classification=classification_system)\n        else:\n            classification = next(\n                c for c in classifications if c.Name == classification_system)\n\n        # Process each element\n        for wall in model.by_type(\"IfcWall\"):\n            ifcopenshell.api.run(\"classification.add_reference\", model,\n                products=[wall],\n                classification=classification,\n                identification=\"21.22\",\n                name=\"Exterior Walls\")\n\n        output_file = output_path \u002F ifc_file.name\n        model.write(str(output_file))\n```\n\n---\n\n## Cross-Technology API Integration Points\n\n### IfcOpenShell \u003C-> Blender (Without Bonsai)\n\n| IfcOpenShell Operation | Blender Equivalent | Integration Point |\n|----------------------|-------------------|-------------------|\n| `ifcopenshell.geom.create_shape()` | `mesh.from_pydata(verts, [], faces)` | Geometry extraction: shape.geometry.verts\u002Ffaces |\n| `element.ObjectPlacement` | `obj.matrix_world` | 4x4 transformation matrix |\n| `model.by_type(\"IfcWall\")` | `bpy.data.objects` filtering | Element enumeration |\n| IFC materials | `bpy.data.materials` | Manual mapping required |\n\n### IfcOpenShell \u003C-> Bonsai\n\n| IfcOpenShell Operation | Bonsai Equivalent | Notes |\n|----------------------|------------------|-------|\n| `ifcopenshell.api.run(cmd, model, **kw)` | `tool.Ifc.run(cmd, **kw)` | Bonsai wraps the API; model is implicit |\n| `ifcopenshell.open(path)` | `IfcStore.get_file()` | NEVER open separately when Bonsai is active |\n| `element.id()` | `obj.BIMProperties.ifc_definition_id` | Bidirectional mapping via IfcStore.id_map |\n| `element.GlobalId` | `IfcStore.guid_map` | Bidirectional GUID-to-object lookup |\n\n### Bonsai \u003C-> Blender\n\n| Bonsai Operation | Blender Equivalent | Sync Rule |\n|-----------------|-------------------|-----------|\n| `bpy.ops.bim.add_wall()` | Creates mesh + IFC entity | Automatic bidirectional sync |\n| IFC placement change | `obj.location` \u002F `obj.matrix_world` | MUST call `bpy.ops.bim.edit_object_placement()` |\n| `pset.edit_pset()` | BIM property panels | Panel shows live IFC data |\n| `IfcStore.edited_objs` | Modified Blender objects | Pending IFC changes queue |\n\n---\n\n## Version Compatibility Matrix\n\n| Feature | IFC2X3 | IFC4 | IFC4X3 | Notes |\n|---------|--------|------|--------|-------|\n| OwnerHistory | REQUIRED | OPTIONAL | OPTIONAL | Set via `owner.set_user` before entity creation |\n| IfcWallStandardCase | Available | DEPRECATED | DEPRECATED | Use IfcWall with PredefinedType instead |\n| IfcFacility | N\u002FA | N\u002FA | Available | Generalization of IfcBuilding for infrastructure |\n| IfcAlignment | N\u002FA | N\u002FA | Available | Linear infrastructure alignment |\n| IfcDoorType | N\u002FA (use IfcDoorStyle) | Available | Available | |\n| IfcWindowType | N\u002FA (use IfcWindowStyle) | Available | Available | |\n| Property set types | IfcPropertySingleValue | + Bounded, Table, List | + Bounded, Table, List | |\n| Material sets | IfcMaterialList | + IfcMaterialConstituentSet | + IfcMaterialConstituentSet | |\n\n| Feature | Blender 3.x | Blender 4.x | Blender 5.x | Notes |\n|---------|-------------|-------------|-------------|-------|\n| bgl module | Available | Deprecated | REMOVED | Use `gpu` module for all drawing |\n| Extension system | N\u002FA | Available (4.2+) | Required | bl_info replaced by blender_manifest.toml |\n| Bonsai compatibility | Pre-rename (BlenderBIM) | Bonsai v0.8.x | Bonsai v0.8.x+ | ALWAYS use `bonsai.*` imports |\n| Grease Pencil API | Legacy | Rewritten (4.3) | New API | Complete API break in 4.3 |\n\n---\n\n## Common Operations Quick Reference\n\n### Property Set Management Across Contexts\n\n```python\n# Standalone IfcOpenShell: Read properties\nimport ifcopenshell.util.element\npsets = ifcopenshell.util.element.get_psets(element)\nvalue = psets.get(\"Pset_WallCommon\", {}).get(\"IsExternal\")\n\n# Standalone IfcOpenShell: Write properties\npset = ifcopenshell.api.run(\"pset.add_pset\", model,\n    product=element, name=\"Pset_WallCommon\")\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset,\n    properties={\"IsExternal\": True})\n\n# Bonsai context: Read properties (same IfcOpenShell util)\nmodel = IfcStore.get_file()\nentity = tool.Ifc.get_entity(bpy.context.active_object)\npsets = ifcopenshell.util.element.get_psets(entity)\n\n# Bonsai context: Write properties (same API)\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset,\n    properties={\"IsExternal\": True})\n```\n\n### Spatial Hierarchy Traversal\n\n```python\n# Get container of an element\nimport ifcopenshell.util.element\ncontainer = ifcopenshell.util.element.get_container(element)\n# Returns: IfcBuildingStorey, IfcSpace, or None\n\n# Get all elements in a storey\nelements = ifcopenshell.util.element.get_decomposition(storey)\n\n# Walk full spatial tree\ndef walk_spatial(element, depth=0):\n    print(\"  \" * depth + f\"{element.is_a()}: {element.Name}\")\n    for rel in getattr(element, \"IsDecomposedBy\", []):\n        for child in rel.RelatedObjects:\n            walk_spatial(child, depth + 1)\n    for rel in getattr(element, \"ContainsElements\", []):\n        for child in rel.RelatedElements:\n            walk_spatial(child, depth + 1)\n\nproject = model.by_type(\"IfcProject\")[0]\nwalk_spatial(project)\n```\n\n---\n\n## Reference Links\n\n- [Cross-Technology API Methods](references\u002Fmethods.md) — Complete integration point signatures\n- [End-to-End Workflow Examples](references\u002Fexamples.md) — Full working examples for common BIM workflows\n- [Cross-Tech Anti-Patterns](references\u002Fanti-patterns.md) — Common integration mistakes and how to avoid them\n\n## Sources\n\n- IfcOpenShell Documentation: https:\u002F\u002Fdocs.ifcopenshell.org\n- IfcOpenShell API Reference: https:\u002F\u002Fdocs.ifcopenshell.org\u002Fautoapi\u002Fifcopenshell\u002Fapi\u002Findex.html\n- Bonsai Documentation: https:\u002F\u002Fdocs.bonsaibim.org\n- Blender Python API: https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Findex.html\n- IfcOpenShell GitHub: https:\u002F\u002Fgithub.com\u002FIfcOpenShell\u002FIfcOpenShell\n- OSArch Community: https:\u002F\u002Fcommunity.osarch.org\n","# Cross-Technology BIM Workflows\n\n> **Scope**: End-to-end workflows combining IfcOpenShell, Bonsai, and Blender\n> **Dependencies**: `ifcos-impl-creation`, `bonsai-core-architecture`\n> **Version coverage**: Blender 3.x-5.x | IFC2X3\u002FIFC4\u002FIFC4X3 | Bonsai v0.8.x\n\n## Critical Warnings\n\n1. **ALWAYS** determine the execution context first: standalone Python (IfcOpenShell only) vs Blender Python (bpy available) vs Bonsai-loaded (IfcStore available). The API surface differs per context.\n2. **ALWAYS** use `ifcopenshell.api.run()` for IFC mutations in ALL contexts. NEVER modify IFC entity attributes directly — this bypasses relationship management and breaks graph integrity.\n3. **ALWAYS** call `bpy.ops.bim.edit_object_placement()` after modifying a Blender object's location\u002Frotation\u002Fscale when Bonsai is active. Blender transforms do NOT auto-sync to IFC.\n4. **NEVER** mix `IfcStore.get_file()` (Bonsai context) with `ifcopenshell.open()` on the same file simultaneously. Bonsai owns the in-memory IFC graph — opening a second handle creates divergent state.\n5. **NEVER** use `blenderbim.*` imports. The package was renamed to `bonsai.*` in v0.8.0 (2024).\n6. **ALWAYS** set up units (`unit.assign_unit`) and geometric contexts (`context.add_context`) before creating any geometry. Geometry without context or units is ambiguous and may render incorrectly.\n7. **NEVER** use `void.add_opening()` in Bonsai v0.8.0+. Use `feature.add_feature()` instead.\n\n---\n\n## Decision Tree: Choose Your Execution Context\n\n```\nWhat is your workflow?\n|\n+-- Creating\u002Fmodifying IFC files WITHOUT Blender?\n|   +-- Use: Standalone IfcOpenShell (headless Python)\n|   +-- Import: ifcopenshell, ifcopenshell.api\n|   +-- File access: ifcopenshell.open(path) or ifcopenshell.api.run(\"project.create_file\")\n|   +-- Best for: batch processing, CI\u002FCD validation, server-side operations\n|\n+-- Creating\u002Fmodifying IFC files IN Blender WITH Bonsai?\n|   +-- Use: Bonsai-loaded context\n|   +-- File access: IfcStore.get_file() — NEVER ifcopenshell.open()\n|   +-- IFC mutations: tool.Ifc.run(\"command\", **kwargs) OR ifcopenshell.api.run()\n|   +-- Blender sync: bpy.ops.bim.* operators handle bidirectional sync\n|   +-- Best for: interactive BIM authoring, visual verification\n|\n+-- Extracting geometry from IFC for Blender visualization (no Bonsai)?\n|   +-- Use: IfcOpenShell geometry + Blender bpy\n|   +-- Import: ifcopenshell, ifcopenshell.geom, bpy\n|   +-- Geometry: ifcopenshell.geom.create_shape(settings, element)\n|   +-- Mesh: bpy.data.meshes.new() + mesh.from_pydata(verts, [], faces)\n|   +-- Best for: lightweight IFC viewers, geometry analysis\n|\n+-- Batch processing multiple IFC files?\n    +-- Use: Standalone IfcOpenShell (headless) or blender --background --python\n    +-- If Blender ops needed: blender --background --python script.py\n    +-- If pure IFC: python script.py (no Blender dependency)\n    +-- Best for: model validation, property extraction, report generation\n```\n\n---\n\n## Decision Tree: IFC Creation vs Enrichment\n\n```\nStarting from scratch or enriching existing?\n|\n+-- New IFC model from scratch?\n|   +-- Follow the 9-step creation pipeline:\n|   |   1. project.create_file → Create file with schema version\n|   |   2. root.create_entity (IfcProject) → Create project\n|   |   3. unit.assign_unit → Set measurement units\n|   |   4. context.add_context → Set up Model + Body subcontext\n|   |   5. root.create_entity + aggregate.assign_object → Build spatial hierarchy\n|   |   6. root.create_entity + type assignment → Create element types\n|   |   7. root.create_entity + geometry + placement → Create elements\n|   |   8. spatial.assign_container → Place elements in hierarchy\n|   |   9. pset.add_pset + pset.edit_pset → Add properties\n|   +-- Reference: ifcos-impl-creation (Pattern 1)\n|\n+-- Enriching an existing IFC file?\n|   +-- Open: model = ifcopenshell.open(\"existing.ifc\")\n|   +-- Query: elements = model.by_type(\"IfcWall\")\n|   +-- Add properties: pset.add_pset + pset.edit_pset\n|   +-- Add classifications: classification.add_reference\n|   +-- Modify geometry: geometry operations\n|   +-- Write: model.write(\"enriched.ifc\")\n|   +-- WARNING: Preserve existing GlobalIds. NEVER recreate entities that already exist.\n|\n+-- Merging data from multiple IFC files?\n    +-- Open source: source = ifcopenshell.open(\"source.ifc\")\n    +-- Open target: target = ifcopenshell.open(\"target.ifc\")\n    +-- Extract data from source (properties, classifications, types)\n    +-- Apply to target using ifcopenshell.api.run()\n    +-- WARNING: Entity IDs are file-scoped. NEVER copy raw IDs between files.\n    +-- WARNING: GlobalIds MUST be unique within a file. Generate new GUIDs for copied entities.\n```\n\n---\n\n## Sverchok Parametric Design Step\n\nWhen workflows involve parametric, generative, or data-driven geometry (arrays, facades, repetitive elements), insert a **Sverchok step** before BIM authoring:\n\n```\n[Sverchok: Parametric Geometry] --> [IfcSverchok: Generate IFC] --> [Bonsai: Review\u002FEnrich]\n```\n\n- **Sverchok** generates geometry via visual node trees (`SverchCustomTreeType`)\n- **IfcSverchok** (31 nodes) converts parametric geometry to IFC entities within the node tree\n- Enable `use_bonsai_file` on `SvIfcCreateProject` to write directly into Bonsai's active IFC file\n- **Warning**: `SvIfcStore` is transient — purged on every full tree update. Persist via Bonsai or `model.write()`\n- Refer to: `sverchok-impl-parametric`, `sverchok-impl-ifcsverchok`\n\n---\n\n## Essential Patterns\n\n### Pattern 1: Standalone IFC Creation (No Blender)\n\n```python\n# Context: Standalone Python: IfcOpenShell only\n# Version: IFC4 | IfcOpenShell 0.8.x\nimport ifcopenshell\nimport ifcopenshell.api\nimport numpy as np\n\nmodel = ifcopenshell.api.run(\"project.create_file\", version=\"IFC4\")\nproject = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcProject\", name=\"My Project\")\nifcopenshell.api.run(\"unit.assign_unit\", model)\n\nmodel3d = ifcopenshell.api.run(\"context.add_context\", model, context_type=\"Model\")\nbody = ifcopenshell.api.run(\"context.add_context\", model,\n    context_type=\"Model\", context_identifier=\"Body\",\n    target_view=\"MODEL_VIEW\", parent=model3d)\n\nsite = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcSite\", name=\"Site\")\nbuilding = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcBuilding\", name=\"Building A\")\nstorey = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcBuildingStorey\", name=\"Ground Floor\")\n\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[site], relating_object=project)\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[building], relating_object=site)\nifcopenshell.api.run(\"aggregate.assign_object\", model,\n    products=[storey], relating_object=building)\n\nwall = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcWall\", name=\"Wall 001\")\nrep = ifcopenshell.api.run(\"geometry.add_wall_representation\", model,\n    context=body, length=5.0, height=3.0, thickness=0.2)\nifcopenshell.api.run(\"geometry.assign_representation\", model,\n    product=wall, representation=rep)\nifcopenshell.api.run(\"geometry.edit_object_placement\", model, product=wall)\nifcopenshell.api.run(\"spatial.assign_container\", model,\n    relating_structure=storey, products=[wall])\n\nmodel.write(\"output.ifc\")\n```\n\n### Pattern 2: IFC Geometry Extraction to Blender Mesh (No Bonsai)\n\n```python\n# Context: Blender Python (bpy available), NO Bonsai\n# Version: Blender 3.x-5.x | IfcOpenShell 0.8.x\nimport bpy\nimport ifcopenshell\nimport ifcopenshell.geom\n\nifc_file = ifcopenshell.open(\"model.ifc\")\nsettings = ifcopenshell.geom.settings()\nsettings.set(settings.USE_WORLD_COORDS, True)\n\nfor wall in ifc_file.by_type(\"IfcWall\"):\n    shape = ifcopenshell.geom.create_shape(settings, wall)\n    verts = shape.geometry.verts     # flat list: [x0,y0,z0, x1,y1,z1, ...]\n    faces = shape.geometry.faces     # flat list: [i0,i1,i2, i3,i4,i5, ...]\n\n    # Reshape into Blender format\n    vertices = [(verts[i], verts[i+1], verts[i+2])\n                for i in range(0, len(verts), 3)]\n    triangles = [(faces[i], faces[i+1], faces[i+2])\n                 for i in range(0, len(faces), 3)]\n\n    mesh = bpy.data.meshes.new(name=wall.Name or \"Wall\")\n    mesh.from_pydata(vertices, [], triangles)\n    mesh.update()\n\n    obj = bpy.data.objects.new(wall.Name or \"Wall\", mesh)\n    bpy.context.collection.objects.link(obj)\n```\n\n### Pattern 3: Bonsai-Context BIM Authoring\n\n```python\n# Context: Blender with Bonsai loaded\n# Version: Bonsai v0.8.x | Blender 4.2+\nimport bpy\nfrom bonsai.bim.ifc import IfcStore\nimport ifcopenshell.api\n\n# ALWAYS check for active IFC project\nmodel = IfcStore.get_file()\nif model is None:\n    raise RuntimeError(\"No IFC project loaded. Create or open a project first.\")\n\n# Create element via Bonsai's tool layer\n# Option A: Use ifcopenshell.api.run() directly\nwall = ifcopenshell.api.run(\"root.create_entity\", model,\n    ifc_class=\"IfcWall\", name=\"New Wall\")\n\n# Option B: Use Bonsai operators (handles Blender sync automatically)\nbpy.ops.bim.add_wall()\n\n# After creating elements, ensure spatial containment\nstorey = model.by_type(\"IfcBuildingStorey\")[0]\nifcopenshell.api.run(\"spatial.assign_container\", model,\n    relating_structure=storey, products=[wall])\n\n# CRITICAL: If you moved the Blender object, sync placement to IFC\nbpy.ops.bim.edit_object_placement(context_override)\n\n# Add property set\npset = ifcopenshell.api.run(\"pset.add_pset\", model,\n    product=wall, name=\"Pset_WallCommon\")\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset, properties={\n    \"IsExternal\": True,\n    \"LoadBearing\": True,\n    \"FireRating\": \"REI60\"\n})\n```\n\n### Pattern 4: Batch Property Extraction (Headless)\n\n```python\n# Context: Standalone Python or blender --background\n# Version: IfcOpenShell 0.8.x | IFC4\nimport ifcopenshell\nimport ifcopenshell.util.element\nimport csv\n\nmodel = ifcopenshell.open(\"building.ifc\")\n\nwith open(\"wall_report.csv\", \"w\", newline=\"\") as f:\n    writer = csv.writer(f)\n    writer.writerow([\"GlobalId\", \"Name\", \"IsExternal\", \"FireRating\", \"LoadBearing\"])\n\n    for wall in model.by_type(\"IfcWall\"):\n        psets = ifcopenshell.util.element.get_psets(wall)\n        common = psets.get(\"Pset_WallCommon\", {})\n        writer.writerow([\n            wall.GlobalId,\n            wall.Name,\n            common.get(\"IsExternal\", \"\"),\n            common.get(\"FireRating\", \"\"),\n            common.get(\"LoadBearing\", \"\"),\n        ])\n```\n\n### Pattern 5: Model Validation Pipeline\n\n```python\n# Context: Standalone Python\n# Version: IfcOpenShell 0.8.x | IFC4\u002FIFC2X3\nimport ifcopenshell\nimport ifcopenshell.util.element\n\ndef validate_model(filepath: str) -> list[str]:\n    errors = []\n    model = ifcopenshell.open(filepath)\n\n    # Check 1: Spatial hierarchy exists\n    if not model.by_type(\"IfcProject\"):\n        errors.append(\"CRITICAL: No IfcProject found\")\n    if not model.by_type(\"IfcSite\"):\n        errors.append(\"CRITICAL: No IfcSite found\")\n    if not model.by_type(\"IfcBuilding\"):\n        errors.append(\"CRITICAL: No IfcBuilding found\")\n    if not model.by_type(\"IfcBuildingStorey\"):\n        errors.append(\"WARNING: No IfcBuildingStorey found\")\n\n    # Check 2: All physical elements have spatial containment\n    physical_types = [\"IfcWall\", \"IfcSlab\", \"IfcColumn\", \"IfcBeam\",\n                      \"IfcDoor\", \"IfcWindow\"]\n    for ifc_type in physical_types:\n        for element in model.by_type(ifc_type):\n            container = ifcopenshell.util.element.get_container(element)\n            if container is None:\n                errors.append(\n                    f\"WARNING: {element.is_a()} '{element.Name}' \"\n                    f\"(#{element.id()}) has no spatial container\")\n\n    # Check 3: All elements have geometry\n    for element in model.by_type(\"IfcProduct\"):\n        if hasattr(element, \"Representation\") and element.Representation is None:\n            if element.is_a() not in (\"IfcSite\", \"IfcBuilding\",\n                                       \"IfcBuildingStorey\", \"IfcSpace\",\n                                       \"IfcProject\"):\n                errors.append(\n                    f\"WARNING: {element.is_a()} '{element.Name}' \"\n                    f\"(#{element.id()}) has no geometry representation\")\n\n    # Check 4: Units are assigned\n    project = model.by_type(\"IfcProject\")[0] if model.by_type(\"IfcProject\") else None\n    if project and not project.UnitsInContext:\n        errors.append(\"CRITICAL: No units assigned to project\")\n\n    # Check 5: IFC2X3 OwnerHistory requirement\n    if model.schema == \"IFC2X3\":\n        for entity in model.by_type(\"IfcRoot\"):\n            if entity.OwnerHistory is None:\n                errors.append(\n                    f\"ERROR: IFC2X3 requires OwnerHistory on \"\n                    f\"{entity.is_a()} '{entity.Name}' (#{entity.id()})\")\n\n    return errors\n```\n\n### Pattern 6: Multi-File Batch Processing\n\n```python\n# Context: Standalone Python\n# Version: IfcOpenShell 0.8.x\nimport ifcopenshell\nimport ifcopenshell.api\nfrom pathlib import Path\n\ndef enrich_models(input_dir: str, output_dir: str, classification_system: str):\n    \"\"\"Add classification references to all IFC files in a directory.\"\"\"\n    input_path = Path(input_dir)\n    output_path = Path(output_dir)\n    output_path.mkdir(parents=True, exist_ok=True)\n\n    for ifc_file in input_path.glob(\"*.ifc\"):\n        model = ifcopenshell.open(str(ifc_file))\n\n        # Add classification system if not present\n        classifications = model.by_type(\"IfcClassification\")\n        if not any(c.Name == classification_system for c in classifications):\n            classification = ifcopenshell.api.run(\n                \"classification.add_classification\", model,\n                classification=classification_system)\n        else:\n            classification = next(\n                c for c in classifications if c.Name == classification_system)\n\n        # Process each element\n        for wall in model.by_type(\"IfcWall\"):\n            ifcopenshell.api.run(\"classification.add_reference\", model,\n                products=[wall],\n                classification=classification,\n                identification=\"21.22\",\n                name=\"Exterior Walls\")\n\n        output_file = output_path \u002F ifc_file.name\n        model.write(str(output_file))\n```\n\n---\n\n## Cross-Technology API Integration Points\n\n### IfcOpenShell \u003C-> Blender (Without Bonsai)\n\n| IfcOpenShell Operation | Blender Equivalent | Integration Point |\n|----------------------|-------------------|-------------------|\n| `ifcopenshell.geom.create_shape()` | `mesh.from_pydata(verts, [], faces)` | Geometry extraction: shape.geometry.verts\u002Ffaces |\n| `element.ObjectPlacement` | `obj.matrix_world` | 4x4 transformation matrix |\n| `model.by_type(\"IfcWall\")` | `bpy.data.objects` filtering | Element enumeration |\n| IFC materials | `bpy.data.materials` | Manual mapping required |\n\n### IfcOpenShell \u003C-> Bonsai\n\n| IfcOpenShell Operation | Bonsai Equivalent | Notes |\n|----------------------|------------------|-------|\n| `ifcopenshell.api.run(cmd, model, **kw)` | `tool.Ifc.run(cmd, **kw)` | Bonsai wraps the API; model is implicit |\n| `ifcopenshell.open(path)` | `IfcStore.get_file()` | NEVER open separately when Bonsai is active |\n| `element.id()` | `obj.BIMProperties.ifc_definition_id` | Bidirectional mapping via IfcStore.id_map |\n| `element.GlobalId` | `IfcStore.guid_map` | Bidirectional GUID-to-object lookup |\n\n### Bonsai \u003C-> Blender\n\n| Bonsai Operation | Blender Equivalent | Sync Rule |\n|-----------------|-------------------|-----------|\n| `bpy.ops.bim.add_wall()` | Creates mesh + IFC entity | Automatic bidirectional sync |\n| IFC placement change | `obj.location` \u002F `obj.matrix_world` | MUST call `bpy.ops.bim.edit_object_placement()` |\n| `pset.edit_pset()` | BIM property panels | Panel shows live IFC data |\n| `IfcStore.edited_objs` | Modified Blender objects | Pending IFC changes queue |\n\n---\n\n## Version Compatibility Matrix\n\n| Feature | IFC2X3 | IFC4 | IFC4X3 | Notes |\n|---------|--------|------|--------|-------|\n| OwnerHistory | REQUIRED | OPTIONAL | OPTIONAL | Set via `owner.set_user` before entity creation |\n| IfcWallStandardCase | Available | DEPRECATED | DEPRECATED | Use IfcWall with PredefinedType instead |\n| IfcFacility | N\u002FA | N\u002FA | Available | Generalization of IfcBuilding for infrastructure |\n| IfcAlignment | N\u002FA | N\u002FA | Available | Linear infrastructure alignment |\n| IfcDoorType | N\u002FA (use IfcDoorStyle) | Available | Available | |\n| IfcWindowType | N\u002FA (use IfcWindowStyle) | Available | Available | |\n| Property set types | IfcPropertySingleValue | + Bounded, Table, List | + Bounded, Table, List | |\n| Material sets | IfcMaterialList | + IfcMaterialConstituentSet | + IfcMaterialConstituentSet | |\n\n| Feature | Blender 3.x | Blender 4.x | Blender 5.x | Notes |\n|---------|-------------|-------------|-------------|-------|\n| bgl module | Available | Deprecated | REMOVED | Use `gpu` module for all drawing |\n| Extension system | N\u002FA | Available (4.2+) | Required | bl_info replaced by blender_manifest.toml |\n| Bonsai compatibility | Pre-rename (BlenderBIM) | Bonsai v0.8.x | Bonsai v0.8.x+ | ALWAYS use `bonsai.*` imports |\n| Grease Pencil API | Legacy | Rewritten (4.3) | New API | Complete API break in 4.3 |\n\n---\n\n## Common Operations Quick Reference\n\n### Property Set Management Across Contexts\n\n```python\n# Standalone IfcOpenShell: Read properties\nimport ifcopenshell.util.element\npsets = ifcopenshell.util.element.get_psets(element)\nvalue = psets.get(\"Pset_WallCommon\", {}).get(\"IsExternal\")\n\n# Standalone IfcOpenShell: Write properties\npset = ifcopenshell.api.run(\"pset.add_pset\", model,\n    product=element, name=\"Pset_WallCommon\")\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset,\n    properties={\"IsExternal\": True})\n\n# Bonsai context: Read properties (same IfcOpenShell util)\nmodel = IfcStore.get_file()\nentity = tool.Ifc.get_entity(bpy.context.active_object)\npsets = ifcopenshell.util.element.get_psets(entity)\n\n# Bonsai context: Write properties (same API)\nifcopenshell.api.run(\"pset.edit_pset\", model, pset=pset,\n    properties={\"IsExternal\": True})\n```\n\n### Spatial Hierarchy Traversal\n\n```python\n# Get container of an element\nimport ifcopenshell.util.element\ncontainer = ifcopenshell.util.element.get_container(element)\n# Returns: IfcBuildingStorey, IfcSpace, or None\n\n# Get all elements in a storey\nelements = ifcopenshell.util.element.get_decomposition(storey)\n\n# Walk full spatial tree\ndef walk_spatial(element, depth=0):\n    print(\"  \" * depth + f\"{element.is_a()}: {element.Name}\")\n    for rel in getattr(element, \"IsDecomposedBy\", []):\n        for child in rel.RelatedObjects:\n            walk_spatial(child, depth + 1)\n    for rel in getattr(element, \"ContainsElements\", []):\n        for child in rel.RelatedElements:\n            walk_spatial(child, depth + 1)\n\nproject = model.by_type(\"IfcProject\")[0]\nwalk_spatial(project)\n```\n\n---\n\n## Reference Links\n\n- [Cross-Technology API Methods](references\u002Fmethods.md) — Complete integration point signatures\n- [End-to-End Workflow Examples](references\u002Fexamples.md) — Full working examples for common BIM workflows\n- [Cross-Tech Anti-Patterns](references\u002Fanti-patterns.md) — Common integration mistakes and how to avoid them\n\n## Sources\n\n- IfcOpenShell Documentation: https:\u002F\u002Fdocs.ifcopenshell.org\n- IfcOpenShell API Reference: https:\u002F\u002Fdocs.ifcopenshell.org\u002Fautoapi\u002Fifcopenshell\u002Fapi\u002Findex.html\n- Bonsai Documentation: https:\u002F\u002Fdocs.bonsaibim.org\n- Blender Python API: https:\u002F\u002Fdocs.blender.org\u002Fapi\u002Fcurrent\u002Findex.html\n- IfcOpenShell GitHub: https:\u002F\u002Fgithub.com\u002FIfcOpenShell\u002FIfcOpenShell\n- OSArch Community: https:\u002F\u002Fcommunity.osarch.org\n",{"name":5,"license":14,"metadata":23,"description":26,"compatibility":27},{"author":24,"version":25},"OpenAEC-Foundation","1.0","Use when implementing end-to-end BIM workflows that combine IfcOpenShell, Bonsai, and Blender -- such as IFC creation from scratch, model enrichment, validation pipelines, geometry extraction, or batch processing of building models. Prevents the common mistake of skipping unit and context setup before creating geometry, or directly modifying IFC attributes instead of using ifcopenshell.api.run(). Covers property set management across tools, spatial hierarchy patterns, and version compatibility for IFC2X3\u002FIFC4\u002FIFC4X3. Keywords: BIM workflow, IFC creation, model validation, property extraction, batch processing, spatial hierarchy, cross-technology, IfcOpenShell Bonsai Blender, pset management, how to create IFC model, step by step BIM, get properties from IFC.\n","Designed for Claude Code. Requires Python 3.x.","main","9bb7acf0c2ec4f44373969cb14e55af3c9a8385f","plugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot","2026-11-09 13:26:47",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill aec-core-bim-workflows",{"tool":40,"command":41},"bunx","bunx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill aec-core-bim-workflows",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lagzgabrielmuller-dot\u002Fkit-ingenieria-3d --skill aec-core-bim-workflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanti-patterns.md","REFERENCE","参考文档",15520,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows\u002Freferences\u002Fanti-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fexamples.md",22143,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows\u002Freferences\u002Fexamples.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmethods.md",14491,"https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fblender-bim-sverchok\u002Fskills\u002Faec-cross-tech\u002Fcore\u002Faec-core-bim-workflows\u002Freferences\u002Fmethods.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7FBFSZ93YM463CGS91D0TZG","manimce-best-practices","Trigger when: (1) User mentions \"manim\" or \"Manim Community\" or \"ManimCE\", (2) Code contains `from manim import *`, (3) User runs `manim` CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes.\n\nBest practices for Manim Community Edition - the community-maintained Python animation engine. Covers Scene structure, animations, LaTeX\u002FMathTex, 3D with ThreeDScene, camera control, styling, and CLI usage.\n\nNOT for ManimGL\u002F3b1b version (which uses `manimlib` imports and `manimgl` CLI).","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fmanim-animaciones\u002Fskills\u002Fmanimce-best-practices\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7FB2K59HNNXS9WKHAMWHC3C","drawio","Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML\u002FER, org charts, Mermaid\u002FCSV conversion, existing .drawio bundles, style presets, themes, and non-publication formula diagrams. For publication figures (paper, thesis, IEEE, camera-ready) use drawio-academic-skills instead.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7FB2BWX7GWK9H2X8BGCYDDD","drawio-academic-skills","Publication-figure overlay for draw.io. Use instead of drawio whenever the diagram is for a paper, thesis, dissertation, journal, conference, IEEE\u002FACM submission, manuscript, camera-ready, Word\u002FLaTeX figure, or other publication. Applies venue, figure-type, color, caption\u002Flegend, formula, and paper-readability gates for architecture, workflow, roadmap, network-topology, and replicated paper figures.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fdiagramas-y-documentos\u002Fskills\u002Fdrawio-academic-skills\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7FB22JESEAV8T15DJT3D444","uncertainty-and-units","Tracks physical units and propagates measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7FB1ANRSG28R335FDY9SA3R","statistical-analysis","Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers t-tests, ANOVA, chi-square, correlation, regression, non-parametric and Bayesian methods. For low-level model APIs, see the statsmodels and pymc skills.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fstatistical-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7FB15KRA9D7JCPH4P9T6XJY","simpy","Builds, inspects, tests, and analyzes bounded process-based discrete-event simulations with SimPy. Use for event scheduling, resource queues, interrupts, monitoring, independent replications, warm-up, and reproducible output analysis.","https:\u002F\u002Fgithub.com\u002Flagzgabrielmuller-dot\u002Fkit-ingenieria-3d\u002Fblob\u002Fmain\u002Fplugins\u002Fciencia-y-calculo\u002Fskills\u002Fsimpy\u002FSKILL.md",[],[]]