From 3d93bfaf689c96a407467daf5d6b6a1fe41969fc Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Mon, 24 Jun 2024 17:28:52 +0100 Subject: [PATCH] read metadata from existing map --- .../Utils/ArcGisDocumentStore.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Utils/ArcGisDocumentStore.cs b/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Utils/ArcGisDocumentStore.cs index 449b848b74..819632665c 100644 --- a/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Utils/ArcGisDocumentStore.cs +++ b/DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3/Utils/ArcGisDocumentStore.cs @@ -35,6 +35,14 @@ ITopLevelExceptionHandler topLevelExceptionHandler }, true ); + + // in case plugin was loaded into already opened Map, read metadata from the current Map + if (IsDocumentInit == false) + { + IsDocumentInit = true; + ReadFromFile(); + OnDocumentChanged(); + } } private void OnProjectClosing()