Let's say you created a new field for this purpose called "Point". You should be able to use the 'Calculate Field' to generate unique IDs sequentially for each group (according to a grouping field such as 'FarmID') by doing something like this:
- Right-click the column header for the Point field (or whatever your point ID field is called) and choose 'Field Calculator'
- In the Calculate Field's 'Code Block' parameter, enter:
idGroups = {}
def calculateIDs(groupID):
global idGroups
if groupID in idGroups:
idGroups[groupID] += 1
else:
idGroups[groupID] = 1
return idGroups[groupID]
- In the Calculate Field's 'Point' parameter (or whatever your point ID field is called), enter:
calculateIDs(!FarmID!)
(double click the 'FarmID' field to enter it correctly)
- Click the Calculate Field's 'Apply' button (or 'OK' button)
NB: This is entirely untested. I just made it up off the top of my head.