diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertAnalyticalSurface.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertAnalyticalSurface.cs index e81962d1c3..0178bb8f94 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertAnalyticalSurface.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertAnalyticalSurface.cs @@ -137,7 +137,7 @@ private Element2D AnalyticalSurfaceToSpeckle(AnalyticalModelSurface revitSurface } voidNodes.Add(loopNodes); } - //speckleElement2D.voids = voidNodes; + speckleElement2D.voids = voidNodes; //var mesh = new Geometry.Mesh(); //var solidGeom = GetElementSolids(structuralElement); @@ -149,21 +149,21 @@ private Element2D AnalyticalSurfaceToSpeckle(AnalyticalModelSurface revitSurface // Material DB.Material structMaterial = null; double thickness = 0; - var memberType = MemberType2D.Generic2D; + var memberType = MemberType.Generic2D; if (structuralElement is DB.Floor) { var floor = structuralElement as DB.Floor; structMaterial = Doc.GetElement(floor.FloorType.StructuralMaterialId) as DB.Material; thickness = GetParamValue(structuralElement, BuiltInParameter.STRUCTURAL_FLOOR_CORE_THICKNESS); - memberType = MemberType2D.Slab; + memberType = MemberType.Slab; } else if (structuralElement is DB.Wall) { var wall = structuralElement as DB.Wall; structMaterial = Doc.GetElement(wall.WallType.get_Parameter(BuiltInParameter.STRUCTURAL_MATERIAL_PARAM).AsElementId()) as DB.Material; thickness = ScaleToSpeckle(wall.WallType.Width); - memberType = MemberType2D.Wall; + memberType = MemberType.Wall; } var materialAsset = ((PropertySetElement)Doc.GetElement(structMaterial.StructuralAssetId)).GetStructuralAsset(); @@ -253,7 +253,7 @@ private Element2D AnalyticalSurfaceToSpeckle(AnalyticalModelSurface revitSurface prop.type = Structural.PropertyType2D.Shell; prop.thickness = thickness; - speckleElement2D["memberType"] = memberType; + speckleElement2D.memberType = memberType; speckleElement2D.property = prop; GetAllRevitParamsAndIds(speckleElement2D, revitSurface);