# Truss Roof Creator

### The structure of dynamo

This dynamo script is composed of 6 parts: input, creating baseline and surface, calculating the radius of members, preparing points and lines for elements, creating elements, and output.

**How to use **

As shown in the screen shoot of input, users need to decide a reference point, the size of a roof (x and y direction and depth), the number of waves and division, and the radius of base case. As the span of a member is longer, the member bears larger stress. So, the radius is computed in the section of calculating the radius.

### Outcome

The function of Generative Design provides the outcomes of several models. The outcomes include the volume of members, and the number of components and connections, which impact the material and labor cost, and schedule. Architects can design a truss roof considering these factors.

### Video

### Appendix

**Input**

**Creating baseline and surface**

**Calculating the radius****Preparing points and lines****Creating elements**

- Outputs