Walls auto dimensions

You need to get the walls’ curves (lines) from the wall elements:

walls = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().ToElements()
wallLocations = [wall.Location for wall in walls]
wallCurves = [wallLoc.Curve for wallLoc in wallLocations]

Then use for i in wallCurves where you currently have for i in walls

1 Like