Example #1
0
        public DrawingArea(bool pseudo)
        {
            _area = new G.Area(new G.Point(int.MinValue, int.MinValue), new G.Point(int.MaxValue, int.MaxValue));

            _tableHeads      = new List <TableHead>();
            _marks           = new List <ReinforcementMark>();
            _bendings        = new List <BendingShape>();
            _defaultMaterial = new List <BendingShape>();
            _rows            = new List <TableBendingRow>();
            _summarys        = new List <TableMaterialRow>();
            _errors          = new List <ErrorPoint>();

            _valid = true;
        }
Example #2
0
        public DrawingArea(G.Area area)
        {
            _area = area;

            _tableHeads      = new List <TableHead>();
            _marks           = new List <ReinforcementMark>();
            _bendings        = new List <BendingShape>();
            _defaultMaterial = new List <BendingShape>();
            _rows            = new List <TableBendingRow>();
            _summarys        = new List <TableMaterialRow>();
            _errors          = new List <ErrorPoint>();

            _valid = true;
        }
Example #3
0
        private List <G.Area> getBoxAreas(List <_Db.BlockReference> blocks)
        {
            List <G.Area> parse = new List <G.Area>();

            foreach (_Db.BlockReference block in blocks)
            {
                _Ge.Point3d IP  = block.Position;
                G.Point     min = new G.Point(IP.X, IP.Y);

                double dX = 0;
                double dY = 0;

                _Db.DynamicBlockReferencePropertyCollection aa = block.DynamicBlockReferencePropertyCollection;
                foreach (_Db.DynamicBlockReferenceProperty a in aa)
                {
                    if (a.PropertyName == "X Suund")
                    {
                        dX = (double)a.Value;
                    }
                    else if (a.PropertyName == "Y Suund")
                    {
                        dY = (double)a.Value;
                    }
                }

                if (dX != 0 || dY != 0)
                {
                    G.Point max  = new G.Point(IP.X + dX, IP.Y + dY);
                    G.Area  area = new G.Area(min, max);

                    parse.Add(area);
                }
            }

            return(parse);
        }