How to stop a featureclass created with GP from automatically adding to the map?

2117
3
Jump to solution
03-07-2016 03:53 AM
Highlighted
New Contributor III

I'm using geoprocessing to create a new feature class, but it's automatically being added to the active map when the tool executes, which I don't want. How can I stop this? I can't see any GP environment variable to control this.

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Occasional Contributor

One of Geoprocessing.ExecuteToolAsync overloads has a parameter called GPExecuteToolFlags set it GPExecuteToolFlags.None

Adam

View solution in original post

3 Replies
Highlighted
Occasional Contributor

One of Geoprocessing.ExecuteToolAsync overloads has a parameter called GPExecuteToolFlags set it GPExecuteToolFlags.None

Adam

View solution in original post

Highlighted
New Contributor III

Ah - not sure how I missed that! Thanks Adam

Reply
0 Kudos
Highlighted
Occasional Contributor

Hi Luke,

Just because I know the answer now doesn't mean I didn't miss that for a long time as well 🙂

Adam

Reply
0 Kudos