IfcJsonExporter
Component to export all the properties from an IFC to a JS object. 📕 Tutorial. 📘 API.
Extends
Properties
enabled
enabled:
boolean
=true
Overrides
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
Parameter | Type | Default value | Description |
---|---|---|---|
webIfc | IfcAPI | undefined | The instance of web-ifc to use. |
modelID | number | undefined | ID of the IFC model whose properties to extract. |
indirect | boolean | false | whether to get the indirect relationships as well. |
recursiveSpatial | boolean | true | whether 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
isDisposeable()
isDisposeable():
this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
isHideable()
isHideable():
this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
isResizeable()
isResizeable():
this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
isUpdateable()
isUpdateable():
this is Updateable
Whether is component is Updateable.
Returns
this is Updateable