Skip to content

Commit 1278afa

Browse files
StephennipBHpeterjamesnugent
authored andcommitted
Update to formatting
1 parent 24a1fee commit 1278afa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

MidasCivil_Adapter/Convert/ToBHoM/Properties/ToConstraint6DOF.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
5757
}
5858
}
5959
supportName = delimitted[2].Trim();
60-
if (supportName=="")
60+
if (supportName == "")
6161
supportName = assignment;
62-
62+
6363
}
6464
else
6565
{
@@ -109,10 +109,10 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
109109
supportName = delimitted[21].Trim();
110110
if (supportName == "")
111111
{
112-
supportName = "Fx="+delimitted[8]+"Fy="+delimitted[9]+"Fz="+delimitted[10]+"Rx="+delimitted[11]+"Ry="+delimitted[12]+"Rz="+delimitted[13];
112+
supportName = "Fx=" + delimitted[8] + "Fy=" + delimitted[9] + "Fz=" + delimitted[10] + "Rx=" + delimitted[11] + "Ry=" + delimitted[12] + "Rz=" + delimitted[13];
113113
}
114114

115-
115+
116116
break;
117117

118118
default:
@@ -160,7 +160,7 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
160160
}
161161

162162
Constraint6DOF bhomConstraint6DOF = Engine.Structure.Create.Constraint6DOF(supportName, fixity, stiffness);
163-
163+
164164
bhomConstraint6DOF.SetAdapterId(typeof(MidasCivilId), supportName);
165165

166166
return bhomConstraint6DOF;

MidasCivil_Adapter/PrivateHelpers/GetPropertyAssignments.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ private Dictionary<string, List<int>> GetPropertyAssignments(string section, str
5858
switch (section)
5959
{
6060
case "CONSTRAINT":
61-
if (splitSection[2]=="")
61+
if (splitSection[2] == "")
6262
propertyAssignments.Add(splitSection[1], propertyAssignment);
6363
else
64-
propertyAssignments.Add(splitSection[2], propertyAssignment);
64+
propertyAssignments.Add(splitSection[2], propertyAssignment);
6565

6666
break;
6767
case "SPRING":
@@ -70,15 +70,15 @@ private Dictionary<string, List<int>> GetPropertyAssignments(string section, str
7070
case "8.9.5":
7171
case "8.9.0":
7272
case "8.8.5":
73-
if (splitSection[21]=="")
73+
if (splitSection[21] == "")
7474
{
75-
string name = "Fx="+splitSection[8]+"Fy="+splitSection[9]+"Fz="+splitSection[10]+"Rx="+splitSection[11]+
76-
"Ry="+splitSection[12]+"Rz="+splitSection[13];
75+
string name = "Fx=" + splitSection[8] + "Fy=" + splitSection[9] + "Fz=" + splitSection[10] + "Rx=" + splitSection[11] +
76+
"Ry=" + splitSection[12] + "Rz=" + splitSection[13];
7777
propertyAssignments.Add(name, propertyAssignment);
7878
}
79-
79+
8080
else
81-
propertyAssignments.Add(splitSection[21], propertyAssignment);
81+
propertyAssignments.Add(splitSection[21], propertyAssignment);
8282

8383
break;
8484
default:

0 commit comments

Comments
 (0)