Add Curve lenghts and divide by specific distance

Solved i use curveElement.Curve instead of Element Curves