ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.Geoprocessing Namespace / Geoprocessing Class / OpenToolDialogAsync Method
Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
Optional array of parameter values
Optional array of environment settings (name,value)
callback events are: executeFlags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlagsdialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlagsset custom dialog title/>A Task of type IGPResult. See IGPResult for more information.
executeFlags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlags
dialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlags
set custom dialog title/>

In This Topic
    OpenToolDialogAsync Method
    In This Topic
    Activate Geoprocessing tool dialog.
    Syntax

    Parameters

    toolPath
    Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
    values
    Optional array of parameter values
    environments
    Optional array of environment settings (name,value)
    callback
    callback events are:
    • OnBeginExecute - param = null. Can be sent miltiple times if user re-run the same tool
    • OnEndExecute - param type IGPResult. Can be sent miltiple times if user re-run the same tool
    • OnClose - param = null, send when user click back or open new tool in the same sub-pane
    executeFlags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlagsdialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlagsset custom dialog title/>A Task of type IGPResult. See IGPResult for more information.
    executeFlags
    executeFlags = GPExecuteToolFlags.Default (AddOutputsToMap | RefreshProjectItems) GPExecuteToolFlags
    dialogFlags
    dialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlags
    dialogTitle
    set custom dialog title/>

    Return Value

    A Task of type IGPResult. See IGPResult for more information.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also