AnsweredAssumed Answered

How can I input multiple IFeatureClass objects to geoprocessing tool?

Question asked by iaminsu12 on Nov 8, 2012
Latest reply on Nov 13, 2012 by kenbuja
Hello,

I have a problem with geoprocessing.

I want to input multiple featureclasses as input for geoprocessing (in this case, Feature to Polygon tool).
I tried IGpValueTableObject, but it did not work at all.

How can I input multiple IFeatureClass objects?


Thank you


                        IGpValueTableObject vt = new GpValueTableObjectClass();                         vt.SetColumns(2);                         vt.SetColumns(2);                         object weight;                         weight = 1 as object;                         object obj1 = fcBoundary;                         vt.AddRow(ref obj1);                         vt.SetValue(0, 1, ref weight);                         object obj2 = fcPairLine;                         vt.AddRow(ref obj2);                         vt.SetValue(1, 1, ref weight);                           parameters = new VarArrayClass();                         parameters.Add(vt);                         parameters.Add("polyMerged");                         gp.Execute("FeatureToPolygon_management", parameters, null);  

Outcomes