Sunday, 6 December 2015

File Geodatabase API .NET Wrapper: How to determine if Table/Feature Class Is Locked?


I have been using the file gdb API .NET wrapper, and it has suited my needs quite nicely (vs. using ArcObjects). One of the things I have yet to figure out is if there is a proper way to determine if a table or feature class (fc) is locked before attempting to write to it.


What I have been doing is wrapping a update/insert in a try/catch, and if I get to 'can't acquire lock exception...', I know the object is locked by something else.


Am I missing a better way to tell if a given table or fc can be written to?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...