4.14 Feedback: TaskDialogs
TaskDialogs will give users quick-and-dirty visual feedback
Last updated
TaskDialogs will give users quick-and-dirty visual feedback
Last updated
When a user starts using your custom scripts, they might not know when they've finished executing or whether they ran successfully. Even a small element of visual feedback can go a long way in making your tools more usable.
TaskDialogs are Revit's API class for providing verbose user feedback. They can be executed with a single line of code, like so:
Which causes Revit to display this dialog box:
TaskDialogs are useful to provide a level of feedback to a user - perhaps you want to report whether the script ran successfully or encountered any errors.
The above example implemented a bare-minimum TaskDialog, but these can also be edited via the class' properties to make something richer, like so:
Which display the following