IFC Files Explained: Structure, Classes, and Properties

IFC Files Explained: Structure, Classes, and Properties

The first time I opened an ifc-file/” data-khs-tag=”287″>IFC file in a plain text editor, I felt exactly the way I did when I first opened a DXF file in 1989: a mixture of fascination and mild dread. Pages of numbered lines, strange capital letters, dollar signs, brackets. For a moment, I thought I had made a mistake and opened the wrong thing. Then I scrolled to the middle of the file, found a line that said IFCWALL, saw a name I recognized from the model, and understood: this was not a mess. It was a database, written out line by line, and it was perfectly readable once I knew how to read it.

Most BIM professionals will never read an IFC file line by line, and they do not need to. But understanding how an IFC file is built has a practical payoff that surprises people. It explains why some properties arrive and others do not. It explains why a model that “looks fine” can fail an automated check. It explains why file sizes explode, why identifiers matter and why a single wrong setting in an export dialog can drop an entire category of elements. After thirty years of watching people struggle with exchange formats, I can say that ten minutes of understanding the structure saves hours of guessing.

This guide opens the file. I will walk you through the anatomy of an IFC file, the way classes and inheritance work, how the spatial structure is organized, how objects, types, properties, materials and classifications are attached, how geometry and coordinates are stored and how to inspect a file you have received. For the ISO standard behind the schema, see ISO 16739 and the IFC Standard Explained; for the differences between versions, see IFC 2×3 vs. IFC4 vs. IFC4.3: Key Differences.


The Short Answer

An IFC file is a structured data file that describes a built asset as a set of objects (walls, doors, spaces, pumps), their relationships, their properties and their geometry, following the IFC schema published by buildingSMART International and standardized as ISO 16739-1.

Most IFC files you meet are STEP physical files with the extension .ifc: plain text, one numbered instance per line. Each instance is an occurrence of an entity (a class defined by the schema) with its attributes in a fixed order, and instances refer to one another by number.

In one sentence:

An IFC file is a text-based database of building objects, where every object has an identity, a class, attributes and links to other objects.


What an IFC File Contains (and Does Not)

An IFC file typically containsAn IFC file typically does not contain
Spatial structure: project, site, building, storeys, spacesEditable native objects such as families and parametric rules
Physical elements with classes and namesViews, sheets and drawing annotations as native objects
Types shared by many elementsThe full history of how the model was authored
Properties and quantities in property setsSoftware-specific analysis models
Materials, layers and classification referencesAnything the exporting tool did not map or export
Geometry in several possible representationsGuarantees that your project requirements are met
Relationships between all of the above
Units, coordinate systems, georeferencing

This is why IFC is excellent for coordination, checking, quantities, handover and archive, and not designed for editing someone else’s design. See openBIM vs. Closed BIM: Pros, Cons, and When to Use Each.


The Anatomy of the File

Open an IFC STEP file in a text editor and you will see two main parts.

Anatomy of an IFC file

1. The Header

The header describes the file itself, not the building. It typically states:

  • the view definition the file claims to follow (for example a reference view);
  • the file name, date, author and organization, and the software that produced it;
  • the schema the data follows, written as FILE_SCHEMA, for example IFC2X3, IFC4 or IFC4X3_ADD2.

The header is the first place to look when you receive a file: it tells you which schema version you are dealing with and which software produced it. A mismatch between what the EIR asked for and what the header says is the quickest possible quality check.

2. The Data Section

The data section is where the building lives. Each line is an instance: a number (the instance id), an equals sign, an entity name and a list of attributes in parentheses.

Here is a simplified, illustrative fragment, with identifiers shortened for readability.

#1=IFCPROJECT('0Yvc...',#2,'Demo Project',$,$,$,$,(#3),#4);
#10=IFCWALL('3cUk...',#2,'Wall A',$,$,#11,#12,$,.STANDARD.);
#20=IFCDOOR('1a2B...',#2,'D-101',$,$,#21,#22,$,2100.,900.,.DOOR.,.SINGLE_SWING.,$);

How to read it:

  • #10= is the instance id, a local label used by other lines to refer to this object.
  • IFCWALL is the entity: the class of the object.
  • The values in parentheses are the attributes, in the order defined by the schema: a GlobalId, a link to owner information, a name, an optional description, and so on.
  • $ means no value.
  • #11, #12 are references to other instances: here, the wall’s placement in space and its geometric representation.
  • Words between dots, such as .STANDARD., are enumeration values.

The order of attributes is fixed by the schema. That is why a human cannot easily guess what each position means, and why software relies on the schema to interpret files.

Other Encodings

