Skip to content

Commit

Permalink
AGIS more specific document naming (#218)
Browse files Browse the repository at this point in the history
* more specific document naming

* clear cache
  • Loading branch information
KatKatKateryna authored Sep 3, 2024
1 parent ff540ca commit 02e7ed9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ MapMembersUtils mapMemberUtils
Parent = parent;
Commands = new SendBindingUICommands(parent);
SubscribeToArcGISEvents();
_store.DocumentChanged += (_, _) =>
{
_sendConversionCache.ClearCache();
};
}

private void SubscribeToArcGISEvents()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Speckle.Connectors.DUI.Models.Card;
using Speckle.Connectors.Utils.Common;
using Speckle.Sdk.Common;
using ArcProject = ArcGIS.Desktop.Core.Project;

namespace Speckle.Connectors.ArcGIS.Bindings;

Expand Down Expand Up @@ -45,7 +46,7 @@ public BasicConnectorBinding(DocumentModelStore store, IBridge parent)
return null;
}

return new DocumentInfo(MapView.Active.Map.URI, MapView.Active.Map.Name, MapView.Active.Map.Name);
return new DocumentInfo(ArcProject.Current.URI, MapView.Active.Map.Name, MapView.Active.Map.URI);
}

public DocumentModelStore GetDocumentState() => _store;
Expand Down

0 comments on commit 02e7ed9

Please sign in to comment.