建築資訊模型（Building Information Modeling, BIM）是一種以三維視圖為主，並包含各項不同領域的建築訊息，且能夠透過電腦軟體來進行建築模擬，從中取得在建築過程中所需要的各種不同資訊的新概念。由於包含了建築物的各種屬性資訊，當各種不同的設計團隊使用BIM來移交工程計畫時，可避免資訊遺漏。而天災人禍無法總是如預期般地完全避免，隨時都可能會有偶發事件，使用BIM技術在防災上，除了能更順利掌握每一種建材的特性與建築物所能有的承受力，對於災後的判斷與重建也能帶來更具價值的效益。於本研究中，會基於建築物原有的建築資訊模型，重新建立類別圖以表達建物內各空間之間的關係，並藉由所繪的類別圖來建立該建物專屬的類別庫。接著，由所需求的應用來決定類別庫中需要帶出的屬性使得在查詢屬性的內容時可以是以空間為基礎的查詢方式，也透過這樣的查詢方式讓資料間的空間關係更容易顯現。Building Information Modeling (BIM) is a kind of new concept which the main subject is 3D view diagram, it includes all information of building in different domains, and does building simulation through computer software to get all different informations when the building project is going on. Because BIM includes every kind of building attribute, it will be avoided missing data when any different kind of design team wants to transfer their engineering project. But we can’t avoid all natural or man-made disasters as we predict, we have to face new accidents in any time. Using BIM technology in disaster prevention not only can help users to control every property of building material but can hold capacity of building more well, for judging or reconstructing that bring high efficiency after the disaster. In this study, we will re-build the class diagram to express the relationship between each room base on the original building information model of the building. Class library of building will be built by updating the class diagram. Then decided the attribute we want to get from class library to make it using the search way based on space when inquires about attribute by the application we need, and the relationship between all of the data appear more easy through the search way.