
Two new parameters were defined for length and breadth and formulas were assigned to them with respect to the Room area. Also 2 parameters, len and Breadth was set as 'get parameter' to retrieve them from the pergola's parameters in Revit.

The code could now be debugged. The Revit software opened to a project where i had created a single room with a Pergola in it.
I next increased the area of the room by draging one side of the wall further away. Next i selected the User defined Parameter Read Write option from the External tools drop down menu in the Add In's ribbon tool. This caused the pergola to change in size with respect to the formula used in the code.
Same procedure was followed while increasing the area of the room from an adjacent side. This also showed a difference in the Pergola's parameters with respect to changes in the room area.