The following design is a covered walkway that was inspired by a cloud and a rainbow.
The above image shows the overall workflow. Six groups of code were used to create this structure.
These are the parametric variables. They control the height and length of the structure as a whole while also controlling the amount of structural ribs and panels that the structure has.
Start and end points for a line are created then the line is duplicated at variable x distance away from the first line.
This sets up the cloud shape curve using a few control points. The control points were determined through trial and error to get the proper shape of a cloud.
This group takes the two control lines and splits then into multiple points. It then used the cloud shape to create curves at all the points on the lines. The cloud curve is then split into points to allow for panels to be placed on the structure.
This group takes all the points and then groups them into 4-point lists based on the grid. These are then used to place the panels. The 4-point list is deconstructed and built into a 2-point list. This list is then used to create the structural tube. Certain parameters are then modified when added to Revit.
Finally, an off-white color is applied to the ribs to have then look like clouds and rainbow colors are added to the panels.