The new version (2020.2.115) of the Autodesk Steel Connections 2020 Dynamo package introduces a bunch of new Dynamo nodes and capabilities. One of these new features allows Dynamo scripts to load preconfigured connection types from external Revit files, rather than requiring them to be present in the current project.
This capability enables multiple new workflows; for example, imagine sharing a connections library with all your peers across the engineering office, or perhaps using a shared library as a common database between engineers and fabricators, always ensuring the right connection types are used.
This provides greater automation for modeling steel connections in Revit while also saving a lot of users’ time through the reduction of tedious and repetitive work.
Let’s walk through the new Dynamo nodes that support this functionality. There are four of them, and they are grouped under the ConnectionType branch:
The first is called ConnectionType.LoadFromFile. You can use this node to get a connection type from a library (*.RVT) file, using Connection Name and Type Name as inputs.
The ConnectionType.UseCurrentOrLoadFromFilenode is used to load the connection type from the source (library) file—but only if it does not already exist in the target (current) file.
You can use the ConnectionType.LoadOnDemand node to load the connection type from the source (library) file only if it does not already exist in the target (current) file and if it is used by the script to create instances of this connection type (the branch of the script where this node is used).
In addition to the nodes that load connections, there is an additional one used during script configuration. This node is called ConnectionType.ListFromFile, and it is used to get the list of connection types from a given file.
Now let’s try to build a Dynamo script that will load steel connections from a library into the current project:
- First, I will add the File Path node and the ListFromFilenode. I would like to use my final solution with Dynamo Player, so I will need to ensure the File Path node has the “Is Input” option checked.When I run this script, I will get a list (to be precise, a dictionary) of all steel connection types available in the RVT file I selected.
- Next, I am going to extract keys (Connection Names) and their values (Connection Types) from the above dictionary using the following nodes:
- I now have a list of Connection Names and a list of Connection Types. These two lists will be used in the next step as my input parameters.
- As I want to use this script in Dynamo Player, I’d like to generate a report in the Player UI when the script is executed. The Watch node is a common node every Dynamo user will want to use regularly in testing their Dynamo scripts. The function of this node is to simply display the results of any node connected to its input (i.e. the port on the left side).In order to expose the Watch node in Dynamo Player, I need to do two things:
- Check the “Is Output” option.
- Give the node a custom name.
Let’s look at the result in Dynamo Player:
With these new automation capabilities for steel connections, the Autodesk Steel Connections 2020 Dynamo package enables the reuse of preconfigured steel connections with a single click.
For more posts on the automation of structural design, check out these past articles on the Revit blog:
Portal Frame Geometry in Dynamo
Portal Frame with Structural Analysis for Dynamo Package – Part 01
Portal Frame with Structural Analysis for Dynamo Package – Part 02
Learn the Power of Dynamo for Automated Reinforcement Detailing – Part 1
Learn the Power of Dynamo for Automated Reinforcement Detailing – Part 2
Hi Tomasz, Thank you for sharing this information about Dynamo. Can dynamo be used to create work sets and modify view templates? I like to use worksets in a number of view templates however Revit doesn’t allow them to be in a Template/Un-centralized model.