Base class for parts, instances, and assemblies.
new ModelElement(
name?):ModelElement
Creates a model element with an optional name.
string | null
Name assigned to the model element.
ModelElement
material:
VisualMaterial|null=null
Visual material assigned to the model element.
The default value is null.
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the model element.
The default value is null.
string | null
set name(
name):void
Sets the name of the model element.
string | null
Model element name.
void
get uuid():
`${string}-${string}-${string}-${string}-${string}`|null
UUID of the model element.
The default value is null.
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets the UUID of the model element.
`${string}-${string}-${string}-${string}-${string}` | null
Model element UUID.
void
abstractaccept(visitor):void
Accepts an element visitor.
The order of visiting depends on the type of this object:
true, the referenced element is visited. The instance is then left by calling visitInstanceLeave().true, all child instances are visited. The assembly is then left by calling visitAssemblyLeave().Visitor to accept.
void