ArcGIS Pro 2.7 API Reference Guide
OpenToolDialog Method
Example 

ArcGIS.Desktop.Core.Geoprocessing Namespace > Geoprocessing Class : OpenToolDialog Method
Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
Array of parameter values
Array of environment settings (name,value)
Add ToolDialog as new sub-pane
callback events are:
Activate Geoprocessing pane and open the tool dialog in the pane.
Syntax

Parameters

toolPath
Use toolboxalias.toolname, toolname_toolboxalias pattern or full path
values
Array of parameter values
environments
Array of environment settings (name,value)
newSubPane
Add ToolDialog as new sub-pane
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
Example
string input_points = @"C:\data\ca_ozone.gdb\ozone_points";
string output_polys = @"C:\data\ca_ozone.gdb\ozone_buff";
string buffer_dist = "2000 Meters";

var param_values = Geoprocessing.MakeValueArray(input_points, output_polys, buffer_dist);

Geoprocessing.OpenToolDialog("analysis.Buffer", param_values);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Geoprocessing Class
Geoprocessing Members