Dynamo for BIM Automation: The Complete Guide

Dynamo for BIM Automation: The Complete Guide

The first Dynamo graph I ever built did something so small that I am almost embarrassed to describe it. It read a column of numbers from a spreadsheet and wrote them into a parameter on a set of rooms. That was all. And yet, as I watched the values appear in the model one by one, I experienced something I had not felt since I first saw a schedule update itself: the sense that the computer could be given a rule and could be trusted to keep it. I had written no code. I had connected a few boxes with lines. The boxes were called nodes, and each did one simple thing: read a file, select elements, get a value, set a value. The lines showed how data flowed from one box to the next. The whole thing was readable, almost like a diagram of the task itself.

That readability is the point of Dynamo, the visual programming environment that works with Revit and, as a standalone program, with geometry and data on their own. It is open source, developed by a community with Autodesk’s sponsorship, and shipped as part of Revit. For BIM professionals who are not programmers, it is often the first step from clicking to automating. For those who are, it is a convenient way to prototype and share. It handles two broad kinds of work: data workflows (reading, transforming and writing information in the model and in files) and geometry workflows (generating and manipulating forms). Its limits are equally clear: large graphs get unwieldy, versions and packages can break and a visual program is still a program that needs testing and ownership.

This guide explains Dynamo for BIM automation. It covers what Dynamo is and how it relates to Revit, the building blocks (nodes, wires, lists, lacing, groups, custom nodes, code blocks and Python), a walk-through of a typical data workflow, good graph habits, sharing and running graphs (including Dynamo Player), version and package compatibility (including the move to .NET 10 in Dynamo 4.x), testing and governance, when to choose other tools and the mistakes to avoid. It supports BIM Automation: The Complete Guide and complements Computational BIM: Getting Started with Grasshopper and Visual Programming and Python for BIM Professionals: Automation and Data Processing. Dynamo changes your model. Work on copies, keep backups and verify results. Details vary by version; check the Dynamo documentation for yours.


The Short Answer

Anatomy of a Dynamo workflow

StageWhat happens
InputsSelections, parameters, file paths
FilterSelect and clean the elements
ProcessCompute, map and transform data
ActSet parameters, create elements, export
CheckVerify, report and log

In one sentence:

Dynamo lets you build repeatable data and geometry workflows by connecting nodes; keep graphs small, readable and tested, and treat them as software.


What Dynamo Is

AspectNotes
Visual programmingYou build programs by placing nodes on a canvas and connecting their outputs to inputs
Open sourceDeveloped in the open; code and issues are public
Revit integrationDynamo for Revit adds nodes that select, read, write and create Revit elements; it ships with Revit
Standalone useDynamo can run without Revit for general data and geometry tasks
PackagesA package manager distributes community and commercial node libraries
LanguagesA visual graph, a text-based language for code blocks, and Python nodes
Current generationDynamo 4.x runs on the .NET 10 runtime. A published review reports that Dynamo 4.0.2 runs on .NET 10 with Revit 2027, with much faster geometry operations in complex parametric workflows

Dynamo sits on the second rung of the automation ladder: more flexible than native features, more accessible than code. See BIM Automation: The Complete Guide.


The Building Blocks

Nodes and Wires

A node does one job and has inputs and outputs. A wire carries data from an output to an input. A graph is a network of nodes. Data flows left to right.

Node typeExamples
Input nodesNumber, string, boolean, file path, selection
Revit selection nodesSelect model element, all elements of category, all elements of type
Parameter nodesGet parameter value by name; set parameter value by name
List nodesFilter, sort, group, transpose, flatten, take, join
Math and logic nodesArithmetic, comparison, conditions
String nodesConcatenate, replace, split, format
File nodesRead and write spreadsheets, text and data files
Geometry nodesPoints, curves, surfaces, solids and operations
Custom nodesReusable groups packaged as one node
Watch nodesShow data at any point: your main debugging tool

Lists and Lacing

Dynamo works with lists. If you connect a list of 100 doors to a node that expects one door, Dynamo applies the node to each, according to lacing rules that determine how lists of different lengths combine (shortest, longest, cross product). Lacing and list levels are the most common source of confusion; learn them early, use Watch nodes to see list structure and keep lists flat where you can.

Code Blocks

A code block lets you write short text-based expressions using Dynamo’s own language, often faster than placing many nodes. A simple example creates a range of numbers or defines a point:

0..10..2;
Point.ByCoordinates(0, 0, 0);

Use code blocks for small calculations; do not bury important logic in dense, uncommented expressions.

Python Nodes

For logic that is awkward visually (complex loops, string handling, API access), Dynamo offers Python script nodes. According to Dynamo’s documentation for the 4.x line, new Python nodes start with a newer Python engine, and packages built for older Dynamo versions are not guaranteed to work in 4.x. Python inside Dynamo is the bridge to the next rung. See Python for BIM Professionals: Automation and Data Processing and Revit API Programming: The Complete Beginner’s Guide.

