I am trying to create groups based on a primary object as its centroid.
Groups are defined as all objects within a certain distance from a primary object. I am currently using spatial join in a ModelBuilder to create the groups (one to many) with the defined distance, but this causes objects to join more than one primary object's group.
Many objects can be joined to one primary object but objects cannot be in more than one primary object group. If an object falls within the buffer of two primary objects, I would like the object that is closest to be added in that group.
I can use ArcPy if necessary.