如获取墙的结构材质:混凝土-现场浇筑混凝土
//拿到墙材质
WallType wallType = (walls[i] as Wall).WallType;
CompoundStructure wallCS = wallType.GetCompoundStructure();
CompoundStructureLayer wallLayer = wallCS.GetLayers().Where(r => r.Function == MaterialFunctionAssignment.Structure).FirstOrDefault<CompoundStructureLayer>();
ElementId wallMatId = wallLayer.MaterialId;
Material wallMat = doc.GetElement(wallMatId) as Material;