Esempio n. 1
0
 public Algorithm(InputData input)
 {
     Input       = input;
     Outputs     = new List <OutPut>();
     RafterTable = new RafterTable();
     RafterTable.Load(RafterTable.FilePath);
     NailsTable = new NailsTable();
     NailsTable.Load(NailsTable.pFilePath);
 }
Esempio n. 2
0
        public static List <RafterCell> GetSpacing(InputData input)
        {
            List <RafterCell> ResRafterCells = new List <RafterCell>();
            string            s   = @"..\..\table01.txt";
            RafterTable       Rtb = new RafterTable();

            Rtb.Load(s);
            //Length L = new Length(5, 0);

            ResRafterCells = Rtb.Cells.Where(e => e.RafterSpan.ToInch() == input.RoofSpan &&
                                             e.Species == input.Species &&
                                             e.Grade == input.Grade
                                             ).OrderBy(v => v.RafterDepth).ToList();
            return(ResRafterCells);
        }