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

2636
3
Jump to solution
03-07-2016 03:53 AM
by Anonymous User
Not applicable

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.

0 Kudos
1 Solution

Accepted Solutions
AdamDavis
Occasional Contributor

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

Adam

View solution in original post

3 Replies
AdamDavis
Occasional Contributor

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

Adam

by Anonymous User
Not applicable

Ah - not sure how I missed that! Thanks Adam

0 Kudos
AdamDavis
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

0 Kudos