diff --git a/MidasCivil_Adapter/Convert/ToBHoM/Properties/ToSurfaceProperty.cs b/MidasCivil_Adapter/Convert/ToBHoM/Properties/ToSurfaceProperty.cs index fab02025..9a46b9a4 100644 --- a/MidasCivil_Adapter/Convert/ToBHoM/Properties/ToSurfaceProperty.cs +++ b/MidasCivil_Adapter/Convert/ToBHoM/Properties/ToSurfaceProperty.cs @@ -61,8 +61,13 @@ public static ISurfaceProperty ToSurfaceProperty(this string surfaceProperty, st constantThickness = new ConstantThickness { Thickness = System.Convert.ToDouble(split[4].Trim()).LengthToSI(lengthUnit), - Name = "t = " + split[4].Trim() }; + + if (split[2].Trim() != "1") + constantThickness.Name = split[2].Trim(); + else + constantThickness.Name = "t = " + split[4].Trim(); + break; } diff --git a/MidasCivil_Adapter/Convert/ToMidasCivil/Properties/FromSurfaceProperty.cs b/MidasCivil_Adapter/Convert/ToMidasCivil/Properties/FromSurfaceProperty.cs index 218a81ae..0dda9650 100644 --- a/MidasCivil_Adapter/Convert/ToMidasCivil/Properties/FromSurfaceProperty.cs +++ b/MidasCivil_Adapter/Convert/ToMidasCivil/Properties/FromSurfaceProperty.cs @@ -72,7 +72,7 @@ private static string CreateSurfaceProfile(ConstantThickness bhomSurfaceProperty break; default: midasSurfaceProperty = - bhomSurfaceProperty.AdapterId(typeof(MidasCivilId)) + ",VALUE,1,Yes," + + bhomSurfaceProperty.AdapterId(typeof(MidasCivilId)) + ",VALUE," + new string(bhomSurfaceProperty.DescriptionOrName().Replace(",", "").Take(groupCharacterLimit).ToArray()) + ",Yes," + bhomSurfaceProperty.Thickness.LengthFromSI(lengthUnit) + ",0,No,0,0"; break; }