Revit.SDK.Samples.CurtainWallGrid.CS.GridDrawing.GetULines2D C# (CSharp) Method

GetULines2D() private method

get the U ("Horizontal") grid lines and their segments in GridLine2D format
private GetULines2D ( ) : void
return void
        private void GetULines2D()
        {
            int gridLineIndex = -1;
             foreach (CurtainGridLine line in m_geometry.UGridLines)
             {
            gridLineIndex++;
            // store the segment paths
            List<GraphicsPath> segPaths = new List<GraphicsPath>();

            // get the line2D and its segments
            GridLine2D line2D = ConvertToLine2D(line, segPaths, gridLineIndex);
            m_uGridLines2D.Add(line2D);

            // convert the grid line of GridLine2D format to GraphicsPath format
            GraphicsPath path = new GraphicsPath();
            path.AddLine(line2D.StartPoint, line2D.EndPoint);
            m_uLinePathList.Add(path);

            // store the segment paths to a list
            m_uSegLinePathListList.Add(segPaths);
             }
        }