Run a Script with a Ribbon Toolbar Button

#1

I’m trying to deploy a Revit add-in to my firm that would create a toolbar to run productivity tools that have been collected/modified/created from macros and dynamo scripts. I’ve been able to make buttons thanks to @Konrad_K_Sobon 's wonderful archi-lab tutorial, but I haven’t found a method to run scripts. I’ve looked into the Dyno Browser, but I’d rather not install (and manage) another add-in to everyone’s Revit just to get buttons on a toolbar, especially since I don’t think I’d be able to add buttons to an existing ribbon tab.

So I’m wondering if anyone has been able to figure out the missing link? It looks like Dyno’s buttons run the scripts through Dyno browser, but maybe there’s a way make a button run scripts from the Dynamo Player in a similar fashion?

Thanks for all thoughts…

#2

So you want Dynamo Player?

#3

if you manage Dyno browser and link it to a server. it will be managed for everyone

#4

Problem is this: Dyno Tools go into its own tab, my tools go into my tab, but I need all the tools to go into a single tab.

Clipboard03

Other problem is I don’t want Dyno on every machine. Since Dyno has a similar function to the Dynamo Player, I thought a someone might have figured out a similar method that I can fully customize.

Dynamo Player on its own isn’t as user friendly as I need it to be. I need to get as close as I can to an “easy button”.

#5

Can you elaborate?

#6

Yes, running scripts from the player requires several steps, opening the player, navigating to the proper folder, scrolling through a list and finding the proper script based on an abbreviated description before running. All this requires the user to go through several steps to actively seek out specific items when most of them don’t know what they’re looking for.

With a toolbar, I can group icons in a logical order and tell users to push these buttons to perform tasks x, y and z. I can put solutions right in front of them instead of training them on the process of finding solutions to problems they may not be aware they have.

2 Likes
#7

@david.burow this is because you have multiple button files?
or your button file isnt set up correctly… can you post your button file here ?

Also check the path(s) which you selected in Dyno Browser

#8

It’s multiple button files. I have buttons to run non-dynamo add-ins as well as Dyno buttons. If I give them both the same tab name, one of the add-ins fails to load.

Further research has learned me that the Dynamo Player is its own add-in, and you can’t run two add-ins simultaneously. Dyno’s buttons work because it is a Dynamo Player.