ifcos-impl-creation

Create IFC models programmatically using ifcopenshell.api with spatial hierarchy and property sets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured, API-driven approach to creating IFC (Industry Foundation Classes) models, ensuring data integrity and compliance with BIM standards.

Core Features & Use Cases

  • Guided IFC Creation: Step-by-step workflows for generating IFC projects, spatial structures (Site, Building, Storey), and common BIM elements (Walls, Slabs, Columns, Doors).
  • API Best Practices: Enforces the use of ifcopenshell.api.run() for robust entity creation, including automatic GlobalId generation and OwnerHistory management.
  • Version Compatibility: Addresses differences between IFC2X3 and IFC4/IFC4X3 schemas, including OwnerHistory requirements and specific entity support.
  • Use Case: Generate a complete IFC4 model of a multi-storey building, including walls, slabs, doors, and associated property sets, directly from Python code.

Quick Start

Use the ifcos-impl-creation skill to create a complete IFC4 model with a single wall.

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 an IFC model programmatically using Python?

To create an IFC model programmatically, use the ifcopenshell.api.run() method to generate projects, define spatial hierarchies, instantiate BIM elements, and assign property sets. This enforces automatic GlobalId generation and OwnerHistory management for data integrity.

What is the best way to set up a spatial hierarchy in IFC using ifcopenshell?

Setting up a spatial hierarchy in IFC involves sequentially creating Site, Building, and Storey entities. Using the ifcopenshell API ensures these spatial structures are properly linked and compliant with BIM standards for both IFC2X3 and IFC4 schemas.

Does ifcopenshell support creating models for both IFC2X3 and IFC4 schemas?

Yes, ifcopenshell supports creating models for both IFC2X3 and IFC4 schemas. It addresses specific schema requirements, including OwnerHistory differences and varying entity support, ensuring your BIM elements comply with the target IFC version.

How do I assign property sets to BIM elements when generating an IFC file?

Assign property sets to BIM elements by executing dedicated API commands during the model generation workflow. This allows you to attach detailed metadata to elements like walls, slabs, and doors directly from your Python code.

Can I generate a complete multi-storey building model directly from Python code?

Yes, you can generate a complete multi-storey building model from Python code. The API provides step-by-step workflows to instantiate walls, slabs, doors, and their relationships, building the entire spatial structure programmatically.

Why do I need OwnerHistory when creating IFC elements with ifcopenshell?

OwnerHistory is required when creating IFC elements to maintain data integrity and track model modifications. The ifcopenshell API manages OwnerHistory automatically during entity creation, fulfilling specific IFC2X3 and IFC4 schema requirements.