Selecting 'All' Elements in Project

i want to Delete ‘ALL’ Elements that are not in my section box of the ‘Current View’

I got a list of elements in active View and then got A List of all categories and looped it in ’ all element by category ’ to get all elements in projects, then compare it with elements in acitve view and delete those that does not match.

But this is highly impractical and doesnt work for large projects and gets stuck when comparing the elements. is there a more practical way to do this??

  1. Use Dynamo to get the elements in the active view (the one with the scope box) and add them to a selection set.
  2. Change to a new view of the entire model, and use Dynamo turn off the selection set items via filters, then get all elements in the active view (post hide), and delete them.
1 Like