Hello,
I've had the next problem when I've tried to execute a tool form a geoprocessor object, the code that I've executed is the next, where 'rutas' and 'arcosMod' are line feature layers that are inteo a local geodatabase:
"gp = New ESRI.ArcGIS.Geoprocessor.Geoprocessor
Dim toolSelByLocation As SelectLayerByLocation = New SelectLayerByLocation()
toolSelByLocation.in_layer = "G:\simetria\simetria16-04-10\Simetria2008.gdb\Sim2008\rutas"
toolSelByLocation.select_features = "G:\simetria\simetria16-04-10\Simetria2008.gdb\Sim2008\arcosMod"
toolSelByLocation.overlap_type = "INTERSECT"
Dim resultGp As IGeoProcessorResult
Try
resultGp = gp.Execute(toolSelByAtt, Nothing)
Catch err As Exception
Console.WriteLine(err.Message)
End Try"
And when I execute this command I have the next error message:
Exception of type tipo 'System.Runtime.InteropServices.COMException' in ESRI.ArcGIS.Geoprocessor.dll