Skip to main content

IfcJsonExporter

Component to export all the properties from an IFC to a JS object. 📕 Tutorial. 📘 API.

Extends

Properties

enabled

enabled: boolean = true

Component.enabled

Overrides

Component . enabled


uuid

static readonly uuid: "b32c4332-cd67-436e-ba7f-196646c7a635"

A unique identifier for the component. This UUID is used to register the component within the Components system.

Methods

export()

export(webIfc, modelID, indirect, recursiveSpatial): Promise<IfcProperties>

Exports all the properties of an IFC into an array of JS objects.

Parameters

ParameterTypeDefault valueDescription
webIfcIfcAPIundefinedThe instance of web-ifc to use.
modelIDnumberundefinedID of the IFC model whose properties to extract.
indirectbooleanfalsewhether to get the indirect relationships as well.
recursiveSpatialbooleantruewhether to get the properties of spatial items recursively
to make the location data available (e.g. absolute position of building).

Returns

Promise<IfcProperties>


isConfigurable()

isConfigurable(): this is Configurable<any, any>

Whether is component is Configurable.

Returns

this is Configurable<any, any>

Inherited from

Component . isConfigurable


isDisposeable()

isDisposeable(): this is Disposable

Whether is component is Disposable.

Returns

this is Disposable

Inherited from

Component . isDisposeable


isHideable()

isHideable(): this is Hideable

Whether is component is Hideable.

Returns

this is Hideable

Inherited from

Component . isHideable


isResizeable()

isResizeable(): this is Resizeable

Whether is component is Resizeable.

Returns

this is Resizeable

Inherited from

Component . isResizeable


isUpdateable()

isUpdateable(): this is Updateable

Whether is component is Updateable.

Returns

this is Updateable

Inherited from

Component . isUpdateable