-
Notifications
You must be signed in to change notification settings - Fork 634
Concepts, Definitions and Terminology
Workspace
- The active Workspace is the area where you interact with the elements of your visual program. When you start Dynamo you are in a blank Home Workspace. You start creating your visual program here by placing Nodes and connecting with Wires.
- You can save the Workspace as a .dyn, or Dynamo file for later reuse. Dynamo files can be opened from the File menu or the Samples menu. Opening a Dynamo file clears the previous workspace and opens the file as the new active Workspace.
- A Workspace is executed when you press the Run button.
Nodes
- Nodes are the objects you place and connect together with Wires to form a visual program.
- Nodes can represent Revit Elements like Model Lines or Reference Points.
- Nodes can also represent operations like Math Functions.
- Nodes have inputs and outputs.
- The colors of Nodes change to indicate state.
a. Orange Nodes are well-connected and have all of their inputs successfully connected. They are part of the active Program Flow.
b. Grey Nodes are inactive and need to be connected with Wires to be part of the Program Flow in the active Workspace.
c. Red Nodes are in an Error state. You can see what the error is by hovering your mouse over the node and reading the tooltip.
d. Currently selected Nodes have an aqua highlight. You can drag selected nodes around the workspace or right-click to see their properties.
e. Nodes have input Ports on the left side and output Ports on the right side. Directionality of execution and program flow usually goes left to right.
Wires
- Wires connect between Nodes to create relationships and establish a program flow. You can think of them literally as electrical wires that carry pulses of information from one object to the next.
- Wires connect the output Port from one Node to the input Port of another node.
- You create a Wire using the mouse left-clicking on an output Port and dragging with the mouse button held down, then connect to the input port of another node. Wires appear as dashed while being dragged and solid lines when successfully connected.
- To disconnect a Wire, left-click on the output Node and pull the Wire away.
Ports
-
Ports are the light rectangular areas on Nodes, they are the receptors for Wires. Information flows through the Ports from left to right. a. Inputs Ports are on the left side of the Node. b. Outputs Ports are on the right side of the Node.
-
Ports are expecting to receive certain types of data, for example a Node might work on Point objects or Line objects. Try to connect like outputs to like inputs (XYZ->XYZ for example). Passing a Line object into the input Port of a Node that is expecting a Point will result in an error.
-
You can tell you what a specific Node is expecting to receive or to return from the text label. If the name is cut off, simply hover over the port and a tooltip will appear.
Program Flow
Workspaces have a Program Flow that is represents where to start program execution, what to do in the middle and how to know when program execution is complete. When you press “Run” Dynamo executes the visual program according to the established Program Flow.
Directionality of Execution
- Typically Dynamo visual programs are executed from left to right and you can read the program that way to understand the Program Flow.
- There are some exceptions as you get into advanced topics like recursion, but for the purposes of this class simply read from left to right.
Custom Nodes
- You can create your own reusable Nodes in Dynamo without programming. These Nodes can be used in the current Workspace or in other Workspaces on your machine. You can also share these Nodes with others. Create new nodes from File>New Custom Node or by selecting existing nodes in the workspace and in Edit>Create Node From Selection (or right click in the canvas). Give the node a name and a category (selecting from the pulldown or by entering a new name. Notice the background color gets lighter when you are editing a user-created node.
- Custom Nodes appear in the Node List like the other nodes. You can double click to edit these nodes at any time or by selecting their name from the View menu pulldown.
- Custom Nodes are graphically distinguished from other Nodes by looking like a stack of nodes. When you see a node with a several more underneath, it is an indication you can double-click on it to edit the contents.
- You can share nodes you create with other colleagues by using the Save-as command under Menu. They can open the .dyn file you give them and Dynamo will import the node into the local definitions directory.
- Custom Nodes can be nested inside of themselves to create recursive functionality, such as Fibonacci sequences or fractals.
Workflow The active environment that will be executed. The aggregation of the active workspace, python scripts and all dependent user-created nodes.
Looking for help with using the Dynamo application? Try dynamobim.org.
- Dynamo 2.0 Language Changes Explained
- How Replication and Replication Guide work: Part 1
- How Replication and Replication Guide work: Part 2
- How Replication and Replication Guide work: Part 3