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

GetVLines2D() private method

get the V ("Vertical") grid lines and their segments in GridLine2D format
private GetVLines2D ( ) : void
return void
        private void GetVLines2D()
        {
            int gridLineIndex = -1;
             foreach (CurtainGridLine line in m_geometry.VGridLines)
             {
            gridLineIndex++;
            // store the segment paths
            List<GraphicsPath> segPaths = new List<GraphicsPath>();
            // get the line2D and its segments
            GridLine2D line2D = ConvertToLine2D(line, segPaths, gridLineIndex);
            m_vGridLines2D.Add(line2D);

            GraphicsPath path = new GraphicsPath();
            path.AddLine(line2D.StartPoint, line2D.EndPoint);
            m_vLinePathList.Add(path);

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