Exemplo n.º 1
0
        public override List <Wall_Section> GetWallSections()
        {
            int inicio = ModeloFile.FindIndex(x => x.Contains("$ WALL/SLAB/DECK PROPERTIES")) + 1;
            int fin    = ModeloFile.FindIndex(x => x.Contains("$ LINK PROPERTIES")) - 2;

            ExtraerWallSections = new GetWallSectionsEtabs95();
            return(ExtraerWallSections.Get_Walls(ModeloFile, inicio, fin, Modelo));
        }
Exemplo n.º 2
0
        public override List <MPoint> GetPoints()
        {
            int inicio      = ModeloFile.FindIndex(x => x.Contains("$ POINT COORDINATES")) + 1;
            int Fin         = ModeloFile.FindIndex(x => x.Contains("$ LINE CONNECTIVITIES")) - 2;
            var RangePoints = ModeloFile.GetRange(inicio, Fin - inicio);

            ExtaerPuntos = new GetPointsEtabs();
            return(ExtaerPuntos.ExtraerPuntos(RangePoints));
        }
Exemplo n.º 3
0
        public override List <Material> GetMaterials()
        {
            int inicio = ModeloFile.FindIndex(x => x.Contains("$ MATERIAL PROPERTIES")) + 1;
            int fin    = ModeloFile.FindIndex(x => x.Contains("$ FRAME SECTIONS")) - 2;

            var TempMaterials = ModeloFile.GetRange(inicio, fin - inicio).Select(x => x.Split()[4]).Distinct().ToList();

            ExtraerMateriales = new GetMaterialsEtabs95();
            return(ExtraerMateriales.ExtraerMateriales(inicio, fin, ModeloFile, TempMaterials));
        }
Exemplo n.º 4
0
        public override List <Story> GetStories()
        {
            var   Stories = new List <Story>();
            Story Storyi = null;
            int   inicio = 0; int fin = 0;
            float Elevation = 0f;

            inicio = ModeloFile.FindIndex(x => x.Contains("$ STORIES - IN SEQUENCE FROM TOP")) + 1;
            fin    = ModeloFile.FindIndex(x => x.Contains("$ DIAPHRAGM NAMES")) - 2;

            IGetStory = new GetStoriesEtabs();
            return(IGetStory.ExtraerStories(Stories, ModeloFile, ref Storyi, inicio, fin, ref Elevation));
        }
Exemplo n.º 5
0
        public override void CreateFrames()
        {
            int inicio = ModeloFile.FindIndex(x => x.Contains("$ LINE CONNECTIVITIES")) + 1;
            int fin    = ModeloFile.FindIndex(x => x.Contains("$ AREA CONNECTIVITIES")) - 2;

            var TempLines = ModeloFile.GetRange(inicio, fin - inicio).ToList();

            int inicio2     = ModeloFile.FindIndex(x => x.Contains("$ LINE ASSIGNS")) + 1;
            int fin2        = ModeloFile.FindIndex(x => x.Contains("$ AREA ASSIGNS")) - 2;
            var TempAssigns = ModeloFile.GetRange(inicio2, fin2 - inicio2).ToList();

            FrameFactory = new FrameFactoryEtabs2018();

            foreach (string templine in TempLines)
            {
                var Framei = FrameFactory.CreateFrames(templine, Modelo.Points, TempAssigns, Modelo.Stories, Modelo.Sections);
                Modelo.Frames.AddRange(Framei);
            }
        }
Exemplo n.º 6
0
        public override List <ISection> GetFrameSections()
        {
            string[]        dummy = { };
            string          FrameName = "";
            string          Temp_material = "";
            Material        Material_dummy = null;
            int             inicio = 0; int fin = 0;
            int             indiceM          = 10;
            int             indiceB          = 13;
            ISection        framei           = null;
            List <ISection> concreteSections = new List <ISection>();

            inicio = ModeloFile.FindIndex(x => x.Contains("$ FRAME SECTIONS")) + 1;
            fin    = ModeloFile.FindIndex(x => x.Contains("$ CONCRETE SECTIONS")) - 2;

            ExtraerFrameSections = new GetFrameSectionsEtabs();

            return(ExtraerFrameSections.GetConcreteFrameSection(dummy, FrameName, Temp_material,
                                                                Material_dummy, inicio, fin, framei,
                                                                indiceM, indiceB, Modelo, ModeloFile));
        }