# Sequence of dynamo scripts

**URL:** <https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782>\
**Category:** Packages\
**Tags:** dynamo\
**Created:** [October 20, 2017, 8:45am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782 "2017-10-20T08:45:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 8:45am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/1 "2017-10-20T08:45:45Z")

</div>

Hi!  
I would like to organise and run a sequence of scrips in one click. I have tried DynamoPlayer and Dyno but could not find a way to do it. Is it possible to run a sequence with any other plugin? I have been looking at other topics here at the forum, but they were quite old so maybe there have been some development since then 🙂 If anyone have some ideas I am more than interested!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 20, 2017, 9:05am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/2 "2017-10-20T09:05:08Z")

</div>

See this maybe:

> [@Multiple Dialogue boxes for more awesomeness!](https://forum.dynamobim.com/t/multiple-dialogue-boxes-for-more-awesomeness/14114):
>
> I used a pass-thru node to wait for the first dialogue box to close and to stage its inputs! totally awesome!

---

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 9:11am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/3 "2017-10-20T09:11:38Z")

</div>

Ah, that seems cool. But I have 40 scripts, and if I would merge them the final script would be massive. I would like to start the scripts without opening dynamo, and in one click start a sequence. For example: I click on a header “script 1-5” and then script 1 starts. When that is finished script 2 starts and so on.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 20, 2017, 9:20am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/4 "2017-10-20T09:20:59Z")

</div>

I would think of a _Passthrough_ or _WaitFor_ node, but it’s hard to tell what’s appropriate without any illustration…

---

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 10:16am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/5 "2017-10-20T10:16:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/30436a7d63fd28dbf2ff261fbc41c31812bb0412.png)

This is what I want to achieve 🙂

---

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 10:21am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/6 "2017-10-20T10:21:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a47c6df41db3ac0c52e8e647389c4ac9282eaa21.png)

I tries Dyno plugin. I managed to organise my scripts, but I would like to run all my scrips under each header in one click, in a sequence. By clicking on L01-L03 header I want to start L01, when that one is finished I want to start L02 automatically… and so on

---

<div class="post-metadata">

**Author:** ![Tom\_James](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_james/32/22277_2.png) [@Tom\_James](https://forum.dynamobim.com/u/Tom_James)\
**Post date:** [October 20, 2017, 10:35am UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/7 "2017-10-20T10:35:10Z")

</div>

Could these posts be of any use?

> [@Running multiple scripts in sequence](https://forum.dynamobim.com/t/running-multiple-scripts-in-sequence/2486/8):
>
> @Daniel_Heijting - In theory it is possible, but DynamoAutomation wasn’t really designed for that. Currently, it would mean creating a very long master graph that would have to restart Revit for every script you want to run on a model (plus, you’d have to save the model at the end of each script). However, since the package is based on Revit journals it should be possible to add a new node that would keep the model open and just repeatedly launch the Dynamo addin with a different script. I have…

> [@Run multiple dynamo scripts in order](https://forum.dynamobim.com/t/run-multiple-dynamo-scripts-in-order/5517/6):
>
> This feature will be added in future releases

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/05dca05a9b2d607e35a0d0e9f589cc072ba9446b.jpeg "RTCEUR 2015 Teaser: Batch processing with Dynamo") ](https://www.youtube.com/watch?v=vu4i-gEzzUo)

---

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 3:24pm UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/8 "2017-10-20T15:24:19Z")

</div>

have read that thread and I think I want something like this: [Run multiple dynamo scripts in order](https://forum.dynamobim.com/t/run-multiple-dynamo-scripts-in-order/5517/4?u=sofmal)

Does anyone know hos this works??

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 20, 2017, 3:48pm UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/9 "2017-10-20T15:48:52Z")

</div>

No need to insist this way, this forum is a community where everyone is invited to make efforts to enrich the common knowledge. Please try to see what you can find using Google, the post you keep on referring to has some useful keywords that can help to find related threads, for instance:

> **[create your own tab and buttons in revit](http://archi-lab.net/create-your-own-tab-and-buttons-in-revit/)**
>
> In the last few posts I have outlined in great detail how to make a simple Revit Add-in using the IExternalCommand implementation. Doing that is a great and really fast way of adding new tools to R…

  

> **[building revit plug-ins with visual studio: part one](http://archi-lab.net/building-revit-plug-ins-with-visual-studio-part-one/)**
>
> I am actually going to teach this to a colleague of mine that will be visiting our office next week so I figured that if I write it down as a post, then I will have a great post tutorial material t…

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 20, 2017, 3:51pm UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/10 "2017-10-20T15:51:21Z")

</div>

See if you can get your current scripts to work as a single node (this isn’t always as easy as it sounds with large complex graphs). If they all work independently as single nodes then you should be able to string them together in a graph.

---

<div class="post-metadata">

**Author:** ![sofmal](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sofmal](https://forum.dynamobim.com/u/sofmal)\
**Post date:** [October 20, 2017, 3:55pm UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/11 "2017-10-20T15:55:23Z")

</div>

Wow, thanks a lot! I will definitely read this 😃

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 20, 2017, 6:10pm UTC](https://forum.dynamobim.com/t/sequence-of-dynamo-scripts/15782/12 "2017-10-20T18:10:04Z")

</div>

It is quite possible to move graph one into graph two intograph 3. And actually very easy if you use node to code functions. Give it a shot. At the Beyond AEC hackathon we assembled like 12 graphs into one at the end by just copy pasting code block functions and minimal custom nodes.
