Python for Dynamo Resource

If you are curious about using Python inside of Dynamo, but don’t know where to start looking, then come check out https://github.com/Amoursol/dynamoPython - a public resource for the collection of copy and pastable and heavily annotated Python scripts for use inside of Dynamo.

It covers the following topics to date with over 40 scripts.

  • Concepts
  • Helpers
  • Revit API
  • Workflow

A big shout-out to the Dynamo community members who have contributed (@adam_bear1, @john_pierson, @oliver.green, @Radu_Gidei, @Brendan_Cassidy and more) and if you wish to add to this resource then please fork and contribute!

Every single script should be simply able to be copied and pasted into a Python node inside of Dynamo and ran (Providing you link up the correct input ports if there are any) directly from the Github Repository.

EXAMPLE

Navigate to https://github.com/Amoursol/dynamoPython/blob/master/revitAPI/filteredElementCollectorAllElementsAtLevel.py, copy and paste the code into a python node and simply plug in a (Singular) level and watch the magic!

Please note: If there are any issues, please comment on the Github repository itself under the Issues Register (https://github.com/Amoursol/dynamoPython/issues). I’m currently aware of some newline errors and will be amending when possible. If you so wish - take those as a great opportunity to learn and figure out how to fix them yourselves! :slight_smile:

19 Likes

If you have any difficulty or want to learn python search more about it and try to work on the thing which you learn