LDraw.org Discussion Forums
Array bricks along hose path in LDCad — built-in feature or Lua script? - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Array bricks along hose path in LDCad — built-in feature or Lua script? (/thread-29507.html)



Array bricks along hose path in LDCad — built-in feature or Lua script? - Simone - 2026-05-12

Hi everyone,
I have a flexible hose already placed in my model, complete with bends and curves. I've also built a small ring-shaped assembly (grouped as a sub-model) that is sized to fit snugly around the hose — for simplicity, let's say I could reduce it to a single Technic Brick 2×1 with Hole (3700).

What I'd like to achieve is essentially an array along a curve: repeat that brick or sub-model N times at regular intervals along the hose, so that each instance follows the hose's orientation at its respective position — i.e., it inherits the local rotation of the hose segment it sits on.
Think of it like cable clamps or spacer rings distributed evenly along a hydraulic line or wiring harness.

Does LDCad have any built-in feature that allows this, or is it achievable through a Lua script?

Any pointers — tools, scripts, workflows, or even manual tricks — would be greatly appreciated. Thanks in advance!