Hide menu
Loading...
Searching...
No Matches
Assembly

Defines a group of model elements.

Direct children of assembly are always instances which can refer to nested sub-assemblies or parts.

Extends

Constructors

new Assembly()

new Assembly(name?): Assembly

Parameters

name?

Name of the model element.

null | string

Returns

Assembly

Inherited from

ModelElement.constructor

Properties

material

material: null | VisualMaterial = null

The model element material. null if the element has no material (by default).

Inherited from

ModelElement.material

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

ModelElement.id


instances

Get Signature

get instances(): ReadonlySet<Instance>

Returns a set of child instances.

Returns

ReadonlySet<Instance>


name

Get Signature

get name(): null | string

Returns name of the model element. null if the element has no name (by default).

Returns

null | string

Set Signature

set name(name): void

Sets name of the model element.

Parameters

name

Name of the model element.

null | string

Returns

void

Inherited from

ModelElement.name


numberOfInstances

Get Signature

get numberOfInstances(): number

Returns number of child instances.

Deprecated. Use instances.size instead.

Deprecated

Returns

number


uuid

Get Signature

get uuid(): null | `$string