## 3 Building Information Modeling Applied to Seismic Vulnerability
The first step required by the parameterization procedure is creating an association between the specific vulnerabilities found and their assigned weights for each individual element of the building. The purpose of having a graphical resolution of the vulnerabilities requires that each vulnerability and each weight is associated with a field that identifies the type of specific vulnerability and the weight it could have on the overall vulnerability of the building. The graphical representation offered by the BIM modeling is certainly useful to have an immediate picture of the distribution of some vulnerabilities, and their danger level, throughout the whole building. These graphic representations can be obtained through targeted queries, a classic approach to work in a BIM environment. These queries can concern the same specific vulnerability but with different weight: 0 = absent, 1 = light damage, 2 = moderate damage, 3 = severe damage. Query01_Querying the same vulnerability:  
\"Presence of blue pipes\" classified with weight 2. \"Presence of blue pipes\" classified with weight 3. In the example shown, query01 gives the position of voids inside both load-bearing and non-load-bearing walls, and the weight associated with this vulnerability according to the recorded damage level. Or they can concern two different vulnerabilities  
Query02_Querying two vulnerabilities:  
\"Uncompensated localized roof thrust\" ranked with weight 3;  
\"Unconnected building expansion\" classified with weight 2. Query02, thus defined, gives the critical and significant points for the possible detachment or partial overturning of the masonry structure. Another possible query is for three or more vulnerabilities. Query03_Querying three or more vulnerabilities:  
\"No or poor effectiveness of wall-roof connection\" classified with weight 2. \"Missing or ineffective tie rods\" classified with weight 2. \"Condition of the roof covering\" classified with weight 1. This type of query, for instance, is useful for understanding the state of connection and degradation of the roof structures with respect to the underlying masonry. The parametric modeling and the performed queries presented here seem to overcome the difficulties of a synthetic and global reading of the vulnerabilities present in a building. In fact, the classification of vulnerabilities is generally reported on spreadsheets and tables that are not easy or quick to interpret, especially for non-professionals, as the property owners can be. A graphic representation certainly helps the owner to better understand the problems of his building and to take informed decisions on the interventions to be carried out. Application of the Proposed Procedure to the Case Study of Cuccagna Farmhouse in Milan (North Italy)  
The methodology presented in this work has been applied in a project of redevelopment and anti-seismic safety of a historical asset in the city of Milan, Italy. In 2017, the pilot project PRE.CU.R.S.OR. was the winner of a grant from the Fondazione Cariplo di Milano in the field of Art and Culture-Cultural Heritage at Risk, a funding line that supports preservation interventions on assets protected by law. The involved asset is Cascina Cuccagna, one of the rural buildings still existing in the city of Milan (Figure 3). Until about the middle of the 20 th century, farmsteads represented the place of life and productivity for most of the inhabitants of the Lombard plain. Still today, they are a remarkable architectural resource and often, as in the case of Cascina Cuccagna, they are used with different functions from the original ones. Cascina Cuccagna represents an ideal scenario for a replicable \"pilot project\" of progressive improvement of the earthquake resistance conditions on historical buildings. In fact, from the construction point of view, its model is highly repetitive in Lombardy and more generally in northern Italy. It is located in a context of medium-low seismicity that allows testing of investigation and intervention techniques in safe conditions.