Groups, Notes and Custom Nodes

ElementUse
GroupsColored boxes with titles that organize a graph into steps
NotesText on the canvas explaining intent, inputs and assumptions
Custom nodesPackage repeated logic as a reusable node with documented inputs and outputs

Good graphs read like a recipe: groups named “1 Inputs”, “2 Filter”, “3 Compute”, “4 Write”, “5 Report”.


A Walk-Through: Writing Data From a Spreadsheet to Parameters

A typical, valuable first graph. (Fictional example for illustration.) Task: a spreadsheet lists door marks and fire ratings; write the fire rating into each door in the model.

StepNodes and actions
1. InputsA file path node pointing to the spreadsheet; a read node returning rows; a parameter name string such as “Fire Rating”
2. Get doorsA node that collects all elements of the Doors category in the active document, excluding types
3. Get keysFor each door, get the “Mark” parameter value
4. MatchBuild a dictionary or lookup from the spreadsheet (mark to rating); for each door mark, look up the rating; handle marks not found
5. Check before writingCount doors, count matches, list missing marks; stop if the numbers are wrong
6. WriteSet the parameter value on each door; note that writing happens inside a model change that Revit manages
7. ReportOutput a list of changed doors, old and new values, and any exceptions to a file
8. VerifyOpen a schedule in Revit; compare with the spreadsheet

Lessons From This Example

LessonWhy
Read-only firstBuild and test the “read and match” steps before enabling the “write” step
Add a safety switchA boolean input that must be true for writing to occur
Always log changesOld and new values
Handle exceptionsMissing keys, duplicates, empty cells
Test on a copyAlways

Common Dynamo Tasks in BIM

TaskApproach
Parameter transferBetween elements, from linked models, from spreadsheets or to spreadsheets
RenumberingSequential or rule-based marks, room numbers; also check the native rule-based numbering feature in current Revit
Batch view and sheet creationFrom lists of levels, areas or names, with templates
Room and space dataCopy data from linked architectural rooms to MEP spaces
Model checksFind elements missing a parameter or with invalid values; report
Clean-upFind unused families, unnamed elements, duplicate marks
PlacementPlace families at points from data (for example sprinklers at grid positions)
Geometry generationParametric façades, louvers, patterned elements
Data exportPrepare tables for analysis, cost or carbon. See BIM Data Analytics: Dashboards, KPIs, and Automated Reporting
Quantity workflowsExtract and compute quantities beyond schedules

Check native features first: some tasks formerly requiring graphs (such as numbering) are now built into Revit. See Autodesk Revit: The Complete Guide for BIM Professionals.


Good Graph Habits

HabitWhy
Plan before wiringWrite the steps in words first
Left to right, top to bottomReadability
Group and labelEach group has one purpose
AnnotateNotes for inputs, assumptions, outputs
Name inputs clearly“Spreadsheet path”, “Parameter name”, “Write enabled”
Keep graphs shortSplit big graphs into custom nodes or several graphs
Avoid spaghettiWires crossing everywhere signal poor structure
Use Watch nodesInspect intermediate data
Handle empty and missing dataDefensive design
Separate reading from writingSafer
Include a log or reportEvidence of what happened
Version your graphsFile names or a repository, with change notes
Test with edge casesEmpty selections, duplicates, odd characters
Document useA one-page guide: purpose, inputs, steps, outputs, limits

Running and Sharing Graphs

OptionNotes
Open and run in DynamoFor authors and power users
Dynamo PlayerA way to run graphs from a simple interface without opening them, exposing selected inputs; useful for sharing tools with colleagues who are not graph authors
Shared network libraryA controlled folder of approved graphs, with a catalog
PackagesPublish custom nodes to the package manager, or distribute privately
Automation scripts and batch runsSome workflows can run graphs unattended; check support for your version
TrainingShort sessions on running graphs safely

For team use, provide a library with a register: name, purpose, owner, version, supported Revit and Dynamo versions, last tested date.


Versions, Packages and Upgrades

Version management is where Dynamo workflows most often fail.

IssueExplanation
Dynamo versions are tied to Revit versionsEach Revit release ships with a Dynamo version; Revit 2027 is reported to ship with Dynamo 4.x on .NET 10
Runtime changesDynamo 4.x runs on .NET 10; packages built for 2.x (older .NET Framework) and 3.x (.NET 8) are not guaranteed to work in 4.x, and obsolete API items were removed in 4.0, according to Dynamo’s migration notes
Package compatibilityCommunity packages need updates by their authors; check before upgrading; best practice for authors is to multi-target runtimes
Python changesNew Python nodes use a newer engine; old Python code may need updates
Graph migrationOpening old graphs in new versions may produce warnings or missing nodes
Revit API changesNode behavior can depend on API changes between Revit releases

