ujjwalesri

HowTo :: Input Multiple Parameters for QuickExport GP Tool via AO

Discussion created by ujjwalesri on Sep 21, 2010
Latest reply on Oct 11, 2010 by ujjwalesri
Hi,
I have been trying to export a layer as GML using ArcObjects (AO).
I am able to do it successfully when there is a single layer in the map, but I could not find any information regarding adding multiple input layers.

Should I simply repeat the code, like:
pParameterEdit.Value = pDataType.CreateValue("test"), replacing test with the new layer name...or,
Should I add multiple layer names within the same string, like:
pParameterEdit.Value = pDataType.CreateValue("test, test2"),

I have used the follwoing code to add input layer:

'Set input/output parameters
       
pParameter = pParamArray.Element(0)
pParameterEdit = pParameter       
pDataType = pParameter.DataType       
pParameterEdit.Value = pDataType.CreateValue("test")  <--- This is where I want to add one more layer as input...
       
'Output Parameter
pParameter = pParamArray.Element(1)
pParameterEdit = pParameter       
pDataType = pParameter.DataType       
pParameterEdit.Value = pDataType.CreateValue("GMLSF, D:\Ujjwal\GMLConversion\test_two.gml")

Many Thanks!

Ujjwal

Outcomes