Select to view content in your preferred language

Can I validate topology using python script when ArcMap is open?

804
2
05-09-2014 01:47 AM
LiYao
by
Deactivated User
Hi everybody,
I am testing on validating topology using python.The situation is when I run the script when arcmap is open, an error occurs which indicates the topology has already been opened (FDO error: -2147214980 Cannot acquire a schema lock because of an existing lock), but when I close arcmap,the error disappear and it works properly. Does it means I can't validate a topology when arcmap is open? If can, how can I make it.
Thanks in advance.
Tags (2)
0 Kudos
2 Replies
KimOllivier
Honored Contributor
You need to run the script 'in process' from ArcMap. If you have the script attached to a tool, make sure that the option in the tool dialog option 'Always run in foreground' is ticked. Then run the tool from the Catalog window in ArcMap.
0 Kudos
LiYao
by
Deactivated User
Hi Kimo, I think I forgot to set the "In Process". thanks a lot.
0 Kudos