An Upgrade Routine

StepPractice
1. InventoryList graphs, packages and Python nodes in use
2. Check package supportFor the new Dynamo and Revit versions
3. Test on a test machineRun graphs on representative models
4. Fix and updateReplace unsupported nodes; update Python
5. Compare resultsBefore and after outputs
6. ReleaseUpdate the library and register
7. Do not upgrade Revit mid-projectUnless tested

Testing and Governance

PracticeWhy
Run on copiesProtect live models
Compare before and afterSchedules, exports or model comparisons
Use test modelsA standard model with known conditions
Add checks inside graphsCounts and sanity checks that stop on errors
Log changesOld and new values
Owner and registerResponsibility and findability
Peer reviewFor graphs that write data
SecurityReview packages and Python code from external sources before use
Access controlWho may run write graphs on production models?
RetirementRemove graphs that are no longer valid

See BIM Execution Plan (BEP): How to Create and Implement One for putting automation rules into project documents.


When to Choose Something Else

SituationAlternative
The tool has a native featureUse it
The task needs heavy data processing or external systemsPython scripts. See Python for BIM Professionals: Automation and Data Processing
You need a polished tool for many usersAn add-in built on the API. See Revit API Programming: The Complete Beginner’s Guide
Heavy computational geometry with design explorationGrasshopper, possibly with a Revit connection. See Computational BIM: Getting Started with Grasshopper and Visual Programming
Work on IFC files without authoring softwareIFC libraries. See IFC Automation Using Python and IfcOpenShell
Continuous checkingPipelines and checking tools. See Automated BIM Model Checking and Data Validation

Common Mistakes

  1. Running graphs on live models without copies and backups.
  2. Writing before verifying what will be written.
  3. Giant, unlabeled graphs.
  4. Ignoring lists, lacing and list levels.
  5. No handling of empty or duplicate data.
  6. No logs or reports.
  7. Using unvetted packages or Python code.
  8. Upgrading Revit and Dynamo without testing graphs.
  9. No owner, register or documentation.
  10. Rebuilding native features as graphs.
  11. Hard-coded paths and names.
  12. No test models.

See also Common BIM Mistakes Beginners Should Avoid.


A Short Checklist

  1. Have we checked native features before building a graph?
  2. Is the task clear in words before we wire it?
  3. Is the graph grouped, labeled and annotated, with clearly named inputs?
  4. Do we read and verify before writing, with a safety switch?
  5. Do we handle missing, empty and duplicate data?
  6. Do we log old and new values?
  7. Do we test on copies and test models and compare results?
  8. Are packages and Python code vetted, and versions recorded?
  9. Does each graph have an owner, documentation and register entry?
  10. Do we test graphs before every software upgrade?

Frequently Asked Questions

What is Dynamo?

An open-source visual programming environment that works with Revit and on its own, used to automate data and geometry tasks.

Do I need to know how to code to use Dynamo?

No for basic graphs, but understanding logic, lists and data is essential, and Python or code blocks extend what you can do.

Is Dynamo included with Revit?

Dynamo for Revit ships with Revit; check the version included with yours.

What is Dynamo Player?

A way to run graphs from a simple interface, so colleagues can use a tool without opening or editing the graph.

Why did my old graph stop working?

Likely due to version changes: new Dynamo and Revit versions, runtime changes, packages not updated or API changes. Test and update.

Is Dynamo safe?

It is safe when used with discipline: copies, backups, checks and logs. A graph that writes data can change thousands of elements in seconds.

Should I use Dynamo or Python?

Use Dynamo for accessible, visual workflows; Python for heavier data processing, version control and testing; add-ins for team-wide tools.

How do I learn Dynamo?

Start with a simple read-only graph, then a small write task on a copy, learn lists and lacing and build a library of small, documented graphs.


Final Thoughts

I teach Dynamo with a rule I call “the two-minute explanation.” Every graph a student builds must be explainable, by its author, to a colleague in two minutes, looking only at the canvas. If the author cannot, the graph is too big, too tangled or too clever. It sounds like a stylistic preference. It is actually a maintenance rule. Graphs live far longer than anyone expects, and the person who has to fix one is usually not the person who built it.

That is the discipline that turns Dynamo from a toy into a tool: small graphs, clear groups, safe writes, honest logs, vetted packages and a test before every upgrade. Use it for the repetitive tasks that eat your week, share it through a controlled library and keep climbing the ladder when the task outgrows the graph.

Where to go next: for the context, read BIM Automation: The Complete Guide. For the next rungs, continue with Python for BIM Professionals: Automation and Data Processing and Revit API Programming: The Complete Beginner’s Guide, and for geometry, Computational BIM: Getting Started with Grasshopper and Visual Programming.

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded TheBIMAuthority.com to share practical guidance on BIM workflows, information management, industry standards, digital construction technologies and best practices for AEC professionals.