# How To Get An In-Built Parameter For Dynamo 1.2 ParameterFilterElement.ByRules

**URL:** <https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158>\
**Category:** Revit\
**Created:** [September 13, 2016, 11:19am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158 "2016-09-13T11:19:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 13, 2016, 11:19am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/1 "2016-09-13T11:19:50Z")

</div>

Hello

I’m trying to get a parameter for the new Dynamo 1.2 node ParameterFilterElement.ByRules but it throws an error as shown on the attached image. How do you get a Parameter from a Parameter Name? Thanks

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/d/db4d5db66f3e90f1aede09ab4174c8369d4b262f.png)

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [September 13, 2016, 11:46am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/2 "2016-09-13T11:46:10Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/6/6df595dca75121aa3b09de24b7f2cfa4bf62aa97.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 13, 2016, 2:05pm UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/3 "2016-09-13T14:05:58Z")

</div>

Thank you Einar. My only problem now is filtering out views that already contain the Filter:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/9/93bc8e0d9cfc0f6cb2c165806add044fa5d970fc.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 13, 2016, 2:58pm UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/4 "2016-09-13T14:58:04Z")

</div>

I’m very close now. If the ParameterFilterElement already exists then Dynamo throws an error…otherwise it works.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/f3aa2bf8590fbee152b181b4c5e24fe83a9302ce.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 13, 2016, 3:38pm UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/5 "2016-09-13T15:38:11Z")

</div>

It is possible that there is an error with the new ParameterFilterElement.ByRules. Each time I manually change the System Abbreviation the element IDs (circled red) remain the same. This means that my filters get overridden each time Dynamo is run. Shouldn’t these IDs be changing for new Parameter Filters?  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/d/d0450b35d8839fadded875689da8cdff5ae32bd6.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 14, 2016, 8:17am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/6 "2016-09-14T08:17:48Z")

</div>

I have also tried to search for existing ParameterFilterElements but I can’t work out how to extract their Names:  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b6ccbdba5eb8c46c613ea6bcea3408d9e9eab559.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Veasey](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ben_veasey/32/15775_2.png) [@Ben\_Veasey](https://forum.dynamobim.com/u/Ben_Veasey)\
**Post date:** [September 14, 2016, 8:56am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/7 "2016-09-14T08:56:18Z")

</div>

I’ve solved the Name problem by using the Element.Name node. I have also made the routine create a TemporaryFilter if the ParameterFilterElement already exists. The routine works BUT will still overwrite existing Filters due to the node generating the same Element IDs (as I circled red in an earlier post). Is this a bug in the new ParameterFilterElement node?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/729c8b9230aa2c567e7aca0b3626367f6998b220.png)

---

<div class="post-metadata">

**Author:** ![Giovanni\_Brogiolo](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Giovanni\_Brogiolo](https://forum.dynamobim.com/u/Giovanni_Brogiolo)\
**Post date:** [September 14, 2016, 8:57am UTC](https://forum.dynamobim.com/t/how-to-get-an-in-built-parameter-for-dynamo-1-2-parameterfilterelement-byrules/6158/8 "2016-09-14T08:57:43Z")

</div>

Hi Ben,

Regarding your last question, if you use Element.Name instead of Element.TypeName it works.

You could also use “Get All filter” form Hot Gear package.

Curiously you get the same result using “Filter Elements” or “Parameter Filter Elements”.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/6/6a1719fbb8816fa7b613bc778f146ab79407a756.PNG)
