# BIM-Based Method for the Verification of Building Code Compliance
## 3 Results
These data are then used to verify if a specific room is complying with the understudy rules by facing its characteristics with the building code standards. To allow the building code compliance analysis, the template quickly generates a schedule of windows and rooms (Figures 6 and 7), which will be used in the Dynamo routine to compare with the building code minimum requirements. Within these two schedules, all the information for the building code analysis is listed, including the dimensions and quantity of windows, the room's area and ceiling height. Figure 5: Room data information flow. Figure 6: SF building window and room schedule. The template was previously characterised by the local building code minimum requirements for each type of compartment (based on Table 2), which were organised into a schedule (Figure 8). The Dynamo routine will later use the requirements from Figure 8 to compare with the BIM model characteristics (based on Figures 6 and 7). The results certify if the BIM model is complying with local building code regulations. If the BIM model is not approved, it indicates which rule is not being fulfiled. Whenever a room is not required to fill any of these requirements, the \"Key Name\" must be settled as \"Undefined\". Additionally, if a compartment is not required to have windows, the user can unselect it and exclude it from the analysis. Note that the designer must prepare the project and name each project compartment according to the names defined in the local building code (and in the Autodesk Revit template). After the model characterisation and schedules organisation, the Dynamo routine was accordingly developed and it is presented in Appendix A, Figure 11. Overall, it captures the information from the BIM model and performs an automated action to validate the model according to the master plan indexes requirements. In addition, it uses the information from the template schedules to verify the model's compliance with the municipalities building code. The routine brings results in a few seconds, and it is divided into lines, each one corresponding to one requirement:  
Number of levels: the first line of the routine concerns the analysis of the maximum number of levels for the building. As stated earlier, for a residential building located in the Priority Occupation Zone 03, the maximum number of levels is 15 and for AMC 12.5 Zone, the maximum number of levels is 10. This value is introduced as input for Dynamo to start the routine and then faced with the building number of levels (1 level for the SF building and 7 levels for the MF building), which was automatically collected from the model by Dynamo, bringing a positive result for this index. Maximum height: the second flow line regards the analysis of the maximum building height. As in the previous requirement, the maximum height (47.00 m for Vila Velha and 45.00 m for Florianopolis) serves as an input for the Dynamo routine. Then, Dynamo will automatically identify the highest point of the building roof elements, and measure the distance to the site level, performing the comparison between the master plan requirements and the building height. Once again, both case studies have been approved for this index (SF building 4.05 m; MF building 20.30 m). Figure 8: Building code requirements per compartment for Vila Velha and Florianopolis. Figure 7: MF building window and room schedule. Utilisation coefficient, occupancy rate and permeable rate: the following stage from the Dynamo routine (third and fourth lines), assesses all the site-related indexes, namely the utilisation coefficient, the occupancy rate and the permeable area. As referred to earlier, users must define the site boundaries, the construction area and the permeable area. This is a mandatory step, as the Dynamo routine will use such information to perform the required calculations to assess all the site-related indexes.