MyBenchLab Documentation Open editor

Shaft

Component kind shaft (category mech, DSL name shaft, API v1)

Cylindrical rotating axle. Typically anchors one or more gears via mech.couple so they spin together.

Parameters

Parameters schema

ParameterTypeDefaultConstraints
diameterNumber20
lengthNumber300
colorString

Ports

PortTypeDescription
axisrotationalRotational port aligned with the shaft Z axis.

Kinematics

Passive — no propagation rule of its own. Downstream state is set by whatever connection (typically mech.couple) links to its axis port.

Example

shaft "S1" {
  diameter: 20
  length: 300
  at: position(0, 0, 0) rotation(0, 0, 0)
}

engine apiVersion · 1

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