Finding duplicate objects and the original object
To get the duplicates of an object, you can use either the GetAllDuplicates method or the GetDuplicates method. These methods follow the links associated with the Entity object and return a list of the duplicates associated with it. The GetAllDuplicates method returns not only the duplicates of the object, but also any duplicates of duplicates, and so on. The GetDuplicates method returns only the immediate duplicates of the Entity object.
To discover whether the current Entity object is the parent
of the duplicates, call the IsOriginal
method.
(You can also call the GetOriginalID
method
to return the object's visible ID instead of the object itself.)
To find out which Entity object is the parent of a group
of duplicates, call the IsOriginal
method
of each object until one of them returns True.