From ff929b3ea50abaa51608eaeb47009bc2a6a32107 Mon Sep 17 00:00:00 2001 From: Matteo Cominetti Date: Wed, 11 Dec 2024 19:25:06 +0000 Subject: [PATCH] fix: update direct shape parameters when it already exists (#3664) --- .../ConverterRevitShared/PartialClasses/ConvertDirectShape.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertDirectShape.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertDirectShape.cs index e71083bb48..020c67c8f6 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertDirectShape.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertDirectShape.cs @@ -185,6 +185,7 @@ public ApplicationObject DirectShapeToNative(DirectShape speckleDs, ToNativeMesh if (existingObj != null && existingObj is DB.DirectShape existingDS) // if it's a directShape, just update { existingDS.SetShape(converted); + SetInstanceParameters(existingDS, speckleDs); appObj.Update(status: ApplicationObject.State.Updated, createdId: existingDS.UniqueId, convertedItem: existingDS); return appObj; }