Making multiple edge loops double-lined

Both separate cases needs to work, it was my way of explaining my problems. My current solution is inspired by the suggestion from TIG in a previous thread, as I explained in the original post. (Making a model single to double-lined - #2 by TIG)

Most of the issues I’ve had has been solved by grouping separate edge-loops. But my current problem is that it can only handle closed loops. So I have some problems when there is a free wall or a “non-closed wall” etc. See the image below…

(You should get the same result with the plugin my solution is inspired of SketchUp Plugins | PluginStore | SketchUcation)