Near tool crashes when run from C# add-in.

479
2
09-04-2019 07:59 AM
ScottKempin
New Contributor

The code below causes ArcGIS Pro to crash. This is part of an add-in written in C#. The parameters are calling two FeatureLayers the inFeatures and nearFeatures. I have triple checked the features so my only guess is the Alias name I am using for the tool is wrong but I seem to have tried everything. Any tips?


Geoprocessing.OpenToolDialog("analysis.Near", parameters);

0 Kudos
2 Replies
George_Thompson
Esri Frequent Contributor

Adding other groups for better visibility ArcGIS Pro SDK

--- George T.
0 Kudos
GKmieliauskas
Esri Regular Contributor

Hi Scott,

The tool name is "near_analysis". From Python Script geoprocessing tool name you need to change group and tool name places and change '.' to '_'.

If

arcpy.analysis.Near(r"Sites", r"'Customers'", "1000 Meters", "NO_LOCATION", "NO_ANGLE", "PLANAR")

then

Geoprocessing.OpenToolDialog("near_analysis", parameters);

0 Kudos