Last active
December 29, 2015 08:29
-
-
Save davewilton/7643187 to your computer and use it in GitHub Desktop.
Geoprocessor Overwrite output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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