Outputting from an custom geoprocessing tool (IGPFunction)

Discussion created by gchone on Jun 11, 2013
Latest reply on Oct 23, 2014 by tim.sexton

I'm creating a custom geoprocessing tool in C# (implementing IGPFunction2), and I cannot succeed in creating the output of the gp tool (in my case, a point feature class, but the kind of output I try to create doesn't really matter, it could be a simple table or even a raster...). I guess I need to start by creating the IGPValue (same thing than for the tool's inputs), like that:

public void Execute(IArray paramvalues, ITrackCancel trackcancel, IGPEnvironmentManager envMgr, IGPMessages message)
IGPValue gp_output = m_GPUtilities.UnpackGPValue((IGPParameter3)paramvalues.get_Element(3));

Than what should I do ? How to create a empty (to begin with...) feature class from this IGPValue  ?