Communicator


Type aliases

BCFCommentId

BCFMarkupName

BCFName

BCFTopicId

BCFViewpointName

BimId

Type for the relationships ID

BodyId

Type used to denote assembly tree body IDs. All BodyIds are NodeIds.

BuiltInOperatorId

Enumerates IDs for built-in operators

CadViewId

Type used to denote assembly tree CAD view IDs. All CadViewIds are NodeIds.

Degrees

Type used to denote the degrees of angles.

ExchangeId

Type used to denote Exchange IDs. Use Util.exchangeIdEqual function to compare.

ExternalModelName

Type used to denote an XML ExternalModel name.

FilterName

Type used to denote Filter names.

GenericId

Type used to denote generic id

GenericType

Type used to denote generic types

Guid

deprecated

Use uuid instead.

HtmlId

Type used to denote HTML IDs.

IfcGuid

deprecated

Use GenericId instead.

IfcType

deprecated

Use GenericType instead.

ImageId

A pair of numbers identifying an image.

LayerName

Type used to denote Layer names.

LightKey

Type used to denote light keys

LinePattern

Specifies the appearance of a single repetion of a line pattern. The format is an arbitrary-length array of 1s and 0s, where pixels covered by a 1 in the pattern are visible and pixels covered by a 0 are invisible.

Examples: - [1,0]: a dashed line with equal-length dashes and gaps - [1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,0,0,0]: a dash followed by a gap of equal length with a dot in the center

MassageModelNameFunc

Callback to massage ExternalModel names within an XML load file to SC model names. Return null to skip the model. Returned value can be synchronous (non-Promise) or asynchronous (Promise).

MeshId

A pair of numbers identifying a mesh.

MetaDataParseError

deprecated

Milliseconds

A number typed in millisecond units.

ModelNameToScsFileFunc

Callback to map ExternalModel names within an XML load file to SCS file URis or SCS file buffers. Return null to skip the model. Returned value can be synchronous (non-Promise) or asynchronous (Promise).

NodeId

Type used to denote assembly tree node IDs.

NodeIdOffset

OverlayIndex

Type used to denote overlay indices.

PMISubType

deprecated

Use PmiSubType instead.

PMITopoRef

deprecated

Use PmiTopoRef instead.

PMIType

deprecated

Use PmiType instead.

PartId

Type used to denote assembly tree part IDs. All PartIds are NodeIds.

Pixels

A number typed in pixel units.

PmiId

Type used to denote assembly tree PMI IDs. All PmiIds are NodeIds.

Radians

Type used to denote the radians of angles.

ScModelName

Type used to denote an SC model name.

ScsBuffer

Type used to denote an SCS model’s byte buffer.

ScsUri

Type used to denote an SCS model’s URI.

SelectionFilter

SheetId

Type used to denote assembly tree sheet IDs. All SheetIds are NodeIds.

Unreferenced

Used to silence TypeScript unused variable warnings.

Usage:

x as Unreferenced;

UserDataIndex

This is the User Data Index for a node.

Values of this type are unsigned 64 bit numbers.

A value is of type number when it can be represented precisely as such.

Otherwise a value is of type string, where the string is the hex encoding of the index. The hex representation is in uppercase and does not have a leading 0x.

Uuid

Type used to denote GUIDs.

ViewIndex

Type used to denote view indices.

VolumePickConfig

deprecated

Use IncrementalPickConfig instead.

XmlFilename

Type used to denote an XML filename.

Variables

Communicator.DefaultTransitionDuration
Type

number

The default duration in milliseconds of camera transitions.

Communicator.EmptyModelName
Type

‘_empty’

Communicator.InvalidNodeId
Type

NodeId

Communicator.MetaDataParseError
Type

AssemblyDataParseError()

Deprecated

Communicator.PMISubType
Type

PmiSubType

Deprecated

Use PmiSubType instead.

Communicator.PMITopoRef
Type

PmiTopoRef

Deprecated

Use PmiTopoRef instead.

Communicator.PMIType
Type

PmiType

Deprecated

Use PmiType instead.