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

**URL:** <https://forum.dynamobim.com/t/how-do-i-run-a-dynamo-script-from-an-external-python-script/90146>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [May 30, 2023, 1:05am UTC](https://forum.dynamobim.com/t/how-do-i-run-a-dynamo-script-from-an-external-python-script/90146 "2023-05-30T01:05:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![merty009](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@merty009](https://forum.dynamobim.com/u/merty009)\
**Post date:** [May 30, 2023, 1:05am UTC](https://forum.dynamobim.com/t/how-do-i-run-a-dynamo-script-from-an-external-python-script/90146/1 "2023-05-30T01:05:50Z")

</div>

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](https://discourse.pyrevitlabs.io/), 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

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [June 5, 2023, 9:23pm UTC](https://forum.dynamobim.com/t/how-do-i-run-a-dynamo-script-from-an-external-python-script/90146/2 "2023-06-05T21:23:40Z")

</div>

Hello @merty009 and welcome !

See these topics

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

or this article (use the translation button)

> **[\[Dynamo += Python\] Lancer des Scripts hors Dynamo](https://voltadynabim.blogspot.com/2021/09/dynamo-python-lancer-un-script-hors.html)**
>
> Blog sur le BIM, du Python et d'la Dynamo appliqués aux électrons

---

<div class="post-metadata">

**Author:** ![J\_Sanford](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@J\_Sanford](https://forum.dynamobim.com/u/J_Sanford)\
**Post date:** [June 12, 2023, 5:32pm UTC](https://forum.dynamobim.com/t/how-do-i-run-a-dynamo-script-from-an-external-python-script/90146/3 "2023-06-12T17:32:56Z")

</div>

Use a plugin. [NonicaTab](https://nonica.io/) and [Orkestra](https://www.orkestra.online/) 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](https://discourse.pyrevitlabs.io/).
