Skip to main content

BimIfcLoaderElementParent

Represents a BIM IFC Loader. Responsible for managing a collection of IFC files and loading data from them.

Implemented by

Index

Properties

readonlyclasses

classes: BimIfcClass[]

Gets all the IFC classes used by IFC products in the currently loaded IFC files.

@returns

An array of BimIfcClass objects representing the available classes.

readonlydisciplines

disciplines: Discipline[]

Gets the available disciplines.

@returns

An array of Discipline objects.

readonlyfloors

Gets the floors (IfcBuildingStorey) available in the currently loaded IFC files.

@returns

An array of BimIfcBuildingStorey objects representing the available floors (storey levels).

readonlyloaderElements

loaderElements: BimIfcLoaderElement[]

Gets the BimIfcLoaderElement for the loaded IFC files.

@returns

An array of BimIfcLoaderElement objects.

readonlyprojects

projects: BimIfcObject[]

Gets the IfcProject root nodes from each loaded IFC file.

@remarks

These can then be used to traverse the IFC file structure by calling foreach, or entries on each project.

@returns

An array of BimIfcObject representing the projects.

readonlyspaces

spaces: BimIfcSpace[]

Gets the spaces (IfcSpace) available in the currently loaded IFC files.

@returns

An array of BimIfcSpace objects.

Methods

addOrGetIfcProductCache

  • Adds or retrieves the cached set of BimIfcObject instances based on the provided key and predicate. Cache is cleared when clear is called.


    Type parameters

    Parameters

    • key: string

      The key used to identify the cache entry.

    • predicate: BimIfcObjectForEachPredicate

      The predicate function used to filter BimIfcObject instances. If it returns truthy then object is added to cache. Otherwise not

    Returns DeepImmutableObject<Set<T>>

    The cached set of BimIfcObject instances.

clear

  • clear(): void
  • Clears the state of the BimIfcLoader instance. If geometryBuilder has been called, and if it has been use to create Geometry3d instances that have been added to TwinfinityViewer then those instances are NOT removed from the viewer. Call Twinfinity.clear to remove all geometry from the viewer as well.


    Returns void

deleteIfcProductCache

  • deleteIfcProductCache(key: string): boolean
  • Deletes a cache created by addOrGetIfcProductCache-


    Parameters

    • key: string

      Cache to delete

    Returns boolean

    true if a cache was deleted, otherwise false.