- Select all elements.
- Get workset using an Element.workset node (clockwork package I think but I could be wrong)
- List.GroupByKey where the list is all the elements and the key is the list of worksets.
You may want to use a Element.Name(universal) node (again I think it’s clockwork but maybe not) to work with workset names instead of elements. You can then make additional filters on the selection based on Element type, phase, whatever else you want to use to sift through the data, and then perform then set workset accordingly. See here for a good discussion on how: