Dear all,
I am using vb.net arcobjects to run the intersect geoprocessing tool. When I use all the required parameters, it works. But if I add an optional parameter, it not work.
My code is as bellows:
Dim GP As GeoProcessor = New GeoProcessor()
Dim parameters As IVariantArray = New VarArray
parameters.Add("test_db.DBO.Segment;test_db.DBO.LINE")
parameters.Add("D:\local\Segment_line_intersect")
parameters.Add("0.5 Meters") ' this is an optional parameter for XY tolerance
"Intersect_Analysis", parameters, Nothing)
When I add the parameter of XY tolerance, it will cause error. I wonder is anything missing in my code? Thanks!