charm123

geoprocessor

Discussion created by charm123 on Oct 21, 2010
Latest reply on Oct 21, 2010 by charm123
Hi folks,
How can I call a geoprocessor (for instance polygontoline from data management) in a visual basic 6 macro ?

I would like to do somethink similar to this exemple but it is wrtitten in VBnet and I do not find the equivalent for VB6

'Exemple
    'Dim GP As New ESRI.ArcGIS.Geoprocessor.Geoprocessor
    'Dim pUnion As New ESRI.ArcGIS.AnalysisTools.Union

    'pUnion.in_features = "C:\TestData\VP  _Testdata\trails_buf.shp #;C:\TestData\VP  _Testdata\Spawning_area_clp.shp #"
    'pUnion.out_feature_class = C:\temp\Union_Out1.shp"

    'GP.Execute(pUnion, Nothing)

thanks so much in advance

Outcomes