Flatten curve

How do you flatten a curve or list of curves on XY axis? I just want the projection of the curve with Z value 0.

Curve.Project