- A screenshot of your model geometry
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F81551990-d50f-4c55-b64b-0396d30134e3%2FUntitled.png?id=5f411db9-529d-4b87-a766-30c285adf696&table=block)
This is a screenshot of the model geometry in Dynamo with only one pebble.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5eddc1a7-92fc-434b-9f86-2e1e25685bdc%2FUntitled.png?id=4fe43105-ed4f-43cf-b101-cecfe2591dbb&table=block)
This is a screenshot of the model geometry in Revit with only one pebble. The cylinder on the top right is the element I created with parameters.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff9bc8770-e83e-48c3-ab3c-52e08286a5a0%2FUntitled.png?id=d026e40b-1278-4209-a10d-b59529d82e9a&table=block)
This is the model geometry in Dynamo with two pebbles. The second one has a similar amplitude but more waves. Both amplitudes and numbers of waves can be adjusted.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F945349f7-89b4-4ada-8734-3968b43a73b2%2FUntitled.png?id=683a4250-073b-4444-92c3-1e68b1da9710&table=block)
This is the model geometry in Revit that has two pebbles.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9a24ac9e-ee46-40a2-80c6-48f971cf0123%2FUntitled.png?id=a0b1c91f-a712-470c-bf92-2eb07ba2ae50&table=block)
These are the codes I wrote for all six steps.
- A few sentences describing your modeling approach
I’m doing 4 units here, so I have a total of 6 steps. However, I found it hard to distinguish between steps 3 and 5 since they are both about changing the heights of the cylinders, so I put most codes in step 5.
For the cylinders, I used curve extrusion instead of cylinders. In this way, I do not need to define endpoints. I only need to define the heights of the cylinders instead.
In the first step, I used an integer slider to define the size of the square grid. In step 2, there are two sliders to define the x and y coordinates of the first pebble. In the third step, I only left a code box for height. It is connected to both Dynamo and Revit model geometries. If I need to change the height value, I only need to connect it with other values; both model geometries will change at the same time.
In step 4, I added the Revit element as a family type. Two parameters of the cylinder are its radius and height. The radius is basically fixed. The height is changeable and will be discussed further in Step 5.
In step 5, I defined the distances of the pebble to other points, the amplitude of the waves, and the number of waves. Amplitude and number could both be changed with integer sliders. To simulate the diminishing ripples, I created a sine formula in a code box. When I adjusted all the sliders to test the models, I realized sometimes negative values of cylinder heights appeared and errors occurred in the Revit model, so I added a base value of 3 to avoid this situation.
For the last step, I created a second pebble. The workflows for this one are basically the same as the first one. The integer sliders could be used to adjust x and y coordinates and the number and amplitude of waves. I used the sine formula again. Finally, I added the height changes of the first and second pebbles together. This is the new height at which I can link to the code box in Step 3. If I want to change the Dynamo and Revit models back to the one-pebble situation, I simply link the height in Step 5 to Step 3.