Solved! Go to Solution.
Hello,
Is it possible to use a button on a form in an add-in to launch a custom geoprocessing script (contained in a custom toolbox) such that the window pops up asking for parameters? I want the window to appear just as if you are clicking on the script directly in the ArcToolbox window, so that you can choose parameters on that window and click OK to run the script.
Thanks,
Evan.
IGPToolCommandHelper cmdHelper = new GPToolCommandHelperClass(); cmdHelper.SetToolByName("MyToolbox.tbx", "MyToolName"); cmdHelper.Invoke(null);
Hello,
Is it possible to use a button on a form in an add-in to launch a custom geoprocessing script (contained in a custom toolbox) such that the window pops up asking for parameters? I want the window to appear just as if you are clicking on the script directly in the ArcToolbox window, so that you can choose parameters on that window and click OK to run the script.
Thanks,
Evan.
IGPToolCommandHelper cmdHelper = new GPToolCommandHelperClass(); cmdHelper.SetToolByName("MyToolbox.tbx", "MyToolName"); cmdHelper.Invoke(null);