How do I run a Dynamo script from an external Python script?

Hi, I am bit new to Dynamo so I am not even sure if this is possible, but I am currently stuck on a problem where I use Dynamo to change the view of Revit to view different design options so I can perform renders on different variations of a project (basically just rendering different materials for different objects). I found that it was very difficult to get Design Options to switch the view using PyRevit, so I just went to use Design Script in Dynamo as it was able to change the view (by which I mean that if I had like half windows and full windows for a section, it will switch to view half windows for one part, then switch to view full windows the next time around).

TLDR; I just need an external python script to start the dynamo script

Hello @merty009 and welcome !

See these topics

https://forum.dynamobim.com/search?expanded=true&q=RevitDynamoModel.ForceRun()

or this article (use the translation button)

Use a plugin. NonicaTab and Orkestra will both launch background isntances of Dynamo from a toolbar. both have free versions. I prefer Orkestra for its additional features such as node and code snippets, as well as OkPy, a pretty slick little integration of a Python Shell in Revit. Simpler and easier to use than Pyrevit.

1 Like