The same data can be encoded in other ways, such as an XML encoding or compressed archives, and other serializations exist. In practice, when a project says “IFC”, it normally means the text STEP file. State it in the EIR. See ISO 16739 and the IFC Standard Explained.


Entities, Inheritance and Why Class Names Look Long

IFC names its classes with the prefix Ifc, such as IfcWall, IfcDoor, IfcBeam, IfcSpace. The classes are organized in a hierarchy where specialized classes inherit the attributes of more general ones.

A simplified chain for a wall looks like this:

LevelEntity (simplified)What it adds
RootIfcRootGlobalId, owner history, name, description
ObjectIfcObjectAn object type label
ProductIfcProductPlacement in space and representation (geometry)
ElementIfcElementA tag (a free identifier)
WallIfcWallA predefined type, for example standard or partition

Why does this matter to you?

  1. Everything rooted in IfcRoot has a GlobalId. That is why you can track any object.
  2. Classes carry meaning. An IfcWall is not an IfcSlab. If a wall was modeled as a generic object in the authoring tool, it may arrive as a generic proxy class, with little meaning for downstream checks.
  3. Predefined types refine the class. A door can be a door, a gate or a trap door. The predefined type is an attribute, and requirements can ask for it.
  4. Class names can change between versions. The schema evolves. For instance, a general class for building elements was given a more general name in the IFC 4.3 generation, to accommodate infrastructure. When a check refers to a class, make sure it matches the schema version of the file.

The Proxy Problem

When the exporting tool cannot map an element to a specific class, it often falls back on a generic proxy (such as IfcBuildingElementProxy). Proxies are legal, and sometimes appropriate, but a model full of proxies is a model with little meaning: quantity takeoffs, checks and requirements that depend on class will not work. If you see many proxies in a file, investigate the category mapping in the authoring tool.


The Spatial Structure: Where Things Are

Every IFC model is organized in a spatial tree.

How an IFC model is organized

  • IfcProject is the root.
  • It contains one or more IfcSite objects.
  • A site contains IfcBuilding objects.
  • A building contains IfcBuildingStorey objects (levels).
  • Storeys contain IfcSpace objects (rooms) and the physical elements placed on them.

The relationships are not hidden inside the objects. They are separate relationship objects, such as IfcRelAggregates (a whole made of parts, such as a building made of storeys) and IfcRelContainedInSpatialStructure (an element contained in a storey or space). This is an important design decision of IFC: relationships are first-class objects with their own identity.

Why You Should Care About the Spatial Structure

  • Navigation. Viewers and checkers use it to filter by storey or building.
  • Requirements. Specifications such as “all walls on this storey” depend on correct containment.
  • Quantity takeoff and cost. Grouping by storey or zone relies on it.
  • Coordination. Storeys that do not match between models create confusion.

A frequent real-world problem: elements exported without containment in a storey, or storeys named inconsistently between disciplines. Agree the structure in the BEP. See BIM Models vs. Federated Models: What Is the Difference?.


Types and Occurrences

A type holds the definition shared by many elements, such as “Single-Flush Door 900 x 2100”. Each placed door is an occurrence that refers to the type through a relationship (IfcRelDefinesByType).

IFC conceptTypical authoring tool equivalent
Entity (IfcDoor)Category and placed instance
Type object (IfcDoorType)Family type
Relationship (IfcRelDefinesByType)The link between an instance and its type

Properties can be attached to the type (shared by all occurrences) or to individual occurrences. This mirrors the guidance in BIM Objects, Families, and Parameters Explained: product data at type level, location-specific data at instance level.


Properties and Quantities: Where Information Lives

Information in IFC is attached through property sets and quantity sets.

Property Sets

A property set (often abbreviated Pset) is a named group of properties attached to an object or a type through a relationship (IfcRelDefinesByProperties).

A simplified illustration of a door with a fire rating:

#30=IFCPROPERTYSET('2bA7...',#2,'Pset_DoorCommon',$,(#31,#32));
#31=IFCPROPERTYSINGLEVALUE('FireRating',$,IFCLABEL('EI30'),$);
#32=IFCPROPERTYSINGLEVALUE('IsExternal',$,IFCBOOLEAN(.F.),$);
#33=IFCRELDEFINESBYPROPERTIES('3cD9...',#2,$,$,(#20),#30);

Read it like this: property set #30, named Pset_DoorCommon, contains properties #31 and #32. Property #31 is called FireRating with a text value EI30. The relationship #33 attaches the property set to the door #20.

Standard vs. Custom Property Sets

  • Standard property sets are defined by the schema, with names beginning Pset_. For example, the common property set for walls includes fire rating, whether the wall is external and whether it is load-bearing.
  • Custom property sets are defined by a project, an organization or a software tool. Their names should be clearly distinguishable and documented.

