Can we write an equivalent python function for the below node?

It should be fairly simple to write. You just need to iterate through all the points of the curve (DB.XYZ), and use DB.Plane.Project(DB.XYZ), and it will spit out your new points.
ApiDocs.co · Revit · Project Method

You’d probably have to create different conditions for each curve type in order to reconstruct them after this operation.

1 Like