Message 1 of 12
Not applicable
03-26-2021
04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
If you look at the image, there is a red wall and there are rooms up and down.
Can you find rooms with walls?
What function should I use and how should I access it?
var walls = new FilteredElementCollector(document)
.WhereElementIsNotElementType()
.OfCategory(BuiltInCategory.OST_Walls)
.OfClass(typeof(Wall))
.Cast<Wall>()
.Where(x => x.LevelId.Equals(level.Id));
foreach (var wall in walls)
{
if (wall.Id.ToString().Equals("3359963"))//wall Id
{
var element = document.GetElement(wall.Id);
var parameter = element.get_Parameter(BuiltInParameter.WALL_ATTR_ROOM_BOUNDING); // 1 bounding, 0 no bounding
var value = parameter.AsValueString();
;
}
}I tried, but I have no idea.
Thanks.
Solved! Go to Solution.
Developer Advocacy and Support + 
