Dynamo Barrel Vault Brace 05

Dynamo Barrel Vault Brace 05

We’ve built all the necessary components, an adaptive component profile family, an adaptive component brace family with four adaptive placement points, and an adaptive family containing the profile curves that run along the inside edges of the barrel vault trusses that hold up the roof of our project file. It’s time to begin building the Dynamo graph that will give us a flexible solution to place the brace along the curves.

I hope you’ve been following along and creating your families along the way. If not, then take some time to work through the previous posts linked below:

  1. Dynamo Barrel Vault Brace 01
  2. Dynamo Barrel Vault Brace 02
  3. Dynamo Barrel Vault Brace 03
  4. Dynamo Barrel Vault Brace 04

The placement family we built in the last post is available directly at the link below:

Adaptive Component Placement

By the way, this solution was built in Revit 2015 using Dynamo 07.5. You can use one of the newer daily builds if you want, but the screen captures will look slightly different. Before we launch dynamo let’s load the parts we need:

  • open the adaptive component placement family and click the insert Ribbon tab.
  • Click the load family tool and load the 4 point AC Brace family created in post 3 and 4 of this series.

Load Family

With that prep work done, we are ready for spaghetti…sorry couldn’t resist.  Let’s get started with Dynamo.  Let’s launch Dynamo. You’ll find the Dynamo launcher on the Addins tab.

launch

Before we connect our first nodes let’s get familiar with the Dynamo interface. First up is the welcome or startup screen

Startup

You can use the File menu area at the top or the Files area on the welcome screen labeled in blue above. Directly below the I/O area is the recent files area, which presents a quick way to click back into your latest graph. When you’re ready to learn more, you can visit the source links to view example files by either clicking the link directly or clicking the “Show Samples in Folder” link to browse using windows file manager. The learning continues in the area highlighted in purple where you can find links to the discussion area, tutorials, video tutorials, and more samples. Lastly, the Code area has links to the source code for Dynamo itself, as well as a link to submit bugs.

  • Click New

When the Dynamo editor is displayed look around the interface as we learn how it works.

menubar

Across the top of the editor screen, you’ll find the menu bar. In the menu bar as in most applications, you’ll find following menu items: File, Edit, View, Packages, Settings, Help.

  • File Menu – This pulldown contains the standard input and output tools like New, Open, Save and Saveas. There is also an option to import a Library, Export your workspace as an image, Export dynamo geometry as an STL file, a recent files list, and an option to exit the program.

Filemenu

  • Edit Menu – , an edit pull down containing the expected undo, redo, and copy/paste tools, You can create notes to accompany your graph nodes, an option to bundle up a selection of nodes into a custom Node, Select all, delete, Align Selection to organize your nodes horizontally and vertically, and an automatic option to cleanup the node layout (might result in criss crossed lines)

EditMenu

  • View Menu – this area contains navigation tools for zooming, panning, options to change the node connector types and visibility, as well as visibility options for Revit geometry and dynamo geometry toggles.

ViewMenu

  • Packages Menu – this pulldown allows you to search for packages others users have uploaded, manage the packages and versions you’ve downloaded, and publish your own creations in the form of nodes, packages, and workspaces.

Packages

  • The Settings Menu – contains feedback settings for the Dynamo team to assist them in improving this great tool, precision settings for length, area, volume, and numeric input and display as well as Rendering precision. Click the about option under help to see the type of data and identification that is sent back to the Dynamo team.

Settingsmenu

  • The Help Menu – This contains links to the wiki, project website, the source folder for the examples, the start page, bug reporting, and links that open the learning samples directly

helpmenu

  • Directly below the menu bar is a Quick Access Options Area containing new, open, save, undo, and redo options on the left and an update notification cloud and snapshot tool on the right. Notice the green cloud indicating an available update to Dynamo is now available, you can click the cloud to install the update.

quickaccessoptions_qao

  • Along the left side of the screen below the menu bar and Quick Access Options area is a search tool and the list of node categories or packages that are installed.

library

  • At the bottom left of the Dynamo window, you’ll find the application Run options, allowing you to Run Dynamo automatically as connections and nodes are added if you choose. A manual Run option is available as well.

autorun

  • At the bottom right of the graph window, you’ll find toggles to switch between adjusting the display of the nodes and/or 3D geometry inside Dynamo. You can also use CTRL+G to switch back and forth

graph3d_toggle

  • In the upper right corner of the Dynamo graph window are a few final tools. The triple row icon below the camera icon, allows you to switch between the graphs currently open in the editor. Directly below that are three zoom controls: zoom centered (fit to screen), zoom in, zoom out. The zoom centered option will perform a zoom extents if no nodes are selected, if a node is pre-selected, that node will be centered and a slight zoom will be performed. Below the zoom tools is the pan tool.

ViewControl

  • The final menu/interface element is the right click menu which changes based on your context and if an object is selected. When no nodes are selected, the right click menu offers options to Align nodes, create new nodes, toggle the geometry/node visibility, pan and fit to screen.

noselection_menu

  • When a system or built in node is selected the right click options include Delete, preview, preview upstream, show labels (never seen this enabled), rename node, and a help function that will display the node type, description, category, inputs and outputs available for that node.

