Skip to content

Commit

Permalink
Update to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
StephennipBH authored and peterjamesnugent committed Sep 28, 2022
1 parent 24a1fee commit 1278afa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions MidasCivil_Adapter/Convert/ToBHoM/Properties/ToConstraint6DOF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
}
}
supportName = delimitted[2].Trim();
if (supportName=="")
if (supportName == "")
supportName = assignment;

}
else
{
Expand Down Expand Up @@ -109,10 +109,10 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
supportName = delimitted[21].Trim();
if (supportName == "")
{
supportName = "Fx="+delimitted[8]+"Fy="+delimitted[9]+"Fz="+delimitted[10]+"Rx="+delimitted[11]+"Ry="+delimitted[12]+"Rz="+delimitted[13];
supportName = "Fx=" + delimitted[8] + "Fy=" + delimitted[9] + "Fz=" + delimitted[10] + "Rx=" + delimitted[11] + "Ry=" + delimitted[12] + "Rz=" + delimitted[13];
}


break;

default:
Expand Down Expand Up @@ -160,7 +160,7 @@ public static Constraint6DOF ToConstraint6DOF(this string support, string versio
}

Constraint6DOF bhomConstraint6DOF = Engine.Structure.Create.Constraint6DOF(supportName, fixity, stiffness);

bhomConstraint6DOF.SetAdapterId(typeof(MidasCivilId), supportName);

return bhomConstraint6DOF;
Expand Down
14 changes: 7 additions & 7 deletions MidasCivil_Adapter/PrivateHelpers/GetPropertyAssignments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ private Dictionary<string, List<int>> GetPropertyAssignments(string section, str
switch (section)
{
case "CONSTRAINT":
if (splitSection[2]=="")
if (splitSection[2] == "")
propertyAssignments.Add(splitSection[1], propertyAssignment);
else
propertyAssignments.Add(splitSection[2], propertyAssignment);
propertyAssignments.Add(splitSection[2], propertyAssignment);

break;
case "SPRING":
Expand All @@ -70,15 +70,15 @@ private Dictionary<string, List<int>> GetPropertyAssignments(string section, str
case "8.9.5":
case "8.9.0":
case "8.8.5":
if (splitSection[21]=="")
if (splitSection[21] == "")
{
string name = "Fx="+splitSection[8]+"Fy="+splitSection[9]+"Fz="+splitSection[10]+"Rx="+splitSection[11]+
"Ry="+splitSection[12]+"Rz="+splitSection[13];
string name = "Fx=" + splitSection[8] + "Fy=" + splitSection[9] + "Fz=" + splitSection[10] + "Rx=" + splitSection[11] +
"Ry=" + splitSection[12] + "Rz=" + splitSection[13];
propertyAssignments.Add(name, propertyAssignment);
}

else
propertyAssignments.Add(splitSection[21], propertyAssignment);
propertyAssignments.Add(splitSection[21], propertyAssignment);

break;
default:
Expand Down

0 comments on commit 1278afa

Please sign in to comment.