Dynamo, How do I keep the Z coordinates while I convert lines into curves

Hi,

I just noticed that I lost the Z coordinates when I convert my lines into curves to get some polycurves. My lines comes from a CADlayers without Z coordinates. I did a python script to associate my Z coordinates to the lines. This coordinates comes from an Excel File.

So what I want is the polycurves with Z coordinates to generate some solids one under the other

Thanks for your help,

If all of the curves are plant, why pull them to the global XY plane (thereby making all the Z values 0)?

Likely the fox is to use a Curve.PullOntoPlane to get the curves to the correct elevation rather than the Python you’re currently using, but we can’t tell without a data set and a peak at the code.