twitter youtube facebook linkedin email
Connect with:

BIM and Beam

When moving data from Revit to any structural analysis software, we are facing two main issues:

  • Keeping both models synchronized
  • Mapping the cross sections from Revit with the cross sections provided by the simulation product

Structural Engineers can transfer Revit models into React Structures in a flexible way using Dynamo.I would like to cover briefly a Dynamo graph to create a one way model exchange workflow from Revit to React Structures.

Get Started

To get started, let’s follow initial steps:

  1. Start Revit 2016 and open your Revit project.
    Revit2React-01
  2. Open React Structures and create a new empty project.
  3. Start Dynamo 0.9 from Revit Add-ins Ribbon tab and create a new graph.
    Revit2React-02
  4. Set the graph evaluation run to manual.
    Revit2React-03

Reading the Revit analytical model with Dynamo

Now we are setup and we need to read the analytical model from Revit and move its representation into Dynamo.

  1. In order to read the analytical model of stick elements into Dynamo, we need to add the node All Elements of Type to our graph. This node takes as input the Revit Element Types node output.
    Revit2React-04
  2. The Element Types node exposes all element types available in Revit. We should add this node to our graph, connect it to the input of the All Elements of Type node and choose AnalyticalModelStick from the combo box.
    Revit2React-05
  3. To see the result we could now add the Watch node and hit the Run button.
    Revit2React-06
  4. At this stage the connection between Revit and Dynamo is set. To view the analytical elements in Dynamo canvas and access their geometry, we need to add the Curves node and connect it to the output of the All Elements of Type node. After the evaluation of the graph, the output will be a list of curves for each of our Revit analytical elements and the geometry will be drawn in the 3D view.
    Revit2React-07
  5. Now we need to get the cross sections assigned to the Revit analytical model elements. In Revit, cross section names are defined by the family type parameter. To access this parameter we could add the GetParameterValueByName node. This node takes two inputs, an element and the name of the parameter.  The input elements will come from the output of the All Element of Type node.  To specify the name of the parameter, we will add the CodeBlock node (by double click inside the Dynamo canvas) and set “Family Type”; as our input value.  The result will be the family type of each physical element hosting a stick analytical model.
    Revit2React-08

Preparation of the React Structures analytical model

We have now access to the data describing the Revit model in Dynamo however a few additional steps are necessary to do before sending the model to React Structures.

  1. When you look at the output of the Curves node then you see that the analytical model elements are split in three pieces. We need to find a way to convert these 3 curves into a single curve that will represent a member in React Structures. For this we will use the CodeBlock node to merge curves.  The code we need  to add into the newly added CodeBlock node  is the following://get the list of first curves describing the analytical model and store it
    firstCurves = List.FirstItem(curves<2>);
    // get the list of second and third curves describing the analytical model and store it
    secondAndThirdCurves = List.RestOfItems(curves<2>);
    // Join elements from the first list and the second list
    firstCurves.Join(secondAndThirdCurves);Revit2React-09
  2. The output of this node is a list of Polycurves describing our analytical model and this list will be used to create bars in React Structures.
    Revit2React-10
  3. Dynamo is passing data to React Structures into the SI units. This means that units for length in Revit should be set meter. If this is not the case, a scale factor could be applied to the geometry using the Scale node.
    Revit2React-11
  4. In order to be able to assign cross sections to React Structures elements, we need their names. To achieve this we could connect the GetParameterValueByName node output to the FamilyType.Name node. The output of this node will be the name of the cross section assigned to each of the elements.
    Revit2React-12

Creation of the analytical model in React Structures

Now we need to add to our graph some nodes which will create our model in React Structures.

  1. The React Structures installation adds a set of Dynamo nodes into the Dynamo for Revit. These nodes can be found under the Analyze/Structural Analysis for Dynamo category. To create a bar in React Structures, the ByCurves node can be used. This node will create a straight element in React Structures using the curve start point and end point passed as input. The input of this node is our list of polycurves objects returned by the previously created CodeBlock node.
    Revit2React-13
  2. Running the script at this stage generates bars in React Structures, however cross sections are not assigned yet.
    Revit2React-14
  3. To assign cross sections to React Structures elements, the sections should be available in the current project. To be sure that required sections are available, we will create a new CodeBlock with the following code:
    // Create a list of unique section names
    uniqueNames= List.UniqueItems(names);
    // Load sections into React Structures
    Bars.LoadSections(uniqueNames);
    // return the list of section names
    // that should be assigned to each member
    names;
    Revit2React-15
  4. Now, when evaluating the graph, all missing sections are loaded into React Structures if they are present into the active React Structures section database.
    Revit2React-16
  5. To complete this graph, we need to assign cross sections to the React Structures members. This could be achieved by using the SetSectionByName node. The input of this node is the list of analytical bars created by the AnalyticalBar.ByCurves node and our list of strings output of the second CodeBlock.
    Revit2React-17
  6. Run the script to assign the proper sections to the React Structures elements.
    Revit2React-18
  7. With this graph, the Revit model was passed to React Structures using Dynamo as proxy. If we turn the Dynamo evaluation model into the Automatic mode, and if we make any change in the Revit model such as changing the family type, adding, removing or moving elements then it would be propagated automatically in React Structures.
    Revit2React-19

This script is an example of the workflow we could enable using React Structures, Revit and Dynamo. This graph could be extended to manage some additional analytical model elements like curved beams and surface elements and to transfer some Revit analytical model parameters like supports, releases and structural loads.
Revit2React-20

 

Structural Precast Extension for Revit Software Overview

Revit 2018.1 New Feature - Free Form Rebar Distribution

SUBSCRIBE (EMAIL OR RSS) & FOLLOW US

Get new posts via email or RSS. (Never fear: We don’t share your info.)

Subscribe to BIM and Beam by Email   Revit Facebook page    Revit Twitter account    Subscribe to BIM and Beam by Email

Featured Links

Tomasz Fudala

Tomasz Fudala is the Technical Marketing Manager for Structure. He has over 17 years of experience in the software industry and a comprehensive background and vast knowledge of structural solutions in the Autodesk portfolio. With a Structural Engineering background he is responsible for technical sales readiness. He achieved a Master of Science degree in Structural Engineering from the Cracow University of Technology, Poland. Find him on Twitter @tomekf

1 Comment

View by:
Most Recent Oldest
  1. AvatarJeff Devidson

    0

    0

    Millwork – BIM
    We offer Wood Millwork, BIM, and Architectural drafting services.
    Software’s : AutoCAD, CabinetVision, Cabinetmaker, Microvellum, SKETCHUP, 3DS MAX
    Wood millwork drafting: the items like Trims, Base, Crown and Moldings, Hand Rails, Wood CAP, Coat closets, Storage Closets, Ceiling Panels, Reception Desks, BAR Counters, Transaction counters, Paneling, Cabinet Case work, Pantry Cabinets, Credenza, Work stations, Vanities, Windows, Doors and Frames, Etc.,
    Visit : http://www.archmaya.com
    Email : archmayastudio@gmail.com

'