Parametric Modeling Using Dynamo and Revit
Introduction
The aim of this project is to develop a method to
control the color of the curtain panels in the building modeled previously in
Project 1
In addition, the shading system will be designed for tracking
the sun path. Thus ‘solar angle’ is necessary.
1 Random Color Curtain Panels
The building has more than 4500 windows that have different
colors following the image. In order to achieve this goal I use Dynamo.
Firstly, I make six different materials and distribute them
among the curtain panel system in a random way
Secondly, I use an Excel sheet to alternate the panels with
six colors and materials. I use 0, 1, 2, 3, 4 and 5 to design the curtain
panels based on the image.
Thirdly, I import the list into dynamo and I “If” note to
help me change the elevation of this building based on time.
Finally, I use Python note to
assign each material to the different panel with the corresponding index. The
result is changing the color of the widows all at once with the flexibility of adding
more materials or changing the colors distribution.
2 Shading System Controlled by Sun Path
The second objective is to use the sun movement to control
the rotation angle of the shading devices.
Firstly, I use the “Sun Settings. Current” and “Sun
Settings. Sun Direction” notes to get the position of the sun. Then I use
“Vector” and “Formula” (sin A=x/z) note to get the angle.
Secondly, I use the “Element. Set Parameter By Name” to
control the rotation angle based on the sun path.