Dynamo Guide
Dynamo Guide
TIPS 1
DYNAMO PLAYER
Dynamo Player provides a simple way to execute Dynamo graphs in Revit. Use Dynamo
Player to automate manual tasks through an easy-to-navigate dialog. Once the graphs
are created, no Dynamo expertise is required to use the Player and run the graphs. You
will find the tool on the ribbon, in the Manage tab.
TIPS 2
NODES
Here is the basic concept of Dynamo. Nodes are the little boxes you keep seeing all
around.
TIPS 3
IN/OUT CONNECTION BETWEEN NODE
The core idea of Dynamo is to connect nodes using wires.
TIPS 4
RENAMING NODES
Double-click on a node to rename it. Renamed nodes will have a yellow “Edit Node
Name” tag alongside the name.
NODES LIBRARY
On the left of the interface, you’ll see the node library. They are divided into multiple
categories. The nodes that interact with Revit are part of the Revit category. The search
bar is essential to find your way around the huge number of nodes.
TIPS 5
CUSTOM DYNAMO PACKAGES
The Dynamo Package Manager is a portal for the community to download any package
which has been published online. These toolsets are developed by third parties to
extend Dynamo's core functionality, accessible to all, and ready to download at the click.
For more packages refer: https://dynamopackages.com
TIPS 6
INPUT NODES
Input nodes are essential to get your script started. They are used to define specific
numbers, text, file path, yes or no and much more. Here are some input nodes you’ll
encounter:
CREATING A NOTE
Some scripts can become an insane spaghetti festival. Adding notes to the script helps
other users understand what’s going on. Go to Edit and click on Create Note.
You can show a group color by right-clicking it. Multiple colors will be available. When
creating big scripts, use a strong color code to keep things easy to manage.
MANUAL MODE VS AUTOMATIC MODE
The Automatic/Manual option is located at the bottom right of the interface.
Automatic mode will run and rerun the script each time you modify it. This feature is
the default mode in Dynamo but is probably not convenient for you. Automatic mode
often executes scripts before users are ready to do so. You can potentially cause
problems to your model if you aren’t giving your attention.
Instead of Automatic, switch to Manual. When you want to activate the script, click on
Run. Regardless of which mode you are using, create a test model before using your
script on an important Revit model.
TIPS 8
CREATING A SEQUENCE
That’s enough with the interface; let’s create something. Add a sequence node. Use the
right-click menu and type in Sequence.
However, your cursor over one of the input ports. You will see a pop-up that explains
what that input does and what input type the node expects—hovering your cursor
above the entire node will explain how to use the node.
TIPS 9
ADDING INPUT NODES
Let’s explore a few ways to create input. The universal Dynamo node is called ‘Code
Block’ and can be used for multiple things. You can indeed type in code but also type in
values. To create a code block, double-click anywhere on the screen.
In the example below, we type numbers. Press Enter to create multiple lines on the
same Code Block. Plug the wires.
Code Block has some limitations. One of them is that the values entered here can’t be
customized in the Dynamo Player.
TIPS 10
NUMBER VS INTEGER
The Code Block alternative is to use a Number or Integer node. If you remember your
math class, an integer is a number that is not a fraction.
TIPS 11
USING A SLIDER
When creating numbers or integer input, you can use sliders. Click on the arrow symbol
to adjust min, max and step.
Let’s plug that slider into the sequence:
TIPS 12
EXECUTING THE SEQUENCE
Execute the script. The sequence is generated. Hover your cursor on the node, and you’ll
see a List pop-up. Go to the list and click the Pin icon to see all items on the list
permanently.
TIPS 13
USING A “STRING”
Time for some programming jargon: string means text.
Type in a letter. As you can see below, the script now creates an alphabetical list instead
of a number sequence.
This specific type of entry only accepts a single letter, but other nodes will allow you to
use as many words and letters as you want.
However, we've created a sequence, but that doesn't amount to much. It's time to get
serious and create a script that will allow you to modify the parameters of specific
elements.