Get unused filters
Within Revit, there are certain elements which cannot be easily purged. For example, the out-of-the-box ‘Purge Unused’ command (Manage > Settings > Purged Unused) is unable to delete filters, view templates or line styles. Even with the aid of Ideate Explorer, we are unable to select them and therefore, unable to delete them.
While it’s possible to delete these items manually, this isn’t always a straight forward process. When deleting filters, Revit will indiscriminately delete filters, without forewarning you that the filter is currently in use. This limitation means that there is no way to differentiate between those filters are in use and those who aren’t.
When deleting view templates, Revit will at least warn you that the view template is in use and give you the option to choose a replacement view template. But this is a very labour intensive task to go through each view template, one-by-one, see if it is in use, and if not, delete.
To help solve this problem, BVN has published a custom node as part of the BVN Dynamo Package. The ‘Filter.GetUnused‘ custom node collects all the unused filters in the project so that it can be used in conjunction with either the ‘Tool. Eraser’ node from the SteamNodes Dynamo package or the ‘Delete Elements’ node from the Grimshaw Dynamo package.