Hi,
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?
Thanks!!
Hi,
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?
Thanks!!
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: https://github.com/ksobon/archi-lab/blob/master/Dynamo_0.8.X/getWorksets.py
There are also dropdown nodes in archi-lab package that will get you a single workset if that’s what you need.