Exemple #1
0
        private void fabricarBarras()
        {
            T3D.Point p1 = new T3D.Point(XBarras(offset), p.min.Y - p.adicionalInferior, z2());
            T3D.Point p2 = new T3D.Point(XBarras(offset), p.max.Y + p.adicionalSuperior, z2());
            T3D.Point p3 = new T3D.Point(XBarras(offset), p.min.Y - p.adicionalInferior, z1());
            T3D.Point p4 = new T3D.Point(XBarras(offset), p.max.Y + p.adicionalSuperior, z1());

            SingleRebar barra1 = FabricaElementosPanel.createBarraLongitudinal(p1, p2, p.diametroBarras);
            SingleRebar barra2 = FabricaElementosPanel.createBarraLongitudinal(p3, p4, p.diametroBarras);

            barra1.Father = p.muro;
            barra2.Father = p.muro;

            barra1.Insert();
            barra2.Insert();
        }
Exemple #2
0
        private void fabricarBarras()
        {
            T3D.Point p1 = new T3D.Point(x1(), YBarras(offset), z2());
            T3D.Point p2 = new T3D.Point(x2(), YBarras(offset), z2());
            T3D.Point p3 = new T3D.Point(x1(), YBarras(offset), z1());
            T3D.Point p4 = new T3D.Point(x2(), YBarras(offset), z1());

            SingleRebar barra1 = FabricaElementosPanel.createBarraLongitudinal(p1, p2, p.diametroBarras);
            SingleRebar barra2 = FabricaElementosPanel.createBarraLongitudinal(p3, p4, p.diametroBarras);

            barra1.Father = p.muro;
            barra2.Father = p.muro;

            barra1.Insert();
            barra2.Insert();
        }
        static private void ungroupRebar(TSM.RebarGroup current)
        {
            ArrayList currentPolygons = current.GetRebarGeometries(true);

            foreach (TSM.RebarGeometry geo in currentPolygons)
            {
                TSM.Polygon poly   = new TSM.Polygon();
                PolyLine    line   = geo.Shape;
                ArrayList   points = line.Points;

                poly.Points = points;

                SingleRebar single = new SingleRebar();
                single.Polygon = poly;
                single.Father  = current.Father;

                single.Name = current.Name;

                single.Class        = current.Class;
                single.Size         = current.Size;
                single.Grade        = current.Grade;
                single.RadiusValues = current.RadiusValues;

                single.NumberingSeries.StartNumber = current.NumberingSeries.StartNumber;
                single.NumberingSeries.Prefix      = current.NumberingSeries.Prefix;

                single.OnPlaneOffsets = new ArrayList();
                single.OnPlaneOffsets.Add(0.0);
                single.StartHook.Angle  = -90;
                single.StartHook.Length = 10;
                single.StartHook.Radius = 10;
                single.StartHook.Shape  = RebarHookData.RebarHookShapeEnum.NO_HOOK;
                single.EndHook.Angle    = 90;
                single.EndHook.Length   = 10;
                single.EndHook.Radius   = 10;
                single.EndHook.Shape    = RebarHookData.RebarHookShapeEnum.NO_HOOK;

                single.Insert();
            }

            current.Delete();
            MessageBox.Show(currentPolygons.Count.ToString());
        }
        internal static SingleRebar GetSingleRebar()
        {
            var beam  = GetBeam();
            var solid = beam.GetSolid();

            Polygon Polygon = new Polygon();

            Polygon.Points.Add(new Point(solid.MinimumPoint.X, solid.MaximumPoint.Y, solid.MaximumPoint.Z));
            Polygon.Points.Add(new Point(solid.MaximumPoint.X, solid.MaximumPoint.Y, solid.MaximumPoint.Z));

            SingleRebar singleRebar = new SingleRebar
            {
                Polygon        = Polygon,
                Father         = beam,
                Name           = "SingleRebar",
                Class          = 9,
                Size           = "12",
                Grade          = "A500HW",
                OnPlaneOffsets = new ArrayList {
                    25.00
                },
                NumberingSeries = new NumberingSeries("Single", 0),
                StartHook       = new RebarHookData()
                {
                    Angle  = -90,
                    Length = 10,
                    Radius = 10,
                    Shape  = RebarHookData.RebarHookShapeEnum.CUSTOM_HOOK
                },
                EndHook = new RebarHookData()
                {
                    Angle  = 90,
                    Length = 10,
                    Radius = 10,
                    Shape  = RebarHookData.RebarHookShapeEnum.CUSTOM_HOOK
                }
            };

            singleRebar.Insert();
            return(singleRebar);
        }
Exemple #5
0
        private void fabricarDiagonales()
        {
            double i = p.max.Y - p.dy - DISTANCIA_A_TUBO;

            while (i - NORMAL_DIAGONAL > p.min.Y)
            {
                T3D.Point p1 = new T3D.Point(XDiagonal(offset), i, z1());
                T3D.Point p2 = new T3D.Point(XDiagonal(offset), p1.Y - NORMAL_DIAGONAL, z2());
                T3D.Point p3 = new T3D.Point(XDiagonal(offset), p2.Y - 50.0, z2());
                T3D.Point p4 = new T3D.Point(XDiagonal(offset), p3.Y - NORMAL_DIAGONAL, z1());

                SingleRebar d1 = FabricaElementosPanel.createDiagonal(p1, p2, p.diametroDiagonal);
                SingleRebar d2 = FabricaElementosPanel.createDiagonal(p3, p4, p.diametroDiagonal);

                d1.Father = p.muro;
                d2.Father = p.muro;

                d1.Insert();
                d2.Insert();

                i -= 400.0;
            }
        }
Exemple #6
0
        private void fabricarDiagonales()
        {
            double i = -(p.min.X + p.dx + DISTANCIA_A_TUBO);

            while (-i + NORMAL_DIAGONAL < p.max.X)
            {
                T3D.Point p1 = new T3D.Point(-i, YDiagonal(offset), z2());
                T3D.Point p2 = new T3D.Point(p1.X + NORMAL_DIAGONAL, YDiagonal(offset), z1());
                T3D.Point p3 = new T3D.Point(p2.X + 50.0, YDiagonal(offset), z1());
                T3D.Point p4 = new T3D.Point(p3.X + NORMAL_DIAGONAL, YDiagonal(offset), z2());

                SingleRebar d1 = FabricaElementosPanel.createDiagonal(p1, p2, p.diametroDiagonal);
                SingleRebar d2 = FabricaElementosPanel.createDiagonal(p3, p4, p.diametroDiagonal);

                d1.Father = p.muro;
                d2.Father = p.muro;

                d1.Insert();
                d2.Insert();

                i -= 400.0;
            }
        }