Loft different geometries at the same time

Hi, I need some help to solve this script.

Is a 45 degrees loft that I want to apply to the entire panel. The moment I select all the curves it appears an error and it doesn’t loft some geometries, but if I select a few of the geometries the loft works perfect. I have revised the curves on Rhino and the are closed.

If you guys can help me to solve this problem it’ll be great.

Thanks!

how people can help you i you don’t post the definition?