Thursday, April 28, 2016

arcmap add field guid unique id


1  to n

python
counter = 0
def uniqueID():
  global counter
  counter += 1
  return counter








======================

GUID

python, Note: indent correctly avoid  error out


def guid():
 import uuid
 return uuid.uuid4()


Field Calculator with Python Expression

No comments: