# AttributeError: object 'TaskDialog' has no attribute 'Show'

**URL:** <https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071>\
**Category:** Uncategorized\
**Tags:** dynamo\
**Created:** [December 4, 2023, 1:29pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071 "2023-12-04T13:29:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrl](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mrl](https://forum.dynamobim.com/u/mrl)\
**Post date:** [December 4, 2023, 1:29pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/1 "2023-12-04T13:29:14Z")

</div>

Since today i’m getting an error when i’m running this script in Revit 2023.1  
Is was always working for 100% in Revit 2021, 2022, 2023, ending with a dialog.  
I did no changes for weeks.  
Does anybody know what’s going wrong?

[test pin-palen\_script.dyn](https://forum.dynamobim.com/uploads/short-url/A0FGmaztfQgEQj2pVjqcv6bp4il.dyn) (12,2 KB)

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

```auto
import clr
#add a reference to the Revit UI .dll so we can access the UI Namespace...
clr.AddReference('RevitAPIUI')
#import everything from the UI Namespace...
from Autodesk.Revit.UI import *

#IN Variabele
#hoogtes = IN[0]
msg = "Elementen met Assembly Code 17.XX (paalfunderingen) zijn nu gepinned."

#show the message dialog box...
TaskDialog.Show("Bericht", msg)
#return a result in Dynamo...
OUT = msg

```

UPDATE:  
After re-installing the packages i get another new error. ☹  
Cannot extend an incomplete type ‘MulticastDelegate’.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ead218f87ea284f3d71494e35ee9a4a05e2db2af.png)

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

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [December 4, 2023, 3:21pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/2 "2023-12-04T15:21:12Z")

</div>

I tried your code on Revit 2024 and it works. As far as I can read from warning there might be a problem with Dynamo DLLs. Can you try to re-install Revit?

---

<div class="post-metadata">

**Author:** ![mrl](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mrl](https://forum.dynamobim.com/u/mrl)\
**Post date:** [December 5, 2023, 7:42am UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/3 "2023-12-05T07:42:15Z")

</div>

Sorry, can’t do this. Revit is installed in a Citrix-environment for many users. Revit is not on my C-drive.  
The packages are available via Onedrive in a synchronized folder.  
It always works, but somehow not on my pc.  
Probably its a unique user-settings what’s going wrong.  
I will check my settings again.

---

<div class="post-metadata">

**Author:** ![mrl](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mrl](https://forum.dynamobim.com/u/mrl)\
**Post date:** [December 7, 2023, 8:04pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/4 "2023-12-07T20:04:03Z")

</div>

Update:  
I’ve changed my settings en went back again.  
Still an error. See screenshot.  
I don’t know how to resolve this.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8de1a8e92a58a31a93c69840cc4b94ba2d1ae3a.png)

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [December 8, 2023, 9:24am UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/5 "2023-12-08T09:24:05Z")

</div>

Can you try it with IronPython? It seems like CPython3 problem…

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [December 8, 2023, 10:45am UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/6 "2023-12-08T10:45:09Z")

</div>

See this post…

> [@Python 2 to Python 3 error](https://forum.dynamobim.com/t/python-2-to-python-3-error/95527):
>
> For this: if dialog.Show() I’m getting an TypeError : No method matches given for show I thought Show was in the taskdialog in Autodesk.Revit.UI which I have loaded: (from Autodesk.Revit.UI import \*) Found this thread: [TaskDialog Problem in Revit 2023](https://forum.dynamobim.com/t/taskdialog-problem-in-revit-2023/84183) But… mine’s not just a simple show… if dialog.Show() == TaskDialogResult.Ok: blergh… re-write time I think. frowning I can’t even seem to change the button! I am stuck with a Cancel button.

---

<div class="post-metadata">

**Author:** ![mrl](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mrl](https://forum.dynamobim.com/u/mrl)\
**Post date:** [December 11, 2023, 7:25pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/7 "2023-12-11T19:25:27Z")

</div>

Thangs @haganjake2 / @Deniz_Maral

Hmm… strange things happens.  
All my scripts are written in CPython3 and always worked fine.  
My scripts did always work (on local drive or in Citrix-environment), but somehow not anymore everywhere.

This are my results today.  
Revit 2023.1 on my local drive: script does not work  
Revit 2023.1 in Citrix-environment: script works (as expected)

In both situations; signed in with the same Autodesk-ID

---

<div class="post-metadata">

**Author:** ![mrl](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mrl](https://forum.dynamobim.com/u/mrl)\
**Post date:** [December 12, 2023, 7:48pm UTC](https://forum.dynamobim.com/t/attributeerror-object-taskdialog-has-no-attribute-show/96071/8 "2023-12-12T19:48:07Z")

</div>

The script works in IronPython2 and IronPython3  
The script does not works in CPython3
