dougbrowning

Find the relative replica in script

Discussion created by dougbrowning on Jul 2, 2014
Is there a way to find the relative replica of a replica in a script?  Synchronize Changes tool needs the name of the relative to sync to.  Instead of having the user pick I want to find it myself. 

When running the Synchronize Changes tool through a right click it seems to know where the relative is - even though you can change it, it does default to the correct location.  I can not find any properties that tell me this.  Where is it getting this value and how can i get it?

ListReplicas gives me the name of the replica but not where the check out replica came from.

Any ideas?

--------------------- code
replica_gdb2 = ???

arcpy.SynchronizeChanges_management(replica_gdb1, replica_name, replica_gdb2, sync_direction, conflict_policy, conflict_detection, reconcile)


Thanks

Outcomes