I am running the geoprocessing tool SurfaceVolume (in 3D analyst toolbar) from Visual Studio 2010. ' Create the Geoprocessor object
Dim Result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult
Dim geoProcTool As SurfaceVolume = New SurfaceVolume
geoProcTool.in_surface = strDEM
geoProcTool.out_text_file = strOutputFile
geoProcTool.reference_plane = strReferencePlane
geoProcTool.base_z = dblPlaneHeight
geoProcTool.z_factor = dblZfactor
' Start from top elevation, go down by interval to lower plane
Do While dblPlaneHeight > dblLowerPlane
' run process: Surface Volume...
Result = RunTool(geoProcTool, Nothing)
' Increment plane height by interval
dblPlaneHeight -= dblInterval
intRows += 1
Loop
This was working with 9.3.1, but when I upgraded to 10 after the first time through the loop it complained that strOutputFile already exists and won't append to the file like it is supposed to. I thought maybe that the tool changed at 10, but it doesn't seem to have any extra parameters.Is there a way to turn an overwrite setting on somewhere?I'm running ArcGIS 10 on MS Windows Server 2008 R2.