When you require “a fire rating” in an EIR, say which property in which property set, otherwise you will receive it under ten different names. See BIM Metadata, Attributes, and Property Sets Explained and buildingSMART Data Dictionary (bSDD) Explained.

Quantity Sets

Quantity sets, with names beginning Qto_, carry measured values such as length, area and volume. They are essential for quantity takeoff. Whether the quantities arrive depends on the export settings. If your cost consultant asks “where are the areas?”, the answer is often “the quantity sets were not exported”. See BIM Quantity Takeoff: Methods, Tools, and Best Practices.

Property Value Types and Units

Each property value is typed (text, number, boolean, length measure and so on) and may carry a unit. Units are defined at project level in the file, and values are interpreted accordingly. A wrong project unit is one of the classic causes of models that are ten or a thousand times too big or too small.


Materials, Classification and Other Attachments

Beyond properties, IFC attaches other kinds of information to objects through relationship objects.

InformationHow it is attached (simplified)
MaterialsIfcMaterial, and for layered constructions, material layer sets, linked with a material association relationship
ClassificationA classification reference (system, code, title) linked to the element through a classification association
Groups and systemsObjects grouped into systems or zones through group relationships
DocumentsReferences to external documents associated with objects
Spatial boundariesSpace boundaries describing how spaces are bounded by elements, used in energy analysis
OpeningsVoids in elements (for doors and windows) and the elements that fill them, through void and fill relationships

Two of these deserve special attention.


Geometry: How Shapes Are Stored

IFC can describe geometry in several ways. You rarely choose directly, but you should know the vocabulary, because the representation affects file size, accuracy and editability.

RepresentationWhat it isTypical use
Swept solids (extrusions)A 2D profile extruded along a directionWalls, beams, columns, slabs, with exact, light geometry
Boundary representation (BREP)A solid defined by its surfacesComplex shapes
Tessellated geometryShapes defined by triangles or facesComplex surfaces, geometry converted from other formats; also files optimized for viewing
Mapped representationsA shape defined once and reused at several placementsRepeated items such as identical doors
Curves and axesLines, such as a wall axis or an alignmentReference geometry, linear elements
Bounding boxesA simple box around an elementFast approximations

Why it matters:

  • Swept solids and mapped representations keep files small and exact. Tessellation can inflate files and reduce the exactness of dimensions.
  • The same model exported with different settings can produce very different geometry representations. Always test with the receiver’s software.
  • Geometry is not the only content. An IFC file without correct classes and properties is a 3D model, not BIM information.

Placement, Coordinates and Georeferencing

Local Placement

Elements are positioned through local placements that are relative to the placement of their container (a storey, a building, a site). The chain of placements, from the element up to the project, defines where an element actually sits.

Why Models Do Not Align

If two IFC models are loaded together and do not align, the usual causes are:

  • different origins or project base points;
  • different units;
  • different rotations (project north versus true north);
  • storey elevations that do not match;
  • missing or inconsistent georeferencing.

These problems originate in the source models and the export settings, not in IFC itself. See BIM Georeferencing: Coordinate Systems and Model Positioning.

Georeferencing in IFC

From IFC4 onward, the schema includes concepts to describe how the model’s local coordinates relate to a real-world coordinate reference system: a map conversion (the transformation) and a projected coordinate reference system (the target system). When these are present and correct, models can be placed on a map and combined with GIS data. The IFC 4.3 generation strengthened this for infrastructure. See BIM and GIS Integration: The Complete Guide.


Identity: The GlobalId

Every object rooted in IfcRoot has a GlobalId: a globally unique identifier, a 128-bit value written as a 22-character string. It is the object’s identity across files, versions and systems.

Practical consequences:

  • Issue tracking with BCF refers to objects by GlobalId. If identifiers change between exports, issues lose their link to the elements. See BIM Collaboration Format (BCF): The Complete Guide.
  • Version comparison relies on stable identifiers. If the authoring tool regenerates identifiers at every export, comparing versions becomes much harder. See BIM Model Version Comparison and Change Detection.
  • Asset registers link to elements by identifier.
  • Duplicates with the same GlobalId in one file are an error.

Ask your team to test identifier stability: export twice, with a small change in between, and compare.


Owner History and Other Administrative Data

In older IFC versions, an owner history object was required for most entities, recording who created or modified the object, with which application and when. In later versions it became optional, which reduced file size and complexity. When you see long chains of owner history instances in a file, you are probably looking at an IFC 2×3 file. This is harmless, but it is a clue about the schema version in use.


How to Inspect an IFC File You Have Received

Here is the sequence I use when a file arrives. It takes ten minutes and prevents most unpleasant surprises.

Step 1: Check the Header

