ArcGIS Pro 2.6 API Reference Guide
OpenToolDialogAsync Method

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) GPExecuteToolFlags dialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlags set 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/>
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) GPExecuteToolFlags dialogFlags = GPToolDialogFlags.DefaultGPToolDialogFlags set 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 10, Windows 8.1, Windows 7

See Also

Reference

Geoprocessing Class
Geoprocessing Members