Hello !
I’m currently developping a program in which my main objective is to extract the length and height of the walls of a room. (And thus for each one, mainly for the walls that go on the outside)
I’m aware that by using FilteredElementCollector, I could get the Built in “Height” Parameter, but I’d want to do that for a specific room. Is there any possibility to Isolate a room and then apply a code to it ?
I don’t have much code, I’m still searching for ideas of what to use from the API, yet I think something like this should work at a certain extent :
every_wall = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()
for wall in every_wall:
wall_type = wall.WallType.get_Parameter(BuiltInParameter.ALL_MODEL_TYPE_NAME).AsString()
wall_height = wall.get_Parameter(BuiltInParameter.WALL_USER_HEIGHT_PARAM).AsDouble()