3D Box with curves repeat along line

Hi All

Can any one help me to draw 3d Box and repeat it along line some how?

Red is box formed with curves & Green is input line

Is this possible ?

Regards

Have a try Curve Array.