Show Method (String, String, TaskDialogCommonButtons)


Shows a task dialog with title, main instruction and common buttons.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2011

Syntax

C#
public static TaskDialogResult Show(
	string title,
	string mainInstruction,
	TaskDialogCommonButtons buttons
)
Visual Basic
Public Shared Function Show ( _
	title As String, _
	mainInstruction As String, _
	buttons As TaskDialogCommonButtons _
) As TaskDialogResult
Visual C++
public:
static TaskDialogResult Show(
	String^ title, 
	String^ mainInstruction, 
	TaskDialogCommonButtons buttons
)

Parameters

title
Type: SystemString
The title of the task dialog.
mainInstruction
Type: SystemString
The main instruction of the task dialog.
buttons
Type: Autodesk.Revit.UITaskDialogCommonButtons
The common buttons to be shown the task dialog.

Return Value

The user's response to the task dialog.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →