Using ArcGIS Pro 3.5x. Consuming ParcelFabric as a feature service.
var maps = Project.Current.GetItems<MapProjectItem>().Select(mpi => mpi.GetMap());
foreach (var map in maps)
{
map.ChangeVersion(currentVersion, newVersion);
}
It seem to me that I have to make sure to "open/activate" Map2 for it to get initialized.
Bug? How would I go about to "initialize" the Map2 pane without setting it to Active (weird map switching occur for user) in the code?
@PärÅman, could you please try calling RefreshDatastore in the new version after the Map version change? I think that will address the issue.
Tried:
Version newVersion = vmgr.CreateVersion(versionDescription);
foreach (var map in maps)
{
map.ChangeVersion(currentVersion, newVersion);
}
newVersion.RefreshDatastore();
Unfortunately it didn't solve the problem.
Thank you for trying that. We'll investigate it.