# Set phase filter?

**URL:** <https://forum.dynamobim.com/t/set-phase-filter/67307>\
**Category:** Revit\
**Tags:** dynamo, views\
**Created:** [August 18, 2021, 2:34pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307 "2021-08-18T14:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmayesP84R8](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jmayesp84r8/32/120483_2.png) [@jmayesP84R8](https://forum.dynamobim.com/u/jmayesP84R8)\
**Post date:** [August 18, 2021, 2:34pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307/1 "2021-08-18T14:34:13Z")

</div>

Does anyone know of a node that allows you to set the Phase Filter of a view? If so, what package does it come from?  
I’m trying to change the phase filters of all of my views at the same time to a particular phase filter used by our company. Since there’s 700+ views in our template, I definitely don’t want to do this manually.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 18, 2021, 3:11pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307/2 "2021-08-18T15:11:27Z")

</div>

There’s nothing special about Phase Filter. You can set it using `SetParameterByName`. It does take the `PhaseFilter` element though. You can get those from `Element Types`.

---

<div class="post-metadata">

**Author:** ![jmayesP84R8](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jmayesp84r8/32/120483_2.png) [@jmayesP84R8](https://forum.dynamobim.com/u/jmayesP84R8)\
**Post date:** [August 18, 2021, 3:28pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307/3 "2021-08-18T15:28:36Z")

</div>

Sounds good  
I tried doing the SetParameterByName and I’m coming up with a couple errors

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/b/bb986e64e3b0428618b8f92a4e1bca862ec50b0c.png)  
Sorry for the mess of nodes, I tried a couple options. The first error I get is “Parameter’s storage type is not a string”. So I tried just imputing them directly from other nodes and it errors out says it expected Revit.Elements.Element,string,var and is getting string.string.string.  
Ideas from here?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 18, 2021, 3:36pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307/4 "2021-08-18T15:36:36Z")

</div>

Like I said, you need to be providing the `PhaseFilter` element, not a string. The error says you’re providing all strings, but the image shows you supplying the view element, so I think you’re good there. You just need to get the correct `PhaseFilter` from your project.

---

<div class="post-metadata">

**Author:** ![jmayesP84R8](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jmayesp84r8/32/120483_2.png) [@jmayesP84R8](https://forum.dynamobim.com/u/jmayesP84R8)\
**Post date:** [August 18, 2021, 3:40pm UTC](https://forum.dynamobim.com/t/set-phase-filter/67307/5 "2021-08-18T15:40:30Z")

</div>

Got it, that worked! Thanks so much!
