Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to reconcile and post the edits. I would like to know if I can post the versions to two different parents. Could some one help me with c# coding on how to do this.

share|improve this question
add comment

1 Answer

I don't think you can directly rec&post directly to both parents.

In ArcMap, you get this error:
enter image description here

But you can rec&post to a common ancestor version (grandparent, great-grandparent, etc), and then reconcile down the branch of the second parent that you want to post to.

You can rec&post with the IVersionEdit interfaces in ArcObjects http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000m0v000000

bool reconcileresult = version.Reconcile4(
                parentVersionName, // targetVersion
                true, //acquire lock
                true, // abort if conflict 
                false,  //child doesn't win
                columnLevelConflict); //use column-level conflicts

            if (!reconcileresult)
            {
                version.Post(ArcMap.Editor.EditWorkspace.GetParentVersionName());
             }
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.