Move Lines until it touches the curve

Hi,

I would like to move all the blocks until it touches the curve ( Upper block to upper curve, lower blocks to lower curves), is there any way to do that in rhino, maybe using grasshopper?p.3dm (69.5 KB)

This is easy in Grasshopper. However with your geometry being blocks, you probably need Elefront.

20_11_25_align_blocks_on_curve.gh (17.9 KB)

Hi, everything is fine except the blocks are converted into curves. Could you please tell me how to move the blocks without exploding them?

You can plug in the blocks directly without exploding them. Graft the geometry input on the orient component, otherwise the data structure doesn’t match.

20_11_25_align_blocks_on_curve.gh (20.8 KB)