Dynamo for Revit: Python Scripting

Dynamo for Revit: Python Scripting

Can't find the Dynamo node you need? Python allows you to create powerful custom nodes that extend the functionality of Dynamo and solve your Revit modeling challenges in smarter, faster ways. This course introduces the Python programming language to designers who want to do more with Dynamo. First, learn the basics of Python, including data types, conditionals, and loops, while interacting directly with Dynamo Geometry library. Then find out how to extend the functionality with Dynamo with libraries such as the Revit API. In chapter four, you put your new skills to work. Instructor and BIM expert Jeremy Graham shows how to use Python and the Revit API to filter elements, access parameters, and create custom views.

Note: This course uses Dynamo 2.0.1 and Revit 2019. For best results, it helps to have the same versions of the software.

Topics include:

  • Importing the Dynamo Geometry library
  • Python basics: variables, conditionals, operators, loops, and functions
  • Using and extending Python modules
  • Accessing the Revit API with Python
  • Revit and Dynamo conversions
  • Creating a collector in the Revit API
  • Getting Revit parameters with the Revit API
  • Adjusting elements with the Revit API
  • Creating views with the Revit API


  • 英文名称:Dynamo for Revit: Python Scripting
  • 时长:3小时36分
  • 字幕:英语


  1. Jumping into Python and Dynamo
  2. What you should know
  3. Exercise files
  4. The Python node basics
  5. What is OOP?
  6. Importing the Dynamo library
  7. Defining variables
  8. Numbers
  9. Strings
  10. Working with lists
  11. Making decisions with conditionals
  12. Control with operators
  13. Logical operators
  14. Looping with the for loop
  15. Looping with the while loop
  16. Break and continue
  17. Nested loops
  18. Dictionaries
  19. Try and except
  20. Defining functions
  21. Built-in Python modules
  22. Extending Python modules
  23. Saving our own module
  24. What is IronPython?
  25. Accessing Revit nodes
  26. Importing the Revit API
  27. Working with the Revit API
  28. Revit conversions
  29. Dynamo conversions
  30. Navigating the Revit API
  31. Collecting elements
  32. Creating a collector
  33. Getting Revit parameters
  34. Setting Revit parameters
  35. Creating line-driven elements
  36. Element locations
  37. Adjusting elements
  38. Creating a view
  39. View bounding boxes
  40. Revit API and IronPython types
  41. Next steps