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)); }
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)); }
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); } }