Use
Dynamo to create scripts that automate repetitive tasks, explore complex design problems, and streamline BIM workflows in a
Revit model.
By using
Dynamo to create a script that meets your specific needs, you can save hours of work. You may be able to find and use a script that others have created, or use an existing script as a starting point to create your own.
For example,
Dynamo provides sample
Revit scripts that do the following (located in
%PROGRAMDATA%\Dynamo\Dynamo Revit\<release>\Samples\<language>\Revit):
- Place adaptive components relative to selected elements in a
Revit model
- Identify areas within a tolerance, and override colors in the active view to communicate the tolerance
- Use coordinates and line lengths to generate a structurally framed and floored tower
- Import a solid form into
Revit
- Place a number of solar panels and write unique numbers to their Mark parameter
In addition,
Dynamo Player provides the following scripts (located in
%PROGRAMDATA%\Dynamo\Dynamo Revit\<release>\Samples\<language>\Revit\DynamoPlayer):
- Add a specified number of levels above a selected level
- Calculate room occupancy load
- Calculate the total length of selected lines
- Delete mark values from MEP content
- Select all elements not keynoted in the active view
- Select all taggable elements not tagged in the active view
- Update sheet names to uppercase
Explore these scripts to determine whether they are useful to you or can be modified to meet your specific modeling and documentation needs. Study the scripts to learn how to use
Dynamo to get the most out of your
Revit building information model.
Use a script template to get started
Before creating a script, download
this script template to use as a guide. It describes and demonstrates best practices, such as the following:
- Use groups (colored rectangles), labels, and notes to organize and annotate the script.
- Organize inputs, variables, outputs, and functions as described in the template.
For more best practices, see the
Graphing Strategies page of the Dynamo Primer.
Dynamo learning resources
Dynamo offers many resources to help you get started.
- DynamoPrimer.com introduces you to
Dynamo scripting, describing important concepts and demonstrating techniques with full examples.
- Dynamo for Revit is a chapter of the Dynamo Primer that focuses on using
Dynamo with
Revit models.
- DynamoBim.org/learn provides videos, tutorials, examples, and sample data sets to explore.
- The
Dynamo help center allows you to search for answers to your scripting questions.
- The
Dynamo forum connects you with the community to learn from your peers.