Call DirectionalMean geoprocessing tool from an ArcEngine Application using following code snippets:ESRI.ArcGIS.SpatialStatisticsTools.DirectionalMean pTool = new ESRI.ArcGIS.SpatialStatisticsTools.DirectionalMean();
pTool.Input_Feature_Class = sInputFC;
pTool.Output_Feature_Class = sOutputFC;
pTool.Orientation_Only = "ORIENTATION_ONLY"; // Tried "True", "true", true here
pTool.Case_Field = aUniqueIDField;
GPExecuteAndGetMessage(GP, pTool);
IGeoProcessorResult also return null, and goes to Exceptional section. I'm thinking it's most likely because of the wrong parameter value for "Orientation_Only", since It is a marked as a Boolean type parameter, but in the Object Browser, the specified data type are string. So I tried the other paramters like "True", "true" and boolean value true, all failed in same way.Testing in ArcGIS Destop Command window using arcpy.DirectionalMean_stats(sInputFC, sOutputFC, "ORIENTATION_ONLY",aUniqueIDField)
it works very vell, and even arcpy.DirectionalMean_stats(sInputFC, sOutputFC, "True",aUniqueIDField)
works.Checked, I am using 'ArcEngine Extention' reference for ESRI.ArcGIS.SpatialStatisticsTools.Please helpThanks