Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings from perú!
For this opportunity, I'm looking to change the ceiling thickness:
so far I've managed to get the width value but I still confused about the appropriate syntax to change the width value:
List<HostObjAttributes> ceilings = new FilteredElementCollector(doc).WhereElementIsElementType().OfCategory(BuiltInCategory.OST_Ceilings).Cast<HostObjAttributes>().Where(ceiling=>ceiling.GetCompoundStructure() != null).ToList();
foreach (HostObjAttributes ceiling in ceilings) {
//stb.AppendLine(ceiling.Name);
if (ceiling.Name =="Soffit Only Above Cabinets - H10\"") {
IList<CompoundStructureLayer> layers = ceiling.GetCompoundStructure().GetLayers();
foreach (var layer in layers) {
layer.Width = 3;
}
}
}After running the script, the ceiling thickness does not change. I would appreciate some help on this one. Thanks in advance.
Best regards,
Miguel G
Solved! Go to Solution.