Reference·JavaScript · @bimworks/viewercommonJavaScript

Model

Class in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Class

TypeScript#
class Model

Members#

Member Kind Description
constructor Method
version Property The Version this model was loaded from
qids Method Get all the qids of this model. This only returns the Qids for the model that have geometry. To really get all the Qids of a model the BIM.works Repository s…
versionUuid Method Get the UUID of this Version (Vid) / Model

constructor#

TypeScript#
constructor()

version#

TypeScript#
public readonly version: Version

The Version this model was loaded from

qids#

TypeScript#
public qids(): Iterable<Qid>

Get all the qids of this model. This only returns the Qids for the model that have geometry. To really get all the Qids of a model the BIM.works Repository should be queried.

Returns#

An iterable of Qid. The returned object should not be changed.

versionUuid#

TypeScript#
public versionUuid(): string

Get the UUID of this Version (Vid) / Model