Streamlining Dynamo setup for new users?

Hey y’all,

A little background:
I have recently started getting into pyRevit and creating python scripts in lieu of using Dynamo for certain tasks. I’ve found that the process for updating Dynamo packages can be confusing for people who have no experience with Dynamo outside of running the scripts I’ve made for them. So I’m trying to streamline the process as much as possible. PyRevit has been amazing, and is making my scripts much more easily accessible for people. I would like to just convert all of my Dynamo scripts into python so that other people in my company don’t have to worry about updating Dynamo packages anymore. However, for the time being I may be stuck with some of my scripts staying in Dynamo.

I was wondering if anyone has a method in python to install Dynamo packages? I would love if I could just make a button on my toolbar that would update and install any new Dynamo packages that may be needed for people to run my Dynamo scripts.
Or, is there any other way to automate this process for people?

Not sure if this is the correct forum to be posting this on, since it is more of a pyRevit question. But I’m just looking for any solution to help streamline the process of getting Dynamo set up for people who have never used it before, so any advice would be helpful.

Thank you!

You cannot update/delete any package from within dynamo as the package is in memory at this point.

You also cannot update any package even if dynamo has been loaded once within revit. You have to make sure dynamo is not in memory prior to trying to install any package, covers updating of the package then if/as needed.

1 Like

If you’re maintaining a library of packages and you just want them to be updated on user machines, then most people just setup a robo-copy script to batch copy packages from one location to another. You could definitely create a python script to run that same function.

You would still have the normal limitations that @Brendan_Cassidy has mentioned.

1 Like

Yeah, I guess “update” was the wrong term. I didn’t mean I’m updating the packages to a new version, I meant I am updating which packages they have installed.

This is basically what I want to do. So if I just paste the packages from my Dynamo folder to theirs, there shouldn’t be any issues?

Nothing outside of the normal exceptions (permissions, active or locked files, etc.).

Okay great! Thank you!