Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 72624

A site-package created by Esri to expose ArcGIS Desktop (ArcMap and ArcGIS Pro) geoprocessing, mapping, etc, to Python.

3 votes
Accepted

UpdateCursor won't update concatenated string?

import arcpy with arcpy.da.UpdateCursor("SepticTankPermit layer",['pid','pidgis']) as cursor: for row in cursor: if row[0] in [None,'','NULL']: row[0] = row[1][:2] #etc... …
mdholl6188's user avatar
3 votes

Arcpy Update Cursor-Overwrite values in field based on CSV

If the dictionary is built properly, and it looks like it is, you should be able to compare the 'Property_Ref' values to the dictionary keys ('Rental_Object') with a loop. You should iterate over the …
mdholl6188's user avatar
5 votes
Accepted

List all MXDs that a feature class is in using arcpy

import arcpy import os mxdDir = r'C:\path\to\directory\of\MXDs' mxdDict = {} for mxd in os.listdir(mxdDir): mxdPath = os.path.join(mxdDir, mxd) mxdDoc = arcpy.mapping.MapDocument(mxdPath) …
mdholl6188's user avatar