Skip to content

Commit 44cd329

Browse files
KalleEdstroempeterjamesnugent
authored andcommitted
Changed the way constantThickness is read
1 parent f661729 commit 44cd329

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

MidasCivil_Adapter/Convert/ToBHoM/Properties/ToSurfaceProperty.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ public static ISurfaceProperty ToSurfaceProperty(this string surfaceProperty, st
6161
constantThickness = new ConstantThickness
6262
{
6363
Thickness = System.Convert.ToDouble(split[4].Trim()).LengthToSI(lengthUnit),
64-
Name = "t = " + split[4].Trim()
6564
};
65+
66+
if (split[2].Trim() != "1")
67+
constantThickness.Name = split[2].Trim();
68+
else
69+
constantThickness.Name = "t = " + split[4].Trim();
70+
6671
break;
6772
}
6873

0 commit comments

Comments
 (0)