arcpy and the editor

287
1
Jump to solution
03-27-2013 07:31 AM
JonPedder
Occasional Contributor II
Can you detect in a script if an editing session is active?

I'm running a tabletodomains function that requires exclusive database access, I'd like to check if an editor session is active.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JonPedder
Occasional Contributor II
I resolved this by adding error checking to the script.

 errors = arcpy.GetMessages(2)         # Does not have exclusive access to the database         if 'ERROR 000464' in errors:             errorString = 'WARNING: There is an active editing session Editing MUST be stopped'

View solution in original post

0 Kudos
1 Reply
JonPedder
Occasional Contributor II
I resolved this by adding error checking to the script.

 errors = arcpy.GetMessages(2)         # Does not have exclusive access to the database         if 'ERROR 000464' in errors:             errorString = 'WARNING: There is an active editing session Editing MUST be stopped'
0 Kudos