Skip to content

Instantly share code, notes, and snippets.

@davewilton
Created November 25, 2013 15:49
Show Gist options
  • Save davewilton/7643440 to your computer and use it in GitHub Desktop.
Save davewilton/7643440 to your computer and use it in GitHub Desktop.
Register a .net toolbox with arcpy
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