Sweep as solid is not creating a proper solid

Hello Dyno family

I have a issue while creating a solid with curve.sweep as solid.
The issue is i have path selected by edge of revit element and the profile is also created by select edges and modifying them, now the problem is when i run it it doesn’t give any error but the solid created by dynamo i am importing that as a family instance into revit, while doing that my geometry is open from front and end, it creates an issue while joining with other elements.