From 02e7ed95b4686e678ef74542a032fa2caa581850 Mon Sep 17 00:00:00 2001 From: KatKatKateryna <89912278+KatKatKateryna@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:20:47 +0100 Subject: [PATCH] AGIS more specific document naming (#218) * more specific document naming * clear cache --- .../Speckle.Connectors.ArcGIS3/Bindings/ArcGISSendBinding.cs | 4 ++++ .../Bindings/BasicConnectorBinding.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/ArcGISSendBinding.cs b/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/ArcGISSendBinding.cs index 145511541..444f65715 100644 --- a/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/ArcGISSendBinding.cs +++ b/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/ArcGISSendBinding.cs @@ -77,6 +77,10 @@ MapMembersUtils mapMemberUtils Parent = parent; Commands = new SendBindingUICommands(parent); SubscribeToArcGISEvents(); + _store.DocumentChanged += (_, _) => + { + _sendConversionCache.ClearCache(); + }; } private void SubscribeToArcGISEvents() diff --git a/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/BasicConnectorBinding.cs b/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/BasicConnectorBinding.cs index fdc7ba8dd..c2ccada09 100644 --- a/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/BasicConnectorBinding.cs +++ b/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Bindings/BasicConnectorBinding.cs @@ -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; @@ -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;