I try to access the layers of walls, floors, ceilings and roofs, but I only allow it in walls and floors, not in ceilings and roofs.
How could you access your layers and their materials?
Thank you for your answers!
Code:
CompoundStructure Construccion = null;
if (btnMUROS.Checked == true)
{
Wall Muro = seleccionado as Wall;
Construccion = Muro.WallType.GetCompoundStructure();
}
if (btnSUELOS.Checked == true)
{
Floor Suelo = seleccionado as Floor;
Construccion = Suelo.FloorType.GetCompoundStructure();
}
if (btnCUBIERTAS.Checked == true)
{
RoofType Cubierta = seleccionado as RoofType;
}
if (btnTECHOS.Checked == true)
{
CeilingType TipoTecho = seleccionado as CeilingType;
}
int NumeroCapas = Construccion.LayerCount;
//txtConstruccion.Text=Construccion.StructuralMaterialIndex.ToString();
IList<CompoundStructureLayer> ListaCapas = Construccion.GetLayers();
string LINEA = "Numero de capas = " + NumeroCapas + Environment.NewLine + "EXTERIOR";