Dear Experts,
I was wondering if it is possible to select all elements by category and open workset (all elements which its workset is open on the project file).
By this way planing to speed up dynamo operation on the large project, if it is possible?
import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import SimpleWorksetConfiguration
import System
OUT = System.Enum.GetValues(Autodesk.Revit.DB.SimpleWorksetConfiguration)
I am appreciate your effort.
However, i guess you misunderstood me. Let me explain task more comprehensibly:
We have a lot of 100 peaces of doors, 100 peaces of windows and etc. in our project.
20 peace of door are in the basement, another 20 peace of door are in the Bina 1, another 20 peace of door are in the Bina 2, another 20 peace of door are in the Bina 3 and another 20 peace of door are in the Bina 4.
I want to get only doors which are at “basement” workset. (As you can see basement workset is open now.) Only 20 peaces of doors will be result.
If you don’t want to write your own code you can use something like GeniusLoci’s Collector of UserWorksets to determine which worksets are open. Then it’s just a matter of comparing values against the elements in your project.