Model management can involve some tedious tasks. Cleaning up the mess created by an unruly user when he import all categories of an old Revit model is probably the most tedious of these tasks.
When someone import elements from another model, we quickly end up with thousand of view templates, filters, and other user created views which can become totally unmanageable.
Here come the BIM Manager, who spend two tedious days sorting these views and campaigning against view proliferation.
To help address this problem, I create a small piece of code for exporting every view, template and filter to three CSV files.
To read these files in a meaningful way, I use PowerPivot in Excel to create some kind of a small database, with two relationships :
We can then create tables displaying how filters and views are used, like how many filters are used, or where the templates are applied.
Once loaded in the PowerPivot tool, this data allows us to quickly identify which template or filter are used and delete the unwanted ones.
The entire source code is available below, please feel free to use it for your own projects.