I am executing the copy features tool via the geoprocessor inside my .net custom geoprocessing function tool. When the copy features tool executes it is writing it's messages to my tool's results. I want to stop these messages from being written and handle them myself. Is there a way to stop a geoprocessor from writing messages? I am writing .net on 10.1.
This is the code I am running the tool with.
IGeoProcessor2 gp = new GeoProcessorClass(); IGeoProcessorResult results = new GeoProcessorResultClass(); IVariantArray parameters = new VarArrayClass(); parameters.Add(tempFC); parameters.Add(outFC); results = gp.Execute("CopyFeatures_Management", parameters, null);