Out of plane curves into Revit

Im trying to use some Dynamo geometry in Revit. Ive got the lines showing up in Revit but when i try to assign some structural framing to them or turn them into a model curve it fails. It seems that because the curve is a spiral it isnt in a plane and this causes a problem. Can anyone suggest a solution?

I think it’s because it’s trying to convert a single nurbs curve into a single model curve, which likely won’t work. Try converting your nurbs curve into individual planar curves first.

Many thanks NIck - that fixed the problem.

I found another forum post which helped convert the nurbs curve using Curve.ApproximateWithArcAndLineSegments.