Cannot create solid, curves are not closed

I would like to create haunch underneath the slab at the variable gaps between the slabs and beams in Revit and used solid by loft script in dynamo with profiles from AutoCad. But after I run, they keep saying my profiles are not closed curves although they are what i believe and then could not proceed.