Pyrevit custyom toolbar from Revit 2023 to Revit 2026

OK I am stumped I recently upgraded from Revit 2023 to Revit 2026 and love it. my issue is that my custom toolbars do not work. I have upgraded the scripts so they play just fine from Dynamo, but for some reason it will not run (none of them) using pyrevit for my custom toolbar. It spins for a few seconds then nothing happens.

and as i said if i open the dynamo file in dynamo and hit the run it works just fine.

also now they also do not run in 2023 even though I created a new folder link so the dynamo files will not be upgraded.

any help would be great thanks in advance

I found this out and once I set the file to automatic it ran fine what a P.I.T.A lol

1 Like

Indeed. For our custom toolbar we use a single button that opens a menu with a list of the dynamo scripts in a folder, then when running the selected dynamo script the manager script first opens it and checks it is set to automatic run, if not then the manager creates a copy with automatic turned on. The code to turn automatic on looks like this:

    with open(script_path, ‘r’) as f:
        data = json.load(f)
    # Change to Automatic
    if "View" not in data: data["View"] = {}
    if "Dynamo" not in data["View"]: data["View"]["Dynamo"] = {}
    data["View"]["Dynamo"]["RunType"] = "Automatic"
    with open(temp_path, 'w') as f:
        json.dump(data, f)

That way we don’t break everyone’s tools when we are working on scripts.

hey nice to meet you, can you explain how you do?, because i have the same case when im upgrade to revit 2026 and pyrevit 6, i have custom bars, with all the features insed with the pushbutton folder.. but when i click it it nothing happen

like so, i have tried added “script: dynamo_script.dyn” to the bundle.yaml but still no clue why it isnt running.

can you help me?

in the lastest WIP this should be fixed, and you now longer have to worry about automatic/manual for dynamo scripts. Have you tried that?

is it already stable version?

P.I.T.A = pain in the ass lol

Please remember that most of it is built and maintained by volunteers who are doing this in their spare time, often just because they enjoy it or want to give something back to the community. Not everyone working on it is getting paid, so things like bugs, quirks, or slower updates are kind of part of the deal.

It’s also a pretty complex tool sitting on top of an already complex API, so stuff breaking or behaving oddly isn’t always easy to fix quickly. If anything, the fact that it exists and is as powerful as it is comes down to a lot of unpaid effort.

If you’re up for it, contribute and solve the bugs on github.

The current WIP is the first 6+ version I’d myself consider stable enough to be used with the new launcher turned on.