Created
November 25, 2013 15:49
-
-
Save davewilton/7643440 to your computer and use it in GitHub Desktop.
Register a .net toolbox with arcpy
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
Dim gp As IGeoProcessor = New ESRI.ArcGIS.Geoprocessing.GeoProcessor | |
gp.AddToolbox(regTb) 'location of toolbox with above python code embedded | |
Dim iv As ESRI.ArcGIS.esriSystem.IVariantArray = New ESRI.ArcGIS.esriSystem.VarArrayClass() | |
iv.Add(_toolBoxLocation) 'location of toolbox created from .net dll | |
gp.Execute("registerTbx_regarcpy", iv, Nothing) | |
gp.RemoveToolbox(regTb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment