Hide menu
Loading...
Searching...
No Matches
ModelElement

Base class for parts, instances, and assemblies.

Extends

Extended by

Constructors

Constructor

new ModelElement(name?): ModelElement

Creates a model element with an optional name.

Parameters

name?

string | null

Name assigned to the model element.

Returns

ModelElement

Overrides

BaseObject.constructor

Properties

material

material: VisualMaterial | null = null

Visual material assigned to the model element.

The default value is null.

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id


name

Get Signature

get name(): string | null

Name of the model element.

The default value is null.

Returns

string | null

Set Signature

set name(name): void

Sets the name of the model element.

Parameters

name

string | null

Model element name.

Returns

void


uuid

Get Signature

get uuid(): `${string}-${string}-${string}-${string}-${string}` | null

UUID of the model element.

The default value is null.

Returns

`${string}-${string}-${string}-${string}-${string}` | null

Set Signature

set uuid(uuid): void

Sets the UUID of the model element.

Parameters

uuid

`${string}-${string}-${string}-${string}-${string}` | null

Model element UUID.

Returns

void

Methods

accept()

abstract accept(visitor): void

Accepts an element visitor.

The order of visiting depends on the type of this object:

Parameters

visitor

ModelElementVisitor

Visitor to accept.

Returns

void