I would like to create sequential numbers in a field of a point shapefile that start from 0 with an interval of 0.050. The main code works whenever the start number is not zero.
The original code to put in the codeblock from (https://support.esri.com/en/technical-article/000011137) looks like this:
rec=0 def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec += pInterval return rec
How I can make it in arcpy with a “codeblock” and “Expression”?