Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sharedGridWorksetId=0
eleName = []
eleId= []
cats = List[BuiltInCategory]()
catNames = ['OST_CLines','OST_Grids','OST_VolumeOfInterest','OST_Levels']
for cn in catNames:
exec('cat = BuiltInCategory.'+cn)
cats.Add(cat)
filter = ElementMulticategoryFilter(cats,False)
elems = FilteredElementCollector(doc,doc.ActiveView.Id).WherePasses(filter).ToElements()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.