Also known as ‘out of the box’ or OOTB nodes
Workflow: Creating finishing Floors from Rooms
Workflow: Create Topography from CSV in Revit 2016 using Dynamo
Workflow: Create Topography from DWG in Revit 2016 using Dynamo
Workflow: Family Distribution Part 2
In the second part of the “Family Distribution” lesson we will use the Family “Chair” and distribute it on a closed path around a Table.
In the part 1 of this lesson we allowed Dynamo to calculate automatically the length of each segment by dividing the total length of the path by the number of segments. This time we will do the opposite, we will specify the segment length and let Dynamo calculate the number of segments needed.
For this part of the lesson we will draw a Model Curve on the shape of a circle to use it as a guide for the distribution path, divide it into equally spaced segments then insert the “Chair” Family at the end point of each segment. We will let the “Table” Family be at the center of the circle.
So as we planned the workflow logic in our mind we can find the nodes that are needed to implement it. Now we will open Dynamo and create a new Workspace.
From the Categories Search find the following nodes:
- Select model element
- Number Slider
- Family Types
In order to insert a model element from Revit environment into Dynamo environment we shall use the ”Select model element” Node, so click on select and from Revit project pick the model line.
After the Model Curve is brought into Dynamo we need to extract the Curve geometry from it so we connect the ”Select model element” Node output to the “Element.Curves” Node input. The curve geometry is ready now to be divided so we will connect the output of the “Element.Curves” Node to the input of the “Curve.Divide Equally” Node input.
To determine the length of each segment we will connect the “Number Slider” Node to the “divisions” input in the “Curve. DivideByDistance” Node. By changing the slider value the number of divisions will increase or decrease respectively.
As the curve has been segmented we need to locate the end points as they will be our insertion positions for the “Chair” Family instances. So connect the output of the “Curve. DivideByDistance” Node to the “Curve.EndPoint” Node input. Now from the “Family Types” Node select the “Chair” Family Type and connect it to the “FamilyInstance.ByPoint” Node.
The last step before hitting the “Run” button is to connect the insertion points coming from the “Curve.EndPoint” Node into the “FamilyInstance.ByPoint” Node. We can hit “Run” button and see the result in the Revit view. If we set the run mode in Dynamo to automatic then we can change the number of inserted instances based on the length of segments by changing the value of the Number Slider online.
The Dynamo Workflow can be downloaded from here
Everything about this node is pretty much the same as the Form.ByLoftCrossSection, except it can create multiple loft forms based on the lists structure passed into it and assign them to be solids or voids based on a list of boolean values (true / false).
Form.ByLoftCrossSections is one of two OOTB Dynamo nodes available in Revit that produces a type Form geometry (native Revit geometry). It requires the input of a ModelCurve which you can get from either a Modelcurve.ByCurve or a ModelCurve.ReferenceByCurve. You can only use this node in a family as both the ModelCurve and Form.ByLoft nodes will only work in family environment.
If you pass a false into the isSolid you will get a void rather than a solid.
If you need a more complex geometry in Revit, take a look at the Form.ByGeometry node from Spring Nodes.
The If node takes a logical test and then returns a true or false result based on this test. It has three inputs:
true – what should the output be if test is true?
false – what should the output be if test is false?
More advanced example: