# Select All Elements at Filter

**URL:** <https://forum.dynamobim.com/t/select-all-elements-at-filter/40912>\
**Category:** Packages\
**Tags:** revit, dynamo\
**Created:** [September 21, 2019, 6:17pm UTC](https://forum.dynamobim.com/t/select-all-elements-at-filter/40912 "2019-09-21T18:17:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [September 22, 2019, 2:21am UTC](https://forum.dynamobim.com/t/select-all-elements-at-filter/40912/2 "2019-09-22T02:21:14Z")

</div>

Maybe look here?

> [@Is there a way to specify what Revit Selection Set to use for a script?](https://forum.dynamobim.com/t/is-there-a-way-to-specify-what-revit-selection-set-to-use-for-a-script/39902/4):
>
> See below: [image] [filters.dyn](https://forum.dynamobim.com/uploads/short-url/ukvowqnsh1wu33DaDvYFKBcXurB.dyn) (6.5 KB) import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import \* clr.AddReference('RevitServices') from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument view = UnwrapElement(IN[0]) name = IN[1] selection\_sets = FilteredElementCollector(doc).OfClass(SelectionFilterElement) user\_selection = [] for s in selection\_sets: if s.Name == name: ids = s.GetElementIds() user\_selection = [do…

---

_[View the full topic](https://forum.dynamobim.com/t/select-all-elements-at-filter/40912)._
