Brianny Martinez - Ripples on a Pond
Brianny Martinez - Ripples on a Pond

Brianny Martinez - Ripples on a Pond

I approached the problem by first creating all the input values I needed. I created a grid of points. I made sure to make the end point a small value in order to quickly run the program. I then created the attractor point and created blocks/integer sliders for the # of Waves, Amplification, and the Reduction value. Next, I used one code block to run all the calculations needed to create the cylinders using Cylinder.ByPointsRadius. Once it ran properly, I increased the size of the grid and I created the Revit cylinders using FamilyInstance.ByPoints and setting the height and radius parameters with Element.SetParameterByName. I connected the diminished_height value to this in order to reflect the ripples on the Revit model as well.

image