Module Import alias alias alias alias Import alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body If Call AttributeLoad NameLoad attr Str body For NameStore Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If Call AttributeLoad NameLoad attr Str body For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Pass decorator_list FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str For NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Return NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Return NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body ImportFrom alias Return Str handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Str handlers ExceptHandler body Return Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Global identifier Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Global identifier Global identifier Global identifier Global identifier Global identifier If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num For NameStore Call AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Str Str If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num Str Assign NameStore NameLoad Global identifier If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore NameLoad body If Call AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Print NameLoad ExceptHandler body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print BinOpAdd NameLoad Str Print NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A os sys math traceback N/A arcpy arcpy env arcpy sa N/A Utilities N/A areaToNumber N/A N/A arcpy GetParameterAsText 0 N/A pointFeatures N/A N/A arcpy GetParameterAsText 1 N/A numberingField N/A N/A arcpy GetParameterAsText 2 N/A outputFeatureClass N/A N/A arcpy GetParameterAsText 3 N/A DEBUG True N/A appEnvironment None N/A N/A mxd df aprx mp mapList N/A None None None None None labelFeatures N/A N/A layer field N/A N/A N/A  set up labeling for layer  N/A N/A appEnvironment ARCGIS_PRO N/A N/A N/A N/A layer supports SHOWLABELS N/A N/A lblclass N/A N/A layer listLabelClasses N/A N/A N/A lblclass visible True N/A N/A lblclass expression N/A N/A  [ N/A str field ] N/A N/A layer showLabels True N/A N/A N/A appEnvironment ARCMAP N/A N/A N/A N/A layer supports LABELCLASSES N/A N/A lblclass N/A layer labelClasses N/A N/A N/A lblclass showClassLabels True N/A N/A lblclass expression N/A N/A  [ N/A str field ] N/A N/A layer showLabels True N/A N/A N/A arcpy RefreshActiveView N/A N/A N/A findLayerByName N/A N/A layerName N/A N/A N/A N/A appEnvironment ARCGIS_PRO N/A N/A N/A DEBUG True N/A N/A N/A N/A arcpy AddMessage N/A N/A Pro labeling for  layerName ... N/A layer N/A N/A mapList listLayers N/A N/A N/A N/A layer name layerName N/A N/A N/A N/A arcpy AddMessage N/A N/A Found matching layer [ N/A layer name ] N/A layer N/A N/A N/A N/A arcpy AddMessage N/A N/A Incorrect layer: [ N/A layer name ] N/A N/A N/A appEnvironment ARCMAP N/A N/A N/A DEBUG True N/A N/A N/A N/A arcpy AddMessage N/A N/A Map labeling for  layerName ... N/A layer N/A N/A N/A arcpy mapping ListLayers mxd N/A N/A N/A N/A layer name layerName N/A N/A N/A N/A arcpy AddMessage N/A N/A Found matching layer [ N/A layer name ] N/A layer N/A N/A N/A N/A arcpy AddMessage N/A N/A Incorrect layer: [ N/A layer name ] N/A N/A N/A N/A arcpy AddMessage Non-map environment, no layers to find... N/A GetApplication N/A N/A N/A N/A N/A Return app environment as ARCMAP, ARCGIS_PRO, OTHER N/A N/A arcpy mp N/A ARCGIS_PRO N/A N/A N/A ImportError N/A N/A N/A arcpy mapping N/A mxd N/A N/A N/A arcpy mapping MapDocument CURRENT N/A ARCMAP N/A N/A N/A N/A OTHER N/A main N/A N/A N/A N/A N/A  main  N/A pointFeatureName N/A N/A N/A os path basename pointFeatures N/A layerExists False N/A N/A N/A descArea N/A N/A arcpy Describe areaToNumber N/A areaGeom N/A descArea shapeType N/A N/A N/A arcpy AddMessage N/A Shape type:  N/A str areaGeom N/A N/A N/A descArea shapeType Polygon N/A N/A N/A Exception ERROR: The area to number must be a polygon. N/A gisVersion N/A N/A N/A arcpy GetInstallInfo N/A Version N/A appEnvironment N/A appEnvironment N/A N/A Utilities GetApplication N/A N/A DEBUG True N/A N/A N/A N/A arcpy AddMessage N/A App environment:  appEnvironment N/A mxd N/A df N/A aprx N/A mp N/A mapList N/A N/A appEnvironment ARCGIS_PRO N/A arcpy mp N/A aprx N/A N/A N/A arcpy mp ArcGISProject CURRENT N/A mapList N/A N/A N/A aprx listMaps N/A 0 N/A lyr N/A N/A mapList listLayers N/A N/A N/A N/A lyr name pointFeatureName N/A N/A layerExists True N/A N/A appEnvironment ARCMAP N/A arcpy mapping N/A mxd N/A N/A N/A arcpy mapping MapDocument CURRENT N/A df N/A N/A N/A N/A arcpy mapping ListDataFrames mxd N/A 0 N/A lyr N/A N/A N/A arcpy mapping ListLayers mxd N/A N/A N/A N/A lyr name pointFeatureName N/A N/A layerExists True N/A N/A layerExists False N/A N/A N/A N/A arcpy MakeFeatureLayer_management pointFeatures pointFeatureName N/A N/A pointFeatureName pointFeatures N/A N/A N/A arcpy AddMessage N/A N/A N/A N/A Selecting points from ( N/A str N/A N/A N/A os path basename pointFeatureName ) inside of the area ( N/A str N/A N/A N/A os path basename areaToNumber ) N/A selectionLayer N/A N/A arcpy SelectLayerByLocation_management pointFeatureName INTERSECT areaToNumber # NEW_SELECTION N/A N/A DEBUG True N/A N/A N/A N/A arcpy AddMessage N/A N/A Selected  N/A str N/A N/A N/A N/A arcpy GetCount_management pointFeatureName getOutput 0  points N/A overwriteFC False N/A outputFeatureClass N/A N/A outputFeatureClass N/A N/A outputFeatureClass tempSortedPoints N/A overwriteFC True N/A N/A N/A arcpy AddMessage Sorting the selected points geographically, right to left, top to bottom N/A N/A N/A arcpy Sort_management selectionLayer outputFeatureClass N/A N/A Shape ASCENDING N/A N/A N/A arcpy AddMessage Numbering the fields N/A i 1 N/A cursor N/A N/A arcpy UpdateCursor outputFeatureClass N/A row cursor N/A N/A N/A N/A row setValue numberingField i N/A N/A N/A cursor updateRow row N/A i 1 N/A N/A N/A arcpy AddMessage Clearing the selection N/A N/A N/A arcpy SelectLayerByAttribute_management pointFeatureName CLEAR_SELECTION N/A targetLayerName N/A overwriteFC N/A N/A N/A N/A arcpy AddMessage Copying the features to the input, and then deleting the temporary feature class N/A desc N/A N/A arcpy Describe pointFeatureName N/A overwriteFC N/A N/A N/A os path join N/A N/A os path sep N/A desc path pointFeatureName N/A fields N/A numberingField SHAPE@ N/A overwriteCursor N/A N/A N/A arcpy da UpdateCursor overwriteFC fields N/A overwriteRow overwriteCursor N/A N/A sortedPointsCursor N/A N/A N/A arcpy da SearchCursor outputFeatureClass fields N/A sortedRow sortedPointsCursor N/A N/A N/A N/A N/A sortedRow N/A 1 equals N/A overwriteRow N/A 1 N/A N/A N/A overwriteRow N/A 0 N/A sortedRow N/A 0 N/A N/A N/A overwriteCursor updateRow overwriteRow N/A N/A N/A arcpy Delete_management outputFeatureClass N/A targetLayerName pointFeatureName N/A N/A targetLayerName N/A N/A N/A os path basename outputFeatureClass N/A N/A appEnvironment ARCGIS_PRO N/A N/A results N/A N/A N/A N/A arcpy MakeFeatureLayer_management outputFeatureClass targetLayerName getOutput 0 N/A N/A N/A mapList addLayer results AUTO_ARRANGE N/A layer N/A findLayerByName targetLayerName N/A layer N/A N/A N/A labelFeatures layer numberingField N/A N/A N/A appEnvironment ARCMAP N/A N/A N/A N/A arcpy AddMessage N/A N/A Adding features to map ( N/A str targetLayerName )... N/A N/A N/A arcpy MakeFeatureLayer_management outputFeatureClass targetLayerName N/A layer N/A N/A N/A arcpy mapping Layer targetLayerName N/A N/A N/A N/A arcpy mapping AddLayer df layer AUTO_ARRANGE N/A N/A N/A arcpy AddMessage N/A N/A Labeling output features ( N/A str targetLayerName )... N/A layer N/A findLayerByName targetLayerName N/A layer N/A N/A N/A labelFeatures layer numberingField N/A N/A N/A N/A arcpy AddMessage Non-map application, skipping labeling... N/A N/A N/A arcpy SetParameter 3 outputFeatureClass N/A N/A N/A N/A arcpy ExecuteError N/A N/A msgs N/A N/A arcpy GetMessages N/A N/A N/A arcpy AddError msgs N/A msgs N/A N/A N/A tb N/A N/A N/A sys exc_info N/A 2 N/A tbinfo N/A N/A N/A traceback format_tb tb N/A 0 N/A pymsg N/A N/A N/A PYTHON ERRORS:
Traceback info:
 tbinfo 
Error Info:
 N/A str N/A N/A N/A sys exc_info N/A 1 N/A msgs N/A N/A ArcPy ERRORS:
 N/A N/A arcpy GetMessages N/A N/A N/A arcpy AddError pymsg N/A N/A N/A arcpy AddError msgs N/A N/A pymsg N/A msgs N/A N/A N/A __name__ __main__ N/A N/A N/A main