Open BenjiDa opened 2 years ago
It worked for me after I changed if arcpy.Exists(badLabels):
to if arcpy.Exists(blankPolys):
, but I will try to clean some other parts up a bit before posting a new version.
If you get other errors, try deleting all of the errors_
and edit_
feature classes..
Also, while the new MapUnits
might get properly written to the geodatabase, the MapUnits layer in the map won't display the new features until you pan and zoom. And/or go the layer properties > Cache and click Clear Cache.
Okay, thanks, I tried that but the MapUnits
are not being written to the geodatabase so I figured that wasn't the solution. Running the code piece by piece I notice that the MapUnits
are written to a file called xxxCenterPoints2
but somehow they are not written to the final MapUnitPolys
feature class. I will continue to trying to fiddle with this. If it worked for you maybe it is something in my data structure that is off.
Running the Make Polygon tool appears to fail when trying to create
errors_unlabeledPolys
, the code seems not to write blankPolys before trying to delete it, but maybe I'm mistaken...error message: