MyBenchLab Documentation Open editor

Generic solid

Component kind generic-solid (category static, DSL name genericSolid, API v1)

Neutral rectangular block used as a bounding-box stand-in for parts that do not yet have a dedicated kind (round bar, channel, custom profiles). Sized width (X) × height (Y) × length (Z), centered on the local origin.

Parameters

Parameters schema

ParameterTypeDefaultConstraints
widthNumber50min: 1
heightNumber50min: 1
lengthNumber100min: 1
densityNumber7850min: 1
colorString

Ports

PortTypeDescription
bodyrigidRigid structural port. Weld or rest other parts against it; carries no motion.

Example

statics.genericSolid({
  id: 'bar_1', width: 20, height: 20, length: 600,
  transform: { position: [100, 300, 100], rotation: [0, 0, 0] },
});

engine apiVersion · 1

Want to see this component in 3D with live parameter controls? Open the interactive preview.