Skip to main content

IFCReader

Nodes for loading and creating IFC models.

LoadIFCModel

Loads IFC file(s) into a model wrapper. Automatically discovers and loads related IFC files from the same directory. Geometry is extracted and cached during loading for optimal performance.

Inputs:

ParameterTypeDescription
ifcFilePathstringPath to the primary IFC file
federationDirectorystringOptional: Directory to search for additional IFC files. Empty searches the same directory as the primary file. Set to "none" to disable auto-discovery and load only the specified file.

Output:

TypeDescription
IFCModelWrapper containing all loaded models with pre-built geometry cache

Usage Notes:

  • Federation: When loading from a directory, all .ifc files are loaded and indexed together
  • Performance: Geometry is cached during load for fast subsequent access
  • Memory: Large models may take time to load

Example:

File Path: "C:\Projects\Model.ifc" Federation Directory: "" (empty for auto-discovery)

Result: IFCModel containing Model.ifc and any other IFC files in the same folder


CreateIFCModel

Creates a new empty IFC model with minimal structure.

Inputs:

ParameterTypeDescription
filePathstringPath where the IFC file will be saved
projectNamestringOptional: Name for the project. Default is "New Project"

Output:

TypeDescription
IFCModelWrapper containing the new model

Created Structure:

The new model contains:

  • IfcProject
    • IfcSite
      • IfcBuilding
        • IfcBuildingStorey