How to translate the curve onto a plane of active view?

I want to draw a rebar centerline curve in active view. It works ok as long as rebar is parallel to active view plane. Now I want it to work for rebars which are perpendicular to active view. I’m trying to use node Curve.PullOntoPlane, but it fails to execute. Can I rotate it in a different way?

It also doesn’t work for straight rebars.