Using polysurfaces-edges as a single edge

Hi all.
Sharing + asking.

I’m posting here a small script that often helps me while working.
It takes many edges and merge them into a single “stripe” surface, that can be used for blend functions or such:
unify_breps_edges
unify_breps_edges.gh (2.5 MB)
(add a button with command: ! -_GrasshopperPlayer “path/to/file.gh”)
(Made for grasshopper player but loads fine also on Rhino 6)

This code can misbehave…

Any known alternatives for such situations?
Commands in rhino i’m unaware of?

For BlendSrf command, there’s the ChainEdges option on the command line.

I agree with @phcreates but that tool could be useful to make a single surface as target to use with FlowAlongSrf