I want to know if anyone has a code to count +1 starting at a certain number for Field Calc. ArcGIS. (I.e. 04312, 04313) It also must keep the 0 in front.
rec=0
def autoIncrement(): global rec pStart = 040150117669 pInterval = 1 if (rec == 0): rec = pStart else: rec = rec + pInterval return rec
def autoIncrement():
global rec
pStart = 040150117669
pInterval = 1
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec
str(autoIncrement( )).zfill(12)
parsing error syntaxerror:invalid token (line 4)