The short version
- What it is: a shared data model for the built environment. It defines what a wall, door, space, beam, road alignment or pipe segment is, how they relate, and which information they can carry.
- Who maintains it: buildingSMART International, a non-profit standards body. The schema is published as the international standard ISO 16739-1.
- What it is for: moving models between software from different vendors (for example from an architectural tool to a structural, energy or cost tool), checking models, and keeping a vendor-independent record of a project.
- What it is not: a replacement for each tool's native format. Most authoring software exports and imports IFC; a few open-source tools, such as Bonsai, edit IFC directly.
What an IFC model contains
An IFC file is a set of objects (called entities) and the relationships between them:
- Elements such as
IfcWall,IfcDoor,IfcBeamorIfcPipeSegment, each with aGlobalId: a 22-character identifier that stays the same across exports, so other tools and formats (like BCF) can point at an element. - A spatial structure: project, site, building, storey and space, with every element placed inside it.
- Property sets and quantities: named groups of values attached to elements. Standard sets such as
Pset_WallCommon(with properties likeIsExternalandFireRating) are defined by the schema; projects can add their own. - Geometry and placement, from simple extrusions to boundary representations and meshes.
- Types, materials and classifications, such as a wall type shared by many walls, or a reference to a classification system like Uniclass or OmniClass.
IFC versions
| Version | Status | Notes |
|---|---|---|
| IFC2x3 | Older, still widely used | Supported by most BIM software. Commonly exchanged using the Coordination View 2.0 model view. |
| IFC4 | ISO 16739-1:2018 | Improved geometry, properties and model views (Reference View, Design Transfer View). |
| IFC 4.3 | ISO 16739-1:2024 (current) | Adds infrastructure: roads, railways, bridges, and ports and waterways, alongside buildings. |
| IFC5 | In development (alpha) | A JSON-based redesign. buildingSMART describes the current examples as preliminary and not suitable for production use. |
Before you exchange files, agree on the IFC version and the model view with whoever receives them. A tool that reads IFC2x3 well may not read IFC 4.3 at all.
File formats
.ifc: the usual format, a plain-text STEP Physical File (ISO 10303-21). Each line is one entity, and entities refer to each other by number (#12)..ifcXML: the same data as XML..ifcZIP: a compressed.ifcor.ifcXMLfile.
What it looks like in code
This script uses the open-source IfcOpenShell Python library to create a model with
two walls, save it as IFC4, then open it again and read each wall's storey and properties. Install it with
pip install ifcopenshell.
"""Create a small IFC4 model with IfcOpenShell, save it, then read it back and query it."""
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.util.element
# --- Create a model: project > site > building > storey > two walls ---
model = ifcopenshell.api.run("project.create_file", version="IFC4")
project = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcProject", name="Demo project")
ifcopenshell.api.run("unit.assign_unit", model) # metric defaults: millimetres, m², m³
site = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcSite", name="Site")
building = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcBuilding", name="Building A")
storey = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcBuildingStorey", name="Ground floor")
ifcopenshell.api.run("aggregate.assign_object", model, relating_object=project, products=[site])
ifcopenshell.api.run("aggregate.assign_object", model, relating_object=site, products=[building])
ifcopenshell.api.run("aggregate.assign_object", model, relating_object=building, products=[storey])
for name, fire_rating in [("External wall", "REI 60"), ("Partition wall", None)]:
wall = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcWall", name=name)
ifcopenshell.api.run("spatial.assign_container", model, relating_structure=storey, products=[wall])
pset = ifcopenshell.api.run("pset.add_pset", model, product=wall, name="Pset_WallCommon")
properties = {"IsExternal": name.startswith("External")}
if fire_rating:
properties["FireRating"] = fire_rating
ifcopenshell.api.run("pset.edit_pset", model, pset=pset, properties=properties)
model.write("demo.ifc")
# --- Read it back and query it ---
model = ifcopenshell.open("demo.ifc")
print("Schema:", model.schema)
for wall in model.by_type("IfcWall"):
psets = ifcopenshell.util.element.get_psets(wall)
storey = ifcopenshell.util.element.get_container(wall)
common = psets.get("Pset_WallCommon", {})
print(f"{wall.GlobalId} {wall.Name:<15} storey={storey.Name} "
f"IsExternal={common.get('IsExternal')} FireRating={common.get('FireRating')}") Schema: IFC4
1NPRrUeK11twM6k$J_tILT External wall storey=Ground floor IsExternal=True FireRating=REI 60
3V_OYeitj4PQ$ZX3WASmka Partition wall storey=Ground floor IsExternal=False FireRating=None The whole saved file is short enough to read. Note the header (schema and model view), the spatial structure (IFCRELAGGREGATES), the walls placed on the storey (IFCRELCONTAINEDINSPATIALSTRUCTURE) and their property sets:
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1');
FILE_NAME('/dev/null','2026-11-30T00:55:36+03:00',(''),(''),'IfcOpenShell 0.9.0.post1','IfcOpenShell 0.9.0.post1','Nobody');
FILE_SCHEMA(('IFC4'));
ENDSEC;
DATA;
#1=IFCPROJECT('2xs9Gmd$j4MuFq1TeQqpaX',$,'Demo project',$,$,$,$,$,#5);
#2=IFCSIUNIT(*,.LENGTHUNIT.,.MILLI.,.METRE.);
#3=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);
#4=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);
#5=IFCUNITASSIGNMENT((#2,#3,#4));
#6=IFCSITE('1R21iDGMLBPOmoAVKaDEbT',$,'Site',$,$,$,$,$,$,$,$,$,$,$);
#7=IFCBUILDING('0bGC0kdpP7nhNQhdHCh2eS',$,'Building A',$,$,$,$,$,$,$,$,$);
#8=IFCBUILDINGSTOREY('2U6iLgt0H2vP19JcmcQjiG',$,'Ground floor',$,$,$,$,$,$,$);
#9=IFCRELAGGREGATES('02ORPjIDf8FvYN5QeBtHlI',$,$,$,#1,(#6));
#10=IFCRELAGGREGATES('2yCrOGCNjETfIe46aiuWGJ',$,$,$,#6,(#7));
#11=IFCRELAGGREGATES('14utG8Fo97rRlbubr5NTpV',$,$,$,#7,(#8));
#12=IFCWALL('1NPRrUeK11twM6k$J_tILT',$,'External wall',$,$,$,$,$,$);
#13=IFCRELCONTAINEDINSPATIALSTRUCTURE('2zAoy7iw509gio0aqZ6IpK',$,$,$,(#18,#12),#8);
#14=IFCPROPERTYSET('2SVzJZLBvArQ5if6I9I8AP',$,'Pset_WallCommon',$,(#16,#17));
#15=IFCRELDEFINESBYPROPERTIES('3IobkPfYL52fcSBOBrE10r',$,$,$,(#12),#14);
#16=IFCPROPERTYSINGLEVALUE('IsExternal',$,IFCBOOLEAN(.T.),$);
#17=IFCPROPERTYSINGLEVALUE('FireRating',$,IFCLABEL('REI 60'),$);
#18=IFCWALL('3V_OYeitj4PQ$ZX3WASmka',$,'Partition wall',$,$,$,$,$,$);
#19=IFCPROPERTYSET('1GMBvDZAz6J8kEB8uHVVwb',$,'Pset_WallCommon',$,(#21));
#20=IFCRELDEFINESBYPROPERTIES('1XI6OVdSP3T8J1L8dB7r4r',$,$,$,(#18),#19);
#21=IFCPROPERTYSINGLEVALUE('IsExternal',$,IFCBOOLEAN(.F.),$);
ENDSEC;
END-ISO-10303-21; GlobalIds and timestamps differ on every run. The partition wall has no fire rating on purpose: the IDS and BCF pages check and report it.
How IFC relates to IDS and BCF
- IDS states which information an IFC model must contain, so it can be checked automatically.
- BCF carries issues about an IFC model between tools, pointing at elements by their
GlobalId.
Together with IFC they make up the core of openBIM: exchanging, specifying and coordinating building information with open standards instead of one vendor's file format.