How to extract center-line or internal surface as Geometry from wall, floor, roof and window?

I tested solution from this post:

Below is a script with all data, so far did not work as expected. I can not get cleaned enclosed geometry. I can see that center-line will be more difficult so I am trying now to do inner surfaces that will make closed shape geometry.

This is my Space set up so you can replicate if needed…and can see that there are some rooms around.

GettingInnerSurfacesVer01.dyn (23.7 KB)