Skip to content

Commit

Permalink
Hanger check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enarhi committed Sep 13, 2019
1 parent b266621 commit fe1349f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RAM_Adapter/CRUD/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private bool CreateCollection(IEnumerable<Bar> bhomBars)
double.TryParse(startCantObj == null ? "" : startCantObj.ToString(), out startCant);
double.TryParse(endCantObj == null ? "" : startCantObj.ToString(), out endCant);

if (isStubCant == "True" || isStubCant == "1") //Check bool per RAM or GH preferred boolean context
if (isStubCant.Equals("True") || isStubCant.Equals("1")) //Check bool per RAM or GH preferred boolean context
{
Point startPt, endPt;
if (startCant > 0) // Ensure startPt corresponds with support point
Expand Down Expand Up @@ -194,7 +194,7 @@ private bool CreateCollection(IEnumerable<Bar> bhomBars)
bar.CustomData.TryGetValue("IsHangingColumn", out isHanging);
isHanging = isHanging == null ? "" : isHanging.ToString();

if (isHanging == "True" || isHanging == "1") //Check bool per RAM or GH preferred boolean context
if (isHanging.Equals("True") || isHanging.Equals("1")) //Check bool per RAM or GH preferred boolean context
{
ramColumn = ramColumns.Add3(bar.SectionProperty.Material.ToRAM(), xBtm, yBtm, xTop, yTop, 0, 0, 1); //No Z offsets, cols start and end at stories
}
Expand Down

0 comments on commit fe1349f

Please sign in to comment.