示例#1
0
 public WallFrame(WallPolygon wallPolygon)
 {
     WallPolygon = wallPolygon;
     IfStuds     = new List <IfStud>();
     Plates      = new List <Plate>();
     IfSills     = new List <IfSill>();
     Headers     = new List <IfSill>();
 }
示例#2
0
        public void FrameWalls()
        {
            var          studTable               = StudTable.Load(StudTable.FilePath);
            var          exist                   = File.Exists(Table502_3_1.JoistTableLivingAreasPath);
            Table502_3_1 JoistTableLivingAreas   = Table502_3_1.Load(Table502_3_1.JoistTableLivingAreasPath);
            Table502_3_1 JoistTableSleepingAreas = Table502_3_1.Load(Table502_3_1.JoistTableSleepingAreasPath);
            Table502_5   HeadersTableExterior    = Table502_5.Load(Table502_5.HeadersTableExteriorPath);
            Table502_5   HeadersTableInterior    = Table502_5.Load(Table502_5.HeadersTableInteriorPath);


            var       walls    = IfModel.Instances.OfType <IfWall>().ToList();
            var       polygons = WallPolygon.GetPolygons(walls);
            WallFrame wf;

            foreach (var polygon in polygons)
            {
                try
                {
                    wf           = new WallFrame(polygon);
                    wf.StudTable = studTable;
                    wf.New();
                }
                catch (Exception e)
                {
                    Console.WriteLine("Error: " + e.Message);
                }
            }

            var        Floors       = IfModel.Instances.OfType <IfFloor>().ToList();
            var        floorPolygon = FloorPolygon.GetPolygons(Floors);
            FloorFrame Ff;

            foreach (var polygon in floorPolygon)
            {
                try
                {
                    Ff            = new FloorFrame(polygon);
                    Ff.JoistTable = JoistTableLivingAreas;
                    Ff.New();
                }
                catch (Exception e)
                {
                    Console.WriteLine("Error: " + e.Message);
                }
            }
        }
示例#3
0
 public WoodWall(WallPolygon wallPolygon)
 {
     WallPolygon = wallPolygon;
 }