Convert 3D polyline to 2D polyline on XY plane

How do one convert a 3D polyline to 2D polyline on XY plane with Dynamo. Is python the way to go?

No Python needed. I’d recommend using the PolylineExtensions.ObjectByGeometry node from the Civil 3D Toolkit. You could pull the Dynamo polycurve onto the world XY plane using Curve.PullOntoPlane, or you could get all the vertices from the polycurve and then recreate a new polycurve by points without the Z coordinates.

4 Likes

Welcome @mlahD6M7T to the forum,
I believe you are aware of the command CONVERT3DPOLYS that converts 3D polylines to 2D polylines.
In all cases, if you want to do that in Dynamo, and like @mzjensen said “No Python needed”.
The below script converts a selected 3D polyline to a 2D polyline.


3D to 2D polyline.dyn (29.4 KB)

Thank you all for your help! Now its working. I tried to do what @mzjensen explained but did not get i working. I just started using Dynamo so I think this wont be the last question I’m going to be asking here.