Automated Cladding
Kristen Stapper
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW4aksOLF2P2CicrtyPdt-V1FQorZ-8adwZRhtunOGFHQAIUF8uxEExAWNfkcp2WeqWA6VLrB4bo-Hw6uUPOH9iV8szzBUi9OgoEPEhHT6GDT6Ds1zFtLeJX5NBxm_bLXM-9f8MxTJh8gC/s320/rendering1.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEO4etwtHPWe4KnMWVzdGtavTUEKQmfd7Qy753hyphenhyphenAFrq6bCMiFUmsiB8pr3Ghlvjcupt72BBkTYN4OWYBcsEWEjVUzZoOkr0ec8xdAROl2tpXDkmDHUhg056TzRJ1h8H7_Ds2Y0Uf8WQb1/s320/Straight+Wall+1.jpg)
I began with a straight wall. The Ids of the wall and the cladding element (at the corner of the wall) were brought into the program and set as variables.
The only parameter values needed from the wall were its length and height.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1ptksSf4L5z786IkaS8xvu2OUdVUPO3OpAn1YaTZ3cZNIKD6zzvq8nldMA1NDyNCCUFnDxiDQf5hKZWPgDB8jq8o4jowgEqFx5o59o4LK4-j48nVUKrgQxn3fiAewuMQuqUDLk064tuYK/s320/Straight+Wall+3.jpg)
Revit has a LinearArray class, which was used to fill the wall. The number needed in the array was determined from 2 variables. One used the wall length divided be the clad width, and the other used the height of both and performed the same calculation.
An array along the length was created first. Next, this array is stored in a variable and used to create the second array, filling the height.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVvmwUVQQnoyyIDJ9J5xtiH9YvVkYZMnoRWpTN10lsKNlFE5Mnn-M6j59iCSMPIhi2OSYjKT5Bgo1woMX5-lMHwlgTmYjBOzTzA2m0DNuXzRqhzr0m0OR84beNuwLuNBs-0_shHHlTr01Q/s320/Straight+Wall+4.jpg)
An issue with the array is that all of the elements are stored in their array groups. If some elements are unwanted, i.e. those over the door, then attempting to delete them causes sporadic problems with other elements across the wall as shown.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO3tFNMLw4doAMopAzhibMP5tCb5Pz6qo7mmlQRrtQhidBWcSlElO6vPHEOUFfVp4mefiE8_V9J2oVldAQRy_cvr78UNnrmn7iojfsD04P5d5XSON2VZQnyru1i7qinsqgXCVpy04-0P_Q/s320/1.jpg)
I attempted to also run this for a curved wall. Revit has another class called the RadialArray that would need to be used in this example. Unlike the LinearArray, which uses a location point, the RadialArray uses an angle in radians. The issue with this class becomes apparent during execution. Arrays work from the element's center, and arraying from the cladding's center causes the array to miss its wall host, deleting the elements. To fix the code, the user would need to open the class, which is not available.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0CwgwR4rzj4XWe8nOjj7csNkBLqzt_l9opdOfcVn1MK_w8DTG0AT62DZN9dnirX2JZ2-_PzERNSkOcdGgwPuirnoigIAcK-5_j7_IF6WxM9R2vtKc2zFS4SE2cBQheP_URCYt2aC26ZNu/s320/2.jpg)
Getting the wall and cladding Ids for the program
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgudFDM5ar1xdPK0eFX0j84ClpwAGlLdlP670q4rI4cA9tOWrTYU79gYP4_9d5PxLBMSnQORm4dEbAB06Os4VJCS_jM8biMSZLuqHvE2M6U7Pq-Tw9lSAW1yPYNzAdHxssKIL7eHbOVJyxq/s320/3.jpg)
Other methods were tried to fix the RadialArray. I tried to change the cladding's location point before the array to the wall's center, but since it cannot leave its host, it was unsuccessful.
A smaller wall host was put at the curved wall's center with cladding. The idea was that when it is arrayed, the cladding would have the curved wall to host into; however, this was also unsuccessful.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Iiw13azFdkOOglV8xEcOLK4lz9FtIY_qiR0ZNRM5fsWROdcE7vxi3zdIF4ZJ_HicoWUoavRMajF2H5ozvc9q35m_3XZChTXCH9lhd8cDNlCBVyYRHjRM0qyv0D4UstnEFx5uc87npIPj/s320/4.jpg)
The current solution for curved walls is to manually array the length, since the rotation location point of the cladding can be moved to the wall's center.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrUFEWDRw97sQRuUIFFfaiA_KoQbESiQkzivbcnYz7clsDJbiJQ6ipnFn5mYaoOv8IlSDdlXLtKikJgUuFJl3VV49SLFk53VGihDwMIhWL30D80xTnYbVJRFgjo304v5aY0eb4NC6TSFiq/s320/5.jpg)
Then, either manually array the height using the first array, or select all elements of the array and input them into the program to allow it to array the second one.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPP7ndzyHSBQ8oL3oJgsuzboKT3rVoGce1Ji5XDZ4l5I0UyisyHuHGP53WxyOjJbO9YqMvlBZIK79jTI8jXFwmZdJz5OrNOoh6tPO5f72t8dgb3KDsgPNhow0G3K-WjxX0VlrtwzoQE8Iu/s320/6.jpg)
Finished wall
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjciWtrPen0Gzj_YaHesFCvuJN2WEZGp8igv9g8zNw7-wsPLpChsamOaIpQBpQjdefsQZUfIW6Y1SgfRRr_qNocwJo5zYiTxghTl-3-kRZwZjedWGT9it0fUCS-US8OkJFjkxuDiKp8sEJ_/s320/Loop2.jpg)
Another method was tried eliminating arrays.
Instead, two for loops are used, one for length and one for height. They are set to run to the length of the wall's length and height from the variables already calculated in the other program.
The wall's location point is found and set, which is where the cladding knows to begin filling in. These location points are XYZ coordinates.
With this method, the elements remain as individuals and not as a part of a group, so deleting individual cladding elements is not a problem when replacing them with doors or windows.
A step further adds an if statement to the code that causes the loops to jump over the location points of door or window ids that are sent to the program, eliminating the need to go back and delete unwanted cladding.