For this assignment, I modeled a bus stop shelter with an outer frame of curved ribs and glass and an inner frame of linear components.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fdc672f66-b6f1-425f-abe3-50c91dffe0ad%2FM3_Render2.png?id=c8a3c800-0f2e-4003-8168-19a41b4375bb&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1c94bf8a-348b-4292-9f69-5c1cbdb06be8%2FM3_Render.png?id=f76f884e-79e8-49de-ba82-cc8ec7fd32bc&table=block)
First, I defined 4 lines for the controlling geometry- one line for the base of the shelter, one line for the back of the roof line, one line for the front of the roof line, and one line to represent the extent of a roof overhang A user can change the x, y, and z translations between each line using number sliders.
Sliders change the endpoint of the end of the roof overhang line. This can make one end of the structure’s roof extend closer to the ground than the other.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fbff413fe-279a-4262-93a8-fff532986564%2Ffirst_part.png?id=71f877fd-3d78-4f21-966e-0ece7373e876&table=block)
I broke up the following code into 2 categories, one for the main (curved) structure/panels and the other for linear panels within the outer geometry. For the ribs: Each category takes the 4 controlling lines and computes/groups rib placement points. A user can use sliders to specify a different number of ribs for the linear geometry and the outer/main geometry.
For the panels: Curves are created for each of the rib placement points. The outer structure’s points are “curved” using NurbsCurve.ByPoints with a “degree” of 3. The inner geometry is made linear by specifying a NurbsCurve with a “degree” of 1. This eliminates any curving between the rib points. The curves are then divided into panel placement points. Integer sliders can adjust the number of panel placement points
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0dca38c2-5cb8-4792-b241-5d178ba0a9c6%2FDYN_SC-Rib-Placement-Pts.png?id=5017d168-00c4-493e-ac8f-98d3f62a34a9&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8cf400b0-b122-4201-8f49-e33ca9afe3b6%2FDYN_SC-PANEL-Placement-Pts.png?id=bc71f596-8efb-46f0-bbbb-ff215d23f17b&table=block)
Ribs are placed in Revit for the outer geometry using a 4-point adaptive component (tube). The radius of each tube decreases moving from its start to its end. The inner geometry is set up to only display panels, not ribs.
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F70e000b7-869a-4ebf-8e94-48242ae33a37%2FDYN_SC-REVIT_RIBS.png?id=8805c248-b578-424c-a0b5-f91799d9545c&table=block)
Panels are placed in Revit for both the main/outer geometry and the inner geometry. The outer/main panels are adaptive panel components with openings and glazing. They bridge between the ribs and fully cover the structure. The inner panels are created from adaptive panels with openings (and no glazing).
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe474c610-1ae4-4b79-9e6e-fa68d9d4d147%2FDYN_SC-REVIT_PANELS.png?id=7cb22596-e755-48f5-8b89-c999f17a2d8e&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F5096eff8-55a9-452d-a49f-dc1e68c67d73%2FDynamo_SC.png?id=2bd19e73-0fc2-4b1d-b811-b3bf4eb65bd2&table=block)