Cable tray run
Ladder-type cable tray run after IEC 61537: 1 to 6 stacked trays (C-section side rails, rungs at 300 mm, splice plates at 3 m, copper earth bonding jumpers, laid cables at a set fill) on floor-standing 41 × 41 strut posts with gusseted cantilever arms, base plates and anchors, floor braces and an optional top cover. Run along X centred on the origin; posts on y = 0 on the −Z side; the lowest rungs at y = elevation, tiers every tierSpacing.
Installation
Copies structure/cable-tray.tsx and the shared lib/ into src/components/deck-twin/. Needs three, @react-three/fiber and @react-three/drei. See installation for the manual route.
Usage
import { Canvas } from '@react-three/fiber'
import { OrbitControls } from '@react-three/drei'
import { Stage } from './components/deck-twin/lib/stage'
import { CableTray } from './components/deck-twin/structure/cable-tray'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<CableTray />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
length | number (m) | null | 1 – 30 |
width | 0.15 | 0.3 | 0.45 | 0.6 | 0.75 | 0.9 | null | |
tiers | number | null | 1 – 6 |
tierSpacing | number (m) | null | 0.2 – 0.6 |
elevation | number (m) | null | 0.2 – 4 |
supportSpacing | number (m) | null | 1 – 3 |
fill | number | null | 0 – 1 |
cover | boolean | null | |
material | "galvanised" | "stainless" | null | |
...group | position, rotation, scale… |
P&ID
Cross-section: stacked open trays (U-channels) on cantilever arms from a post; on cable routing plans two parallel lines with the tray width and level (e.g. 600 W, TOT EL +3.2) and short diagonals or rung marks.
Only on electrical and instrument layouts. Two parallel lines with rungs in plan can be confused with a ladder; trays run along routes and carry width notes.
lengthwidthtierstierSpacingelevationsupportSpacingcovermaterialTypical suppliers
Niedax. The geometry is generic and sized from public standards. It is not vendor CAD.
For agents
Machine-readable entry with props, ranges, defaults and ports:
Or fetch /r/cable-tray.json, or copy a ready-made instruction:
Add the Deck Twin "Cable tray run" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add cable-tray` (it copies the file and the shared lib into src/components/deck-twin/), then `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz info cable-tray` for its props, ranges and ports. Render <CableTray /> inside a React Three Fiber <Canvas shadows>, wrapped in <Stage> from src/components/deck-twin/lib/stage. Set props from my data (metres, NPS in inches, ASME class) and leave the rest at defaults. Install three, @react-three/fiber, @react-three/drei and @types/three if they're missing. Full guide: https://decktwin.com/skill/SKILL.md