Import models using the
IFC
(Industry Foundation Classes) open standard.
Overview
The xeokit SDK provides support for loading IFC STEP files, the
industry-standard exchange format for Building Information Modeling (BIM)
in the Architecture, Engineering, and Construction (AEC) domain.
IFC represents both geometry and rich semantic structure, enabling
querying, classification, and analysis workflows after import.
%%{init:{"theme":"dark"}}%%
classDiagram
direction TB
class IFCLoader {
+format / versions / fileDataType
+load(params, options?) Promise~void~
}
class ifctypes_4_0_2_1 {
<<sub-module>>
IFC4 ObjectType / RelationshipType id constants
}
class ModelLoader {
<<formats>>
}
ModelLoader <|-- IFCLoader
IFCLoader ..> ifctypes_4_0_2_1 : uses
%%{init:{"theme":"default"}}%%
classDiagram
direction TB
class IFCLoader {
+format / versions / fileDataType
+load(params, options?) Promise~void~
}
class ifctypes_4_0_2_1 {
<<sub-module>>
IFC4 ObjectType / RelationshipType id constants
}
class ModelLoader {
<<formats>>
}
ModelLoader <|-- IFCLoader
IFCLoader ..> ifctypes_4_0_2_1 : uses
classDiagram
direction TB
class IFCLoader {
+format / versions / fileDataType
+load(params, options?) Promise~void~
}
class ifctypes_4_0_2_1 {
<<sub-module>>
IFC4 ObjectType / RelationshipType id constants
}
class ModelLoader {
<<formats>>
}
ModelLoader <|-- IFCLoader
IFCLoader ..> ifctypes_4_0_2_1 : uses
Features
IFC2x3 + IFC4 + IFC4x3 — multi-version parser; auto-detects
the schema from the FILE_SCHEMA(...) header.
Geometry + semantics — fills a SceneModel with implicit
geometry (extrusions, sweeps, profiles) tessellated into
triangle meshes, and a DataModel with the IFC entity graph
(IfcProject → IfcSite → IfcBuilding → IfcBuildingStorey → …).
Stable type ids — IFC type constants are exported from
ifctypes_* sub-modules so application code references them
by symbol instead of magic strings.
Property-set passthrough — every IfcPropertySet attached
to an IfcObject becomes a PropertySet
on the matching DataObject.
Installation
npminstall@xeokit/sdk
Example: loading an IFC model (with error checking)
ifc — IFC Importer
Import models using the IFC (Industry Foundation Classes) open standard.
Overview
The xeokit SDK provides support for loading IFC STEP files, the industry-standard exchange format for Building Information Modeling (BIM) in the Architecture, Engineering, and Construction (AEC) domain.
IFC represents both geometry and rich semantic structure, enabling querying, classification, and analysis workflows after import.
Importing IFC
Use IFCLoader to load an IFC file into:
Shape
Features
FILE_SCHEMA(...)header.ifctypes_*sub-modules so application code references them by symbol instead of magic strings.Installation
Example: loading an IFC model (with error checking)
Notes
result.ok === falsewhen calling xeokit factory methods.