Return User-Created worksets

I am trying to return a list of the user created worksets in a document. I was looking at the FilteredWorksetCollector class, but there doesn’t seem to be away to extract only the User-Created ones.

Any one knows how to do that?


If you are looking for a code solution here’s a Python version:

userWorksets = FilteredWorksetCollector(doc).OfKind(WorksetKind.UserWorkset)

full working code can be found here:

There are also dropdown nodes in archi-lab package that will get you a single workset if that’s what you need.

1 Like