# Dynamo Player - Task Dialog

**URL:** <https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728>\
**Category:** Uncategorized\
**Created:** [August 3, 2017, 8:32pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728 "2017-08-03T20:32:32Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 3, 2017, 8:32pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/1 "2017-08-03T20:32:32Z")

</div>

Is there a way to run a script through Dynamo player that pops up a dialog box that the user can type a value into. The value would be pushed into dynamo (possibly python) to allow the script to finish

---

<div class="post-metadata">

**Author:** ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)\
**Post date:** [August 3, 2017, 8:33pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/2 "2017-08-03T20:33:37Z")

</div>

Try using the Datashapes package.

---

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 3, 2017, 8:35pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/3 "2017-08-03T20:35:29Z")

</div>

I’m really trying to avoid using packages - this is for an office wide workflow implementation. Single click is the easiest for non dynamo users.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [August 3, 2017, 8:37pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/4 "2017-08-03T20:37:33Z")

</div>

Use datashapes or code your own via python are the only options at the moment for revit 2017

For revit 2018 and if you are on subscription get 2018.1 and use the new dynamo player, note it will not do excatly what you want but a half way house.

---

<div class="post-metadata">

**Author:** ![4bimfercesp](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@4bimfercesp](https://forum.dynamobim.com/u/4bimfercesp)\
**Post date:** [August 3, 2017, 8:41pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/5 "2017-08-03T20:41:21Z")

</div>

Sorry but you cannot do this without data shapes…

---

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 3, 2017, 8:48pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/6 "2017-08-03T20:48:04Z")

</div>

Ok, I will try data-shapes.

Has anyone tried using python directly. I am able to bring up a task dialog box in Revit, but I’m not sure how to incorporate fields for text or how to push back into dynamo.

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

---

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [August 3, 2017, 8:59pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/7 "2017-08-03T20:59:35Z")

</div>

Hi, you may be able to specify some predetermined inputs withing Dynamo and feed them into some deconstructed python scripting from #springnodes for drop-down list .etc Would this be ok to do as a workflow @Dimitar_Venkov ?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/375450702020cefea14be1df4f1929d874c54f26.png)

---

<div class="post-metadata">

**Author:** ![4bimfercesp](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@4bimfercesp](https://forum.dynamobim.com/u/4bimfercesp)\
**Post date:** [August 3, 2017, 9:00pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/8 "2017-08-03T21:00:02Z")

</div>

Look at data shapes as in a way based on same principle but better…check on forum i think i some post years ago. But data shape is your answer.

---

<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:** [August 3, 2017, 10:02pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/9 "2017-08-03T22:02:42Z")

</div>

Datashapes is the way to go. Install it on the network and set users’ package path to that location. 🙂

---

<div class="post-metadata">

**Author:** ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)\
**Post date:** [August 4, 2017, 10:08am UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/10 "2017-08-04T10:08:32Z")

</div>

As @jacob.small suggested. Put the package library on a network location and set the path in the manage package paths settings. This is what we do at our firm also.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [August 4, 2017, 10:16am UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/11 "2017-08-04T10:16:19Z")

</div>

Here is an example I copied and pasted from this site: [http://www.voidspace.org.uk/ironpython/winforms/part5.shtml](http://www.voidspace.org.uk/ironpython/winforms/part5.shtml)

```
import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')

from System.Drawing import Point
from System.Windows.Forms import Application, Button, Form, Label, TextBox

class SimpleTextBoxForm(Form):
    def __init__ (self):
        self.Text = "Simple TextBox Example"

        self.Width = 300
        self.Height = 200

        self.label = Label()
        self.label.Text = "Nothing So Far"
        self.label.Location = Point(25, 25)
        self.label.Height = 25
        self.label.Width = 250

        self.textbox = TextBox()
        self.textbox.Text = "The Default Text"
        self.textbox.Location = Point(25, 75)
        self.textbox.Width = 150

        self.button1 = Button()
        self.button1.Text = 'Press Me'
        self.button1.Location = Point(25, 125)
        self.button1.Click += self.update

        self.button2 = Button()
        self.button2.Text = 'Reset'
        self.button2.Location = Point(125, 125)
        self.button2.Click += self.reset

        self.AcceptButton = self.button1
        self.CancelButton = self.button2

        self.Controls.Add(self.label)
        self.Controls.Add(self.textbox)
        self.Controls.Add(self.button1)
        self.Controls.Add(self.button2)

    def update(self, sender, event):
        self.label.Text = self.textbox.Text

    def reset(self, sender, event):
        self.label.Text = "Nothing So Far"
        self.textbox.Text = "The Default Text"

form = SimpleTextBoxForm()
form.ShowDialog()

```

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/8/6/866bf079f65f479bfbd4960cbdf37d231e60cba3.png)

---

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 8, 2017, 2:26pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/12 "2017-08-08T14:26:09Z")

</div>

Thanks all,  
I tried Data-Shapes and it works great! I appreciate all of the responses.

---

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 8, 2017, 2:30pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/13 "2017-08-08T14:30:59Z")

</div>

Thanks for this. I am going to go ahead with Data-shapes since its already done. I was unaware that we could set the path for packages, which is very helpful as well.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [August 8, 2017, 3:16pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/14 "2017-08-08T15:16:46Z")

</div>

@Pierre_Roberson, sure you can use an external package, but if you don’t want to create a dependency, you can always just copy the Python node out of the custom node, and paste that directly on canvas. That will give you all of the functionality that Data Shapes offers, but no need to have it installed. Of course that will also result in you missing out on any future fixes or updates.

---

<div class="post-metadata">

**Author:** ![Pierre\_Roberson](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@Pierre\_Roberson](https://forum.dynamobim.com/u/Pierre_Roberson)\
**Post date:** [August 8, 2017, 5:17pm UTC](https://forum.dynamobim.com/t/dynamo-player-task-dialog/13728/15 "2017-08-08T17:17:09Z")

</div>

Thanks Konrad
