Creating structural framing for the double curve

Hi all,
I am trying to create a structural framing family in double curve (both vertical and horizontal curves) using StructuralFraming.BeamByCurve Dynamo node, but getting error “Unable to obtain a plane for the curve-driven instance”.

So I tried to split the curve in to 3 parts even though getting error (refer attached screen shot).

If someone came across this issues and sorted means, please help me.

Thanks