Community
hii
IList<Autodesk.Revit.DB.CompoundStructureLayer> csl = new List<Autodesk.Revit.DB.CompoundStructureLayer>(); CompoundStructure cs = CompoundStructure.CreateSimpleCompoundStructure(csl); cs.SetNumberOfShellLayers(ShellLayerType.Exterior, firstCoreLayerIndex); cs.SetNumberOfShellLayers(ShellLayerType.Interior, lastCorelayerIndex); if (cs.IsValid(dbDoc, out IDictionary<int, CompoundStructureError> errMap, out IDictionary<int, int> twoLayerErrorMap)) { wallType.SetCompoundStructure(cs); }