Open the file in a text editor and read the first lines. Confirm the schema (for example IFC4), the view definition if stated and the software that produced it. Does it match what the EIR asked for?

Step 2: Check the Size and Plausibility

Is the file size reasonable for the scope? A tiny file for a large building suggests that elements are missing. A huge file suggests excessive geometry detail.

Step 3: Open It in a Viewer

Use a viewer that shows the spatial tree and properties. Check:

  • Does the tree have the expected project, site, building and storeys?
  • Are elements contained in the right storeys?
  • Do names and classes make sense?
  • Is the model in the right place and at the right scale?

Step 4: Check Classes

Count the objects by class. Look for:

  • an unexpectedly large number of generic proxies;
  • missing categories that you know exist in the source model;
  • spaces present if you need them.

Step 5: Check Properties

Select a few elements of each important type. Confirm that:

  • the required property sets are present with the agreed names;
  • values and units are right;
  • classification and materials arrived;
  • quantities are present if required.

Step 6: Run Automated Checks

Step 7: Record the Findings

Report problems precisely: which elements, which property, which expectation. Use BCF for issues tied to elements.


Tools for Looking Inside IFC

You do not need exotic tools.


Why IFC Files Get Big (and What to Do About It)

CauseRemedy
Excessive geometric detailModel and export only the level of detail the purpose requires. See Level of Information Need vs. LOD vs. LOI: Key Differences
Tessellated geometry for elements that could be extrudedReview export settings; use appropriate geometry representations
Repeated geometry not sharedUse mapped representations where possible
Exporting everything (all views, all categories, furniture, entourage)Export only what the purpose needs
Long property listsExport only the required property sets
Whole-project exportsSplit by discipline, zone or storey

Common Problems and What They Mean

SymptomLikely cause
Many IfcBuildingElementProxy objectsCategories not mapped to IFC classes during export
Properties missingProperty sets not configured for export or not mapped
Wrong units or scaleProject units mismatch or export setting
Models do not alignDifferent origins, rotations or georeferencing
Elements in the wrong storeyContainment problems or inconsistent level definitions
Windows without openingsVoid and fill relationships not exported correctly
Classification absentClassification export not enabled
Identifiers change every exportExport or workflow regenerates GlobalIds
Huge fileExcess detail or inefficient geometry

See How to Export and Import IFC Models Correctly and BIM Interoperability Problems and How to Solve Them.


Frequently Asked Questions

What is an IFC file?

A structured data file that describes a built asset’s objects, relationships, properties and geometry according to the IFC schema. The most common form is a text STEP file with the extension .ifc.

Can I open an IFC file in a text editor?

Yes. It is plain text, and the header and individual instances are readable. For practical review, a viewer is much more convenient.

What does $ mean in an IFC file?

It means no value for an attribute.

What is a GlobalId?

A unique identifier of 22 characters carried by objects rooted in the schema, used to identify them across files and tools.

What is a property set?

A named group of properties attached to an object or type. Standard ones start with Pset_, and custom ones are defined by projects or tools.

Why does my IFC file contain proxies?

The exporting tool could not map those elements to a specific IFC class. Check category mapping in the source model and the export settings.

Why is my IFC file so large?

Usually because of geometric detail, tessellated geometry or exporting too much. Reduce detail to the purpose and review export settings.

Does an IFC file contain all the data in my native model?

No. It contains what was exported and mapped. Parametric rules, native families and many software-specific features are not exchanged.

Which IFC version is in my file?

Check the FILE_SCHEMA line in the header, for example IFC2X3, IFC4 or IFC4X3_ADD2.

How do I check whether an IFC file is valid?

Use a validation service for schema conformity, and check project requirements separately with rule-based tools or IDS. See How to Validate IFC Models for Data Quality and Compliance.


Final Thoughts

Back at my desk in the 1990s, I thought of exchange files as sealed envelopes: you put your drawing in, hoped for the best and read the delivery receipt. An IFC file is more like an open ledger. Everything in it can be inspected: which objects exist, how they are related, what they claim to be, what information they carry and what they are missing.

That transparency is the quiet revolution. When a file fails, you are no longer guessing. You can look at the header, count the classes, inspect the properties and say precisely what is wrong. If you build that habit, IFC stops being a mysterious format and becomes what it was designed to be: a shared, checkable description of a building.

Where to go next: to compare the versions you will meet, read IFC 2×3 vs. IFC4 vs. IFC4.3: Key Differences. To produce good files, continue with How to Export and Import IFC Models Correctly, and to check them, How to Validate IFC Models for Data Quality and Compliance.

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded TheBIMAuthority.com to share practical guidance on BIM workflows, information management, industry standards, digital construction technologies and best practices for AEC professionals.