Skip to content

Instantly share code, notes, and snippets.

@davewilton
Last active December 29, 2015 08:29
Show Gist options
  • Save davewilton/7643187 to your computer and use it in GitHub Desktop.
Save davewilton/7643187 to your computer and use it in GitHub Desktop.
Geoprocessor Overwrite output
Public Overrides Sub Execute(ByVal paramvalues As IArray, ByVal trackcancel As ITrackCancel, ByVal envMgr As IGPEnvironmentManager, ByVal message As IGPMessages)
Dim parameterValue As IGPValue
If CType(envMgr, IGeoProcessorSettings).OverwriteOutput Then
parameterValue = GpUtilities.UnpackGPValue(paramvalues.Element(2))
If Not parameterValue Is Nothing Then
If GpUtilities.Exists(parameterValue) Then
GpUtilities.Delete(parameterValue)
End If
End If
End If
...
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment