## 7 Development of Automated Configuration Algorithms  
### Automated Configuration Algorithm Development Process  
This study develops an automated configuration algorithm process to streamline the configuration of VVA (Figure 15). Developed using Dynamo, a visual programming interface integrated with Autodesk Revit, the algorithm aims to simplify complex design tasks, minimize human error, and boost overall modeling efficiency. The process begins with acquiring user-defined input data, including site-specific parameters and fundamental structural properties. The preliminary processing of site characteristics follows this in order to determine building placement and generate the site outline. The subsequent phase focuses on establishing the main structural framework, where the algorithm precisely positions and adjusts frame components, accounting for specific corner integrations. Finally, the process outlines the meticulous arrangement of roof purlins and the installation of longitudinal beams, all guided by the initial parameters and foundational structural logic. To ensure cultural and structural authenticity, the automation of VVA-based configurations adheres to the criteria summarized in Section 6.1, specifically: (1) adherence to the Sam Ruler system as outlined by [PERSON] and [PERSON] [26], guaranteeing proportional accuracy for dimensions  
Figure 14: Frame model with corner compartment: (**a**) Corner compartment; (**b**) Corner compartment with horizontal beams; (**c**) Corner compartment connected to 2 rows of compartments by horizontal beams. Figure 13: Frame system comprising multiple compartments: (**a**) Single frame; (**b**) Two-frame; (**c**) Four-frame. like \"Long Nha,\" \"Khoang Ngang,\" and roof slopes; (2) selection of structural typologies (e.g., Stacked Beams, Gong-Hanger) derived from the 11-volume IFCM dataset; and (3) the use of parametric inputs for site-specific and structural properties, allowing for geometric flexibility and scalability. These criteria, deeply rooted in VVA's traditional construction logic and contemporary BIM workflows, ensure that the automated configurations effectively preserve cultural heritage while meeting modern design requirements, forming a robust foundation for the algorithm's development. Translating these basic principles and the detailed five-phase framework into practice, each algorithm phase was subsequently developed and executed within the Dynamo visual programming environment. In the initial step, user-defined parameters are collected through intuitive interfaces built using Dynamo nodes, such as _Data.Input_ and Code Block. Inputs are classified into two categories. The first includes site-specific parameters--length, width, and setback distances (front, rear, and sides)--which define construction boundaries and calculate total dimensions, thereby determining the number of ways (\"gian\"). The second group encompasses structural properties, including bay width and depth, overall building height, and roof configuration type, which influence the arrangement of purlins and beams. In the second step (Figure A1, Appendix A), site characteristics are analyzed using nodes such as _Math.Sum_ and _Geometry.Bounds_ to determine geometric properties, including area, length, width, and bay count. These calculations form the geometric foundation for subsequent modeling steps. The third step focuses on generating the structural framework (Figure A2). The algorithm uses the _FamilyInstance.ByPoint_ node to place frame instances at pre-defined  
Figure 15: Workflow for automated configuration algorithms. coordinates. These frames are adjusted based on input parameters, particularly the horizontal spacing parameter \"a\" from the \"Integrate Frame\" Family, with dimensional values assigned via the _Element.SetParameterByName_ node. \"Conner Integrate Frame\" Families are placed at perpendicular intersections to ensure system-wide continuity and geometric consistency. Once the framework is established, the fourth step arranges the roof purlins (Figure A3).