AU Class
AU Class
class - AU

Revit TaskDialogs for the Developer—Manage TaskDialogs Like a Pro

Share this class
Search for keywords in videos, presentation slides and handouts:

    Description

    The Revit API exposes an event on the UIApplication and UIControlledApplication classes called DialogBoxShowing. Adding an event handler for this event lets the developer automatically handle the dismissal of TaskDialogs. One thing the Revit API documentation does not provide is a list of TaskDialogs and the appropriate responses needed to dismiss them. This class will expose a list of Revit TaskDialogs, along with information about TaskDialogIds, button definitions, and the default button. Class material will cover the process for getting the list of TaskDialogs into a file and an explanation of the file's contents. We will discuss code that can parse the file to show detailed TaskDialog information. We will present a small TaskDialog API that lets the developer easily control the behavior of TaskDialogs in an on-the-fly manner. Additionally, we will show a sample DialogBoxShowing event handler.

    Key Learnings

    • Learn how to create a text file containing Revit TaskDialog information
    • Learn how to parse the text file to expose relevant information needed to work within the Revit API
    • Understand how the TaskDialog API suppresses Revit TaskDialog boxes
    • Learn how to implement a DialogBoxShowing event handler using the TaskDialog API
    People who like this class also liked