4

Is it possible to set the "Always run in foreground" option within ArcPy code? I haven't found anything on this yet?

It would be nice to be able to specify within a script, instead of through the Geoprocessing Options window.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Nov 24, 2015 at 21:55

1 Answer 1

7

This can be done in ArcPy when you are Defining a tool in a Python toolbox by using the canRunInBackground property:

If canRunInBackground is unset or set to True, the tool will respect the current Background Processing setting in the Geoprocessing Options dialog.

If set to False, the tool will always run in the foreground, overriding the Background Processing setting in the Geoprocessing Options dialog.

answered Nov 24, 2015 at 22:58
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.