Part 1
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3b8bfe3f-326d-4474-bd85-04219c10941b%2FScreen_Shot_2023-05-12_at_00.04.26.png?id=20566e3e-b5d5-46cd-9ea7-4c7e55a2bc9a&table=block)
I started the process by picking one of the available three-component building shapes and defining its location in Revit.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F28867e07-fa78-4f40-a530-ec311f22d571%2FScreen_Shot_2023-05-12_at_00.07.15.png?id=14b5eeb0-f2cc-4962-aacd-f1c629185103&table=block)
After that, I started building my Dynamo logic by defining the model element from Revit and some constant parameters that can be manually changed using a slider, such as top and base rotations.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8b413dfb-78dd-49e4-aadd-30957ebc7df0%2FScreen_Shot_2023-05-12_at_00.09.18.png?id=dfbe8dd9-7ca0-414d-a181-5dc8be6aaff6&table=block)
My next step was to define alternatives to flex. I chose that I will be testing the top height and base rotation of the building. The range of height and base radius values can be easily changed by using code blocks. Then I created a list that combines both alternatives I want to test into a list.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F16c97685-e454-4990-bc64-9bf73acd571c%2FScreen_Shot_2023-05-12_at_00.13.33.png?id=a393caf7-9c01-440c-b5b9-05bdd64e98d3&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7199666d-3a9c-46f0-8b8a-83bea9532f4b%2FScreen_Shot_2023-05-12_at_00.16.49.png?id=b1e5f5bb-52d1-4259-afb8-ea0b3a6ded8b&table=block)
After that, I downloaded a custom node from Google Drive and used it as a function to test the alternatives I chose. I connected function outputs with the list of testing combinations to create a list of four values that represent the top height, base rotation, and corresponding gross surface area and gross floor area.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe468c461-cf57-44b1-ba2f-d3323540f788%2FScreen_Shot_2023-05-12_at_00.19.32.png?id=c545fcf0-c356-48d0-a0e3-7ebf9c229577&table=block)
My last step was exporting the results into the Excel file. After my Dynamo logic was working, I manually changed the top height and base rotation in Revit and compared the results with the Excel file. Since the results were matching for all the testes cases, I was satisfied that Dynamo logic worked correctly. The results are shown below.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5175aace-1fcc-47e1-9d32-3f05d9a72ace%2FScreen_Shot_2023-05-12_at_00.25.06.png?id=659d2d26-e9cf-4b9a-abe1-e526f18070ce&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fcfcd16b9-83a4-4096-9d71-a3b44ce8ac63%2FScreen_Shot_2023-05-12_at_00.30.40.png?id=b561add0-a591-41e4-993d-e8426e05a952&table=block)
Part 2
I started part 2 by creating a circular profile and saving it as a mass family. After that, I created a new mass template with three levels, where the top height=2*middle height, and placed the profile I created on each level. I checked that the height and radiuses of the profiles can be flexed correctly by manually changing parameters in Revit. Finally, I used the same Dynamo logic as for Part 1 to flex the height and base radius of the building and record the results in an Excel sheet.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F034f6aa5-2aa6-4845-808e-2f1a0b93c0be%2FScreen_Shot_2023-05-12_at_22.11.14.png?id=fd90ece6-7c72-4ac4-9b53-c74550ba8f4d&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1a75d8f7-a465-4dea-a00d-2771c3321243%2FScreen_Shot_2023-05-12_at_22.11.40.png?id=8cf2ded0-3515-457e-9faf-4b245cf2b336&table=block)
Overall, I had a hard time with the second part of the assignment. I could properly flex radiuses and the height of the building before making a solid out of three profiles. However, a solid wouldn’t change the height, and the top profile wouldn’t move together with a top plane. After changing the approach, I finally got it to work and flex the forms!
Random Fact
I was happy to see that we have a picture of the Moscow International Business Center as a cover for this assignment. So here are some pictures I have of the cool parametric buildings they have there.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff7aafb42-077d-43a5-9614-72cfeece7adb%2FIMG_6883.jpg?id=0546ecc8-3eb6-49c9-b6e7-5ebb087eb75c&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6690270c-6697-4a59-9e57-de05b4ffc0fc%2FIMG_6884.jpg?id=9c22f401-11c6-4acc-ad1c-80e2d24e2f66&table=block)