Okay, so this example works for elements on shared levels and grids workset.
-
My group of nodes that “Filter Out Non Model Elements” removes elements on the workset that don’t really have a category.
-
It then groups the selected elements by their category.
-
There is a category query that looks in the list of “Unique Keys” and gets the index of that category if it is a valid category in the output.
-
From there, you can determine the new workset you want it to go on.