Purge unused filter

I would like to purge unused filters because Revit does not automatically delete the filter. I have some problems with my dynamo:

  1. My dynamo worked with a warning " Element.get_Name operation failed." The referenced object is not valid, perhaps because it was deleted from the database or because its creation was canceled ”
  2. This dynamo displays unused filters but not used filters.
  3. It removes unused filters in a lightweight file. But it doesn’t work in big file. He thinks constantly.
    Thank you in advance!

Hi @Chika,

Use instead the OOTB List.SetDifference node.

Or with a Purge node:

6 Likes

Thanks for your response!
I can’t find “Element.Delete” node. Is it necessary to download a package?

Hi,

Element.Delete is an OOTB node in Dynamo 2.6 only.
For other Dynamo versions, use a custom node. For example, the Delete Elements node.

1 Like

It worked by adding Boolean! :raised_hands:

Hi @Alban_de_Chasteigner I really appreciate the work. It really helped me alot.
But a small request is that to know what are the deleted/purged elements. I want to know the names altleast from ids. Can you please tell me how to get element names from ids ?

Hi,
I can not find the node ( Genius loki_collector)