From 46314c3f6efb4a14d5c4ed668676ff5f24e6f195 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Wed, 19 Jun 2024 14:24:18 +0100 Subject: [PATCH] some restructuring --- .../Utils/ArcGISFieldUtils.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/DUI3-DX/Converters/ArcGIS/Speckle.Converters.ArcGIS3/Utils/ArcGISFieldUtils.cs b/DUI3-DX/Converters/ArcGIS/Speckle.Converters.ArcGIS3/Utils/ArcGISFieldUtils.cs index 458b0e5ad7..36f663734a 100644 --- a/DUI3-DX/Converters/ArcGIS/Speckle.Converters.ArcGIS3/Utils/ArcGISFieldUtils.cs +++ b/DUI3-DX/Converters/ArcGIS/Speckle.Converters.ArcGIS3/Utils/ArcGISFieldUtils.cs @@ -106,11 +106,15 @@ public List GetFieldsFromSpeckleLayer(VectorLayer target) foreach (var baseObj in target) { // get all members by default, but only Dynamic ones from the basic geometry - var members = baseObj.GetMembers(DynamicBaseMemberType.All); + Dictionary members = new(); if (baseObj.speckle_type.StartsWith("Objects.Geometry")) { members = baseObj.GetMembers(DynamicBaseMemberType.Dynamic); } + else + { + members = baseObj.GetMembers(DynamicBaseMemberType.All); + } foreach (KeyValuePair field in members) { @@ -152,6 +156,10 @@ List fieldAdded TraverseAttributes(newAttributField, functionAdded, fieldsAndFunctions, fieldAdded); } } + else + { + // for now, ignore all other properties of Base type + } } else if (field.Value is IList attributeList) {