From dd17d364c7892a3c7b9b65a0fb512f07f2d3a223 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Thu, 17 Oct 2024 16:53:45 +0100 Subject: [PATCH] fix(dui3): ensures we don't override structure layers where there's two materials of the same type in the same type, they would override each other; nevertheless, having two plywood layers for one wall is totally acceptable. --- .../ToSpeckle/Parameters/ParameterExtractor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Converters/Revit/Speckle.Converters.RevitShared/ToSpeckle/Parameters/ParameterExtractor.cs b/Converters/Revit/Speckle.Converters.RevitShared/ToSpeckle/Parameters/ParameterExtractor.cs index 6f93643b..5175d34a 100644 --- a/Converters/Revit/Speckle.Converters.RevitShared/ToSpeckle/Parameters/ParameterExtractor.cs +++ b/Converters/Revit/Speckle.Converters.RevitShared/ToSpeckle/Parameters/ParameterExtractor.cs @@ -77,7 +77,8 @@ ILogger logger { if (_settingsStore.Current.Document.GetElement(layer.MaterialId) is DB.Material material) { - structureDictionary[material.Name] = new Dictionary() + var uniqueLayerName = $"{material.Name} ({layer.LayerId})"; + structureDictionary[uniqueLayerName] = new Dictionary() { ["material"] = material.Name, ["function"] = layer.Function.ToString(),