AU Class
AU Class
class - AU

Revit TaskDialogs for the Developer—Manage TaskDialogs Like a Pro

共享此课程
在视频、演示文稿幻灯片和讲义中搜索关键字:

    说明

    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.

    主要学习内容

    • 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
    喜欢这门课的人也喜欢