How to take an input into a Ctype

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

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. :grinning:

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

3 Likes