I am wanting to construct a Taskdialog.
This seems straight forward when constructing single line commands. I’m more intrigued as a general python / class question.
I would have thought as a class I could construct a more complex TaskDialog, however I’m getting a TypeError: NoneType is not callable.
Could someone explain why this is the case ?
import clr clr.AddReference("RevitAPIUI") from Autodesk.Revit.UI import * # Method 1 - this works #TaskDialog.Show("Title", "Main Content") #Method 2 - TypeError : NoneType is not callable dialog = TaskDialog("Header") dialog.MainContent("Content") dialog.FooterText("Footer Text") dialog.Show()
Many thanks all