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

93
2
09-04-2019 07:59 AM
Highlighted
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);

Reply
0 Kudos
2 Replies
Highlighted
Esri Frequent Contributor

Adding other groups for better visibility ArcGIS Pro SDK

--- George T.
Reply
0 Kudos
Highlighted
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);

Reply
0 Kudos