Please enter the following info in the fields above:
- Your Name (just type your name, then click Create to add yourself to the list)
- Paste the link to your BIM 360 folder in the BIM 360 Link field.
Image of My Model
Description
The first thing to do was creating the grid of points by coordinates with a Start , End and Step. The code block had to be set in Lacing - Cross Products to be able to present the grid instead of a line. The list was simplified with the List.Flatten code.
Afterwards, the attractor point was created in the middle of the grid to show it as a pebble being dropped in a pond, creating waves in all directions equally. For the cylinders representing the waves, the distance between the pebble and each base point had to be determined with the code Distance.to.Geometry. This was key to model the rest of the waves. This value had to be placed in a sine wave formula among with the base offset value (to be above 0), wave amplitude and number of waves, to be able to manipulate and design the waves around the pebble. These were set with integers sliders to be able to test the results faster. The code Geometry.Translate was also used to translate the base points in 0 of the cylinders, to the new elevations based on the sine formula.
To make it more realistic, the ripples were diminished as they were getting further from the pebble; this was possible by diving the base offset by the distance (Dist.to Geometry). The distance had to be above 1 to avoid errors in calculations from a division by 0.
After the design of the ripples look good in Dynamo, the Cylinder family and parameters from Revit were imported to create the model in the Revit interface. Once the formulas and nodes were placed in Dynamo, it was only a matter of connecting the nodes to the Cylinder family (Family.by.Instance), and setting up the parameters of height and radius.