From 39d9687e87c5fa43942d8d944689e0f263aa28a7 Mon Sep 17 00:00:00 2001 From: KatKatKateryna <89912278+KatKatKateryna@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:24:12 +0100 Subject: [PATCH] formatting (#3596) --- .../ConverterRevitShared/ConverterRevit.cs | 10 +++++++--- .../PartialClasses/ConvertPolygonElement.cs | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs index 1f7e2ae368..36fc3ba036 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs @@ -737,7 +737,6 @@ public object ConvertToNativeObject(Base @object) case GisFeature o: return GisFeatureToNative(o); - #if (REVIT2024) case RevitToposolid o: return ToposolidToNative(o); @@ -914,8 +913,13 @@ public bool CanConvertToNative(Base @object) Organization.DataTable _ => true, // GIS PolygonElement _ => true, - GisFeature feat when (feat.GetMembers(DynamicBaseMemberType.All).TryGetValue("displayValue", out var value) && - value is List valueList && valueList.Count > 0) => true, + GisFeature feat + when ( + feat.GetMembers(DynamicBaseMemberType.All).TryGetValue("displayValue", out var value) + && value is List valueList + && valueList.Count > 0 + ) + => true, _ => false, }; if (objRes) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertPolygonElement.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertPolygonElement.cs index 472f2f24dc..25f0dbcf0a 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertPolygonElement.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertPolygonElement.cs @@ -37,8 +37,8 @@ public ApplicationObject GisFeatureToNative(GisFeature gisFeature) }; } return DirectShapeToNative(speckleDirectShape, ToNativeMeshSettingEnum.Default); - } + public ApplicationObject PolygonElementToNative(PolygonElement polygonElement) { var speckleDirectShape = new Objects.BuiltElements.Revit.DirectShape()