Global Structural Analysis of Buildings