Solid.BySweep possible with closed path?

i am able to use Solid.BySweep with a not closed path, but when using a closed path iE. with the node Collect-ElementSketch it returns a closed path of my roof object and Solid.BySweep doesnt work anymore.
Is there a workaround for this or can i use a differnt node?
Thanks in advance for any suggestions.