Script Reader
Tower-A_EPC.rvt
Filter scripts…
wall_audit.py · QA
sheet_index.py · sheets
purge_unused.py · cleanup
tag_all_rooms.py · annotate
export_schedules.py · export
renumber_grids.py · grids
copy_view_filters.py · views
param_report.py · params
8 scripts
wall_audit.py
sheet_index.py •
Save
# -*- coding: utf-8 -*- # doc / uidoc / __revit__ / selection() are pre-loaded. from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory def audit_walls(doc): walls = (FilteredElementCollector(doc) .OfCategory(BuiltInCategory.OST_Walls) .WhereElementIsNotElementType() .ToElements()) for w in walls: if w.LookupParameter("Fire Rating") is None: print("Missing rating:", w.Id) audit_walls(doc)
INTERACTIVE CONSOLE Clear Output Reset Session
Script Reader console — Python 3.4 (IronPython 3.4.2)
doc / uidoc / __revit__ / selection() / s0() pre-loaded; alert() prints here; quit() closes the window.
 
── Running wall_audit.py ──
Missing rating: 883412
Missing rating: 883910
── Finished OK ──
>>> len(selection())
3
Enter ↵