How to Create a Ribbon Panel and Button in Revit for a Dynamo Script?

Hello,

I am developing a Revit add-in using Visual Studio with the .NET Framework. My goal is to create a custom ribbon panel with a button that will run a specific Dynamo script. I have some experience with the Revit API and Dynamo, but I am unsure how to implement this correctly.

You should take a look into relay add-in by find with key words: ‘Relay’

1 Like

As already been indicated Relay for revit is a way to do it, plus John has the code open sourced. But i would say if you are still got to develop the scripts in dynamo i would say develop the items natively in revit.

Doing this will also mean your not relying on packages or dynamo which can increase run times.

Just something to seriously consider if i was you.

Relay or PyRevit will get your scripts into the Revit ribbon. However, if you are wanting to go to the next level, then the course below is specifically for that purpose. @john_pierson is the instructor. It’s very detailed and a great course for those just starting out on the path you are on. Well worth the cost IMO! He also has several other courses which evolve around Dynamo and Python, which you can bundle and take together.

2 Likes

Am l correct in thinking that PyRevit or indeed Dyno currently do not work within Revit 2025?

Dyno has been out of support for a while now, I believe prorubim stopped releasing new builds.

Pyrevit has work in progress builds but has not released a stable build for revit 2025.

Personally, i think that it looks like people have struggled with the dynamo script function in the wip builds and the main developers working on it aren’t focusing on that part vs the Python support more specifically.

Try nonica or relay.

1 Like