Walls auto dimensions

hey, I want to write an script that do auto dimension plan,
but when i try to get end and start points of wall I faced with this problem,
anyone knows how can I get walls points?

Thanks for attention

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