예제 #1
0
        public void material()
        {
            _SETUP init = new _SETUP(ref _c);

            init.initBlocks(tableMaterialRow);

            //List<string> layerNames = new List<string>() { materialLayer };
            //init.layers(layerNames);

            List <G.Area>      areas = getAllAreas(boxName);
            List <T.TableHead> heads = getAllTableHeads(tableHead);

            List <T.TableBendingRow>  rows     = getAllTableRows(tableBendingRow);
            List <T.TableMaterialRow> summarys = getAllTableSummarys(tableMaterialRow);

            T.HandlerMaterial    logic = new T.HandlerMaterial();
            List <T.DrawingArea> data  = logic.main(areas, heads, rows, summarys);

            material_output(data, tableMaterialRow[0]);
        }
예제 #2
0
        public void bending()
        {
            _SETUP init = new _SETUP(ref _c);

            init.initBlocks(tableBendingRow);

            //List<string> layerNames = new List<string>() { bendingLayer };
            //init.layers(layerNames);

            List <G.Area>              areas = getAllAreas(boxName);
            List <T.TableHead>         heads = getAllTableHeads(tableHead);
            List <T.ReinforcementMark> marks = getAllMarks();

            List <T.BendingShape>    bendings = getAllBendings(bendingShapes);
            List <T.TableBendingRow> rows     = getAllTableRows(tableBendingRow);

            T.HandlerBending     logic = new T.HandlerBending();
            List <T.DrawingArea> data  = logic.main(areas, heads, marks, bendings, rows);

            bending_output(data, tableBendingRow[0]);
        }
예제 #3
0
        public void check()
        {
            _SETUP init = new _SETUP(ref _c);

            //KONTROLL LAYER LUUAKSE HILJEM PROGRAMMIS, KUI ON VAJA
            //List<string> layerNames = new List<string>() { kontrollLayer };
            //init.initLayers(layerNames);

            List <G.Area>              areas = getAllAreas(boxName);
            List <T.TableHead>         heads = getAllTableHeads(tableHead);
            List <T.ReinforcementMark> marks = getAllMarks();

            List <T.BendingShape>     bendings = getAllBendings(bendingShapes);
            List <T.TableBendingRow>  rows     = getAllTableRows(tableBendingRow);
            List <T.TableMaterialRow> summarys = getAllTableSummarys(tableMaterialRow);

            T.HandlerChecker     logic = new T.HandlerChecker();
            List <T.DrawingArea> data  = logic.main(areas, heads, marks, bendings, rows, summarys);

            checker_output(init, data);
        }
예제 #4
0
        private int showErrors(_SETUP init, T.DrawingArea f)
        {
            if (f._errors.Count > 0)
            {
                List <string> layerNames = new List <string>()
                {
                    kontrollLayer
                };
                init.initLayers(layerNames);
            }

            foreach (T.ErrorPoint e in f._errors)
            {
                double      scale       = e.Scale;
                _Ge.Point3d insertPoint = new _Ge.Point3d(e.IP.X, e.IP.Y, 0);
                createCircle(5 * scale, insertPoint);
                createCircle(40 * scale, insertPoint);

                write(e.ErrorMessage);
            }

            return(f._errors.Count);
        }
예제 #5
0
        public void run()
        {
            //List<string> layerNames = new List<string>() { "K023TL", "Armatuur" };
            //init.start(blockNames, layerNames);

            _SETUP init = new _SETUP(ref _c);

            init.initBlocks(blockNames);

            getSettings();
            List <G.Line> polys = getGeometry();

            G.Point insertPoint = getBendingInsertionPoint();

            List <R.Raud>       reinf        = new List <R.Raud>();
            List <R.Raud_Array> reinf_array  = new List <R.Raud_Array>();
            List <R.Raud>       unique_reinf = new List <R.Raud>();

            L.ReinforcmentHandler logic = new L.ReinforcmentHandler(polys);
            logic.main(ref reinf, ref reinf_array, ref unique_reinf);

            output(reinf, reinf_array, unique_reinf, insertPoint);
        }
예제 #6
0
        public void checker_output(_SETUP init, List <T.DrawingArea> fields)
        {
            write(" ");
            write("----- VIGADE LOETELU ALGUS -----");

            int i = 0;

            foreach (T.DrawingArea f in fields)
            {
                if (f.Valid)
                {
                    showErrors(init, f);
                    i += f._errors.Count;
                }
                else
                {
                    write(f.Reason);
                }
            }

            write("----- VIGADE LOETELU LÕPP -----");
            write(" ");
            write("VIGADE ARV - " + i.ToString());
        }