# How to take an input into a Ctype

**URL:** <https://forum.dynamobim.com/t/how-to-take-an-input-into-a-ctype/24617>\
**Category:** Uncategorized\
**Created:** [August 8, 2018, 8:14pm UTC](https://forum.dynamobim.com/t/how-to-take-an-input-into-a-ctype/24617 "2018-08-08T20:14:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 9, 2018, 9:20pm UTC](https://forum.dynamobim.com/t/how-to-take-an-input-into-a-ctype/24617/6 "2018-08-09T21:20:33Z")

</div>

> [@mix](#):
>
> So what is that for?

This is the value I used to define a CommonButton for the dialogue.

> [@mix](#):
>
> but I figure there has to be some reason for your extra code

You can have multiple buttons in your dialogues to be able to influence the progression of your workflow.  
Here is how this can be used. 😀

```
import clr
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *

dataEnteringNode = IN[0]

buttonlist = TaskDialogCommonButtons.None|TaskDialogCommonButtons.Ok|TaskDialogCommonButtons.Yes|TaskDialogCommonButtons.No|TaskDialogCommonButtons.Cancel|TaskDialogCommonButtons.Retry|TaskDialogCommonButtons.Close

result=TaskDialog.Show("Title",dataEnteringNode,buttonlist)

OUT = result

```

![ezgif-4-89d37b5ae4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/0/b00fb7582d767391623b8c22ba13d0c3f9a31c79.gif)

---

_[View the full topic](https://forum.dynamobim.com/t/how-to-take-an-input-into-a-ctype/24617)._
