ReadonlyclassesGets all the IFC classes used by IFC products in the currently loaded IFC files.
An array of BimIfcClass objects representing the available classes.
ReadonlydisciplinesGets the available disciplines.
ReadonlyfloorsGets the floors (IfcBuildingStorey) available in the currently loaded IFC files.
An array of BimIfcBuildingStorey objects representing the available floors (storey levels).
ReadonlyloaderGets the IBimIfcLoaderElement for the loaded IFC files.
An array of IBimIfcLoaderElement objects.
ReadonlyprojectsGets the IfcProject root nodes from each loaded IFC file.
These can then be used to traverse the IFC file structure by calling BimIfcObject.foreach, or BimIfcObject.entries on each project.
ReadonlyspacesGets the spaces (IfcSpace) available in the currently loaded IFC files.
An array of BimIfcSpace objects.
Adds or retrieves the cached set of BimIfcObject instances based on the provided key and predicate. Cache is cleared when clear is called.
The type of BimIfcObject to be stored in the cache.
The key used to identify the cache entry.
The predicate function used to filter BimIfcObject instances. If it returns truthy then object is added to cache. Otherwise not
The cached set of BimIfcObject instances.
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 BimCoreApi.clear to remove all geometry from the viewer as well.
Deletes a cache created by addOrGetIfcProductCache-
Cache to delete
true if a cache was deleted, otherwise false.
Creates an IfcGeometryBuilder containing the BimIfcObject instances matched by the provided predicate. If no predicate is provided, all objects will be included.
Optionaloptions: GeometryBuilderOptions | ((ifcProduct: BimIfcObject) => unknown)Optional predicate function to filter the objects.
A promise that resolves to an instance of IfcGeometryBuilder.
The IfcGeometryBuilder can be used to create Geometry3d instances for the matched objects. In order to visualize them use TwinfinityViewer.addOrReplaceMesh.
Represents a BIM IFC Loader. Responsible for managing a collection of IFC files and loading data from them.