Skip to content

Commit

Permalink
fix one missing
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Aug 23, 2024
1 parent 6a2770a commit e88d390
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenMEPRevit/Element/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private Element()
{ "RightGrids", null }
};
}
List<GridItem> gridItems = GetGrids(DocumentManager.Instance.CurrentDBDocument);
List<GridItem> gridItems = grids.Select(x => new GridItem(x.InternalElement as Grid)).ToList();
var xGrids = gridItems.Where(x => x.IsHorizontal).ToList();
var yGrids = gridItems.Where(x => x.IsVertical).ToList();
topGrids = xGrids.Where(x => x?.Grid?.Curve.GetEndPoint(0).Y >= location.Y)
Expand All @@ -216,7 +216,6 @@ private Element()
{ "RightGrids", rightGrids.Select(x => x?.ToDynamoType()).ToList() }
};
}

/// <summary>
/// Get the location of the element belong to the grid line with the closest distance
/// the location include the top, bottom, left, right grid line
Expand Down

0 comments on commit e88d390

Please sign in to comment.