# BIM-Based Method for the Verification of Building Code Compliance
## 3 Results  
Following the adopted methodology, the first step was the legislation data collection from the municipalities. By consulting the urban master plan, the requirements presented in Table 1 were identified for residential buildings located in the Priority Occupation Zone 03 (Vila Velha) and located in the AMC 12.5 zone (Florianopolis). When analysing the remaining local standards, namely the building code of each municipality, there are other indexes and rules that the building must comply with: minimum ceiling height; minimum compartment area; minimum window area for ventilation and lighting. These minimum limits are the same for both municipalities and are defined in each building code [22, 23], respectively, for the different compartment types, according to Table 2. The local regulation defines both the minimum area and ceiling height for different compartments, while the minimum window area depends on the compartment floor area. For this specific case, the building code limits are the same for both locations. During the modelling stage, there are a set of guidelines that must be followed to ensure Dynamo routine functionality:  
* A personalised template should be used, which already contains the required building code parameters that must be analysed. * Rooms must be created and characterised for every building compartment. * Walls must be segmented in every intersection, as the routine will specifically assess the building rooms and identify the associated elements. * Roofs must be modelled under the \"Roof\" category, as the building height will be evaluated through the highest point of the roof. * Users cannot model elements using the \"model in place tool\", as the Dynamo routine will not consider the created categories. * The user must identify the site area, the construction area and the permeable area using the \"area plan\" function under the Autodesk Revit Architecture tab. The personalised template was created to automate the aggregation and collection of the required building data for the local code analysis. By organising the information through means of tables, the template provides all the input data for the Dynamo routine. For each room/compartment, it is identified whether the room should have a window, the minimum area for each type of room, the minimum window area for an adequate natural \begin{table}
\begin{tabular}{c c c} \hline \hline
**Requirements** & **Vila Velha** & **Florianopolis** \\ \hline Maximum utilisation coefficient & 3.50 & 4.80 \\ Minimum front offset & 3.00 m & 4.00 m \\ Minimum back offset & 3.00 m & 1.50 m \\ Minimum lateral offset & 1.50 m & 1.50 m \\ Maximum number of levels & 15 floors & 10 floors \\ Maximum building height & 47.00 m & 45.00 m \\ Maximum occupancy rate & 60.00\% & 50.00\% \\ Permeable rate & Min. 15.00\% & Max. 70.00\% \\ Maximum slope for a pedestrian ramp & 8.33\% & 8.33\% \\ Maximum slope for a vehicle ramp & 20.00\% & 20.00\% \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Vila Velha and Florianópolis master plan requirements. \begin{table}
\begin{tabular}{c c c c c c c c} \hline \hline
**Minimum** & **Wall** & **Service** & **Social** & **Living Room** & **Kitchen** & **Pantry** & **Laundry** & **Garage** \\ \hline Area (m\({}^{2}\)) & 1.00 & 1.60 & 2.50 & 10.00 & 4.50 & 1.60 & 1.60 & 10.35 \\ Window area & - & 1/8 & 1/8 & 1/6 & 1/8 & 1/10 & 1/10 & 1/20 \\ Ceiling height (cm) & 230.00 & 230.00 & 260.00 & 230.00 & 260.00 & 230.00 & 230.00 & 230.00 \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Building code minimum requirements in Vila Velha and Florianópolis. lighting and ventilation and the minimum ceiling height (considering the height from the floor finishing to the room's ceiling). This process was automated within the Autodesk Revit template, following the procedure presented in Figure 5. The model rooms are turned into a list, which has sub-lists of information for each room, including the required data for the analysis.