Skip to main content
added 421 characters in body
Source Link
TurboGus
  • 932
  • 8
  • 15

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);

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.

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);
Source Link
TurboGus
  • 932
  • 8
  • 15

Arcobjects .Net, suppress geoprocessing messages

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.