default_custom_node

  • When a custom node is selected an additional group of right click options are displayed allowing you enter the custom node, change the node properties, or publish the custom node. If you continue right clicking on the nested nodes, you can get to the Python script editor where the real power is!

pythoneditor

That’s it for this post, in the next installment, we’ll create our script and run it through its paces.

Dynamo Barrel Vault Brace 04

Today, we’ll make one more adaptive component family.  We’ll do this one by opening the central model and isolating the Barrel Vault Trusses…actually, we’ll isolate two of them since they are identical throughout the length of the space and our aim is to use dynamo to generate the braces used to stiffen the roof truss system.

If you are just joining this series, take a moment to view the previous 3 posts:

If you didn’t do the homework from the last session, you can download the family created here:

4 Point AC Brace

Create the AC Family for Brace Placement:

  • Open the Central model and activate a 3D isometric view
  • Use the temporary isolate to isolate two  of the barrell vault trusses adjacent to each other

IsolatedTruss

  • Export the geometry to DWG format

Export

  • Keep the temporary mode active during the export

temporary

The above steps are useful to reuse Revit geometry from a project context when you intend to model a component in the family editor.  I’ve done the export for you, you’ll find the 3D cad file at this link.

3D CAD Truss

  • New Family – Generic Model Adaptive

NewFamily

  • Click the insert ribbon and choose import cad formats dwg and locate the halltec_main_truss drawing that you just downloaded.

ImportCAD

  • Bring it in using Origin to Origin
  • Toggle off the “Do Not Select Pinned Objects” control

SelectionPin

  • Select the Cad import and move it to the origin of the family.
  • Choose the snap point as the inside face of the truss and align with the Center Front/Back reference plane in your family.

movetoorigin

  • Pin the dwg file
  • Click the Center Front/Back reference plane, hold the CTRL key down while you drag a copy to align with the other inside face of the adjacent truss in a top down or plan view.

CopyRefPlane

  • Reselect the Center Front/Back Ref Plane to activate it as a work plane

Activate WorkPlane

  • Switch to the front elevation view
  • Add Reference planes as snap intersections for the splines you will draw

RefPlanesPickPoints

  • Click the Spline through points tool and draw a 3 pt spline using the intersection and midpoint snaps along the top chord of the truss while the Center Front/Back reference plane is the active workplane

SplineTrace

  • Repeat the sketch process for the bottom chord while the Center Front/Back reference plane is the active work plane.

drawchordsketch

  • Switch to the 3D view and window select the two splines and associated points.
  • Use the filter tool to eliminate any other elements you might select using the window method.

rcp

  • Once the splines and points are selected, copy them using the end points of the ref planes in a top down 3D view.
  • Your family should look similar to the image below.

chords complete

  • Open your 4 Point AC Brace family and load it into this placement family.
  • Save your family as Adaptive Component Placement.rfa

 

We’re finally ready for Dynamo. That’s all for this post. See you next time as we begin to create the Dynamo graph.

Dynamo Barrel Vault Brace 03

Dynamo Barrel Vault Brace 03

Welcome back, today’s post will complete the Barrel Vault Brace family.  If you’re just finding this post today, look at the previous posts to start at the beginning. If you’ve been following along and doing your homework, you should be ready to begin. The best way to learn is to do the work yourself, but if you ran into problems or just haven’t had the time, you can download the catchup file here.

Now that we’ve created the top and bottom chords, its time to add the diagonal bracing members. You did flex the family right? It’s important at each step, to be sure the pipe radius behaves and moves with the adaptive points. If you haven’t flexed it, please do. Did your pipes remain consistent from end to end? If you got a bulge anywhere in the pipe, you must not have constrained the profile shape to the ends. If your family is good, then its time to work on the diagonal bracing. Let’s make it easy on ourselves, select the two diagonal reference lines and isolate them temporarily.

IsolateLet’s get started!

  • Click the component tool and use the type selector to set the family and type to Circle_Profile_AC:BraceRadius
  • Hover over the adaptive point at the bottom left of the brace, tab until the end point option is selected and the working plane is perpendicular to diagonal reference line.

diagonalEnd

  • Place the BraceRadius and while still selected, Add a family type parameter labeled BraceRadius and associate it to the BraceRadius radius parameter.

DiagonalParameter

Repeat this process at the other end of the diagonal reference line.

  • Change the value of the BraceRadius parameter in each type and flex it. Do the profile family circles get larger? Good.

endptandorientation FlexDiag

  • Create the form element by selecting the reference line and the two profile family insertions. Click Create form.
  • Now flex the resulting geometry. Does the brace form element behave? Good, add the remaining diagonal elements by repeating steps 3 ,4, & 5. Flex the family. Do both diagonal elements flex properly?
  • Click your temporary visibility tool (sunglasses) and Reset temporary hide/isolate visibility. Select each of your adaptive points and move them using the ucs gizmo. Do the form elements follow and flex properly?

FlexDiag2

  • Add a material property and assign it to diagonal brace form element.
  • Repeat this process for the other diagonal vector.
  • Flex your family again and ensure it behaves. Did you add different materials to your test types?

Final_Brace

Does your family look like the above image?  We’re almost ready for Dynamo.  See you next post, when we’ll create our insertion adaptive family and begin working in Dynamo.