This code only works when ArcCatalog is closed or the featureclass has never been opened by ArcCatalog. For other arcpy management functionsthis is not the case, but when ArcCatalog is open, I get the error in Sublime text2:
[Decode error - output not utf-8]or in IDLE the error "feature class locked"
But when it is closed, it works fine.
for item in nfld_rrop: if item in ["test","PLANZ"]: print item this arcpy.DeleteField_management(fc, item)Is there any way to stop this?
أكثر...
[Decode error - output not utf-8]or in IDLE the error "feature class locked"
But when it is closed, it works fine.
for item in nfld_rrop: if item in ["test","PLANZ"]: print item this arcpy.DeleteField_management(fc, item)Is there any way to stop this?
أكثر...