ifcos-impl-creation

Generate valid IFC models from scratch using IfcOpenShell API workflows.

30|4|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package --skill ifcos-impl-creation-impertio-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ifcos-impl-creation
Source: https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package/tree/main/skills/ifcopenshell/impl/ifcos-impl-creation
Command: npx skills add https://github.com/Impertio-Studio/Blender-Bonsai-ifcOpenshell-Sverchok-Claude-Skill-Package --skill ifcos-impl-creation-impertio-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It eliminates common IFC creation failures when building a model from scratch, including missing IfcOwnerHistory (IFC2X3) and broken spatial containment that makes elements invisible in BIM viewers.

Core Features & Use Cases

  • End-to-end IFC creation workflow: guides a complete build sequence from IFC file + IfcProject through contexts, spatial hierarchy (Site/Building/Storey), element creation, and final write-out.
  • Schema-safe entity creation: enforces using ifcopenshell.api.run() patterns so GlobalIds, OwnerHistory, and validation behavior are handled correctly.
  • Production-grade guardrails: calls out critical ordering requirements (contexts before geometry, hierarchy before elements, units assignment, placement assignment, and correct type-to-occurrence mapping).
  • Typical BIM authoring tasks: create IFC4/IFC2X3 projects, add walls/slabs/columns, define property sets, set up types, and generate door/window openings.

Quick Start

Use this skill to generate a new IFC4 model from scratch by running an ifcopenshell.api workflow that creates Project → Site → Building → Storey, then creates a wall with representation, placement, spatial containment, optional properties, and writes the file.

Frequently Asked Questions about ifcos-impl-creation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a valid IFC model from scratch using IfcOpenShell?

To create a valid IFC model from scratch, use IfcOpenShell API workflows like `ifcopenshell.api.run("project.create_file")` to orchestrate project setup, spatial hierarchy, geometry, and property assignments. This ensures GlobalIds and validation are handled correctly.

Why are my IFC2X3 elements invisible in BIM viewers after generation?

Elements become invisible in BIM viewers due to missing IfcOwnerHistory in IFC2X3 or broken spatial containment. Use correct API-driven creation patterns to assign owner history and spatial containers before writing the file.

What is the correct order for building spatial hierarchy in an IFC file?

The correct order for building IFC spatial hierarchy is creating contexts before geometry, establishing the Site/Building/Storey hierarchy before elements, and assigning units, placement, and spatial containment to ensure valid model generation.

Can I use IfcOpenShell to generate both IFC4 and IFC2X3 projects?

Yes, you can generate both IFC4 and IFC2X3 projects. The workflow accommodates both schemas, though IFC2X3 requires specific owner history handling to prevent validation errors and missing element visibility.

How do I add property sets and types to walls in an IFC model?

Add property sets and types to walls by defining type-to-occurrence mappings and using IfcOpenShell API assignments. This ensures walls, slabs, and columns receive correct representations, placements, and optional properties.

What are common limitations when generating IFC models programmatically?

Common limitations include incorrect creation ordering causing validation failures, missing IfcOwnerHistory for IFC2X3, and broken spatial containment. Enforcing API-driven patterns for contexts, hierarchy, and placement prevents these generation errors.