# Element.GetParameterValueByName returning null?

**URL:** <https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742>\
**Category:** Revit\
**Created:** [October 19, 2023, 8:35pm UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742 "2023-10-19T20:35:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFPDG](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MFPDG](https://forum.dynamobim.com/u/MFPDG)\
**Post date:** [October 19, 2023, 8:35pm UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/1 "2023-10-19T20:35:55Z")

</div>

I’m trying to get a Project Parameter that is Type based into anything, and its only returning null. Other parameter names from the same code block to other nodes are returning expected values, but there’s just nothing coming out of that one. Triple checked for typos, copied it directly over. For some reason the it seems like dynamo is not seeing the parameter - it’s not showing up in Element.ParameterExists, but I can see the parameter in objects in Revit.

Seems like I’m missing something obvious, thanks.

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [October 19, 2023, 8:48pm UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/2 "2023-10-19T20:48:40Z")

</div>

Show your script, please.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 19, 2023, 8:50pm UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/3 "2023-10-19T20:50:48Z")

</div>

Also a screenshot of the Revit model with the parameter in question visible in the properties pallet of the model element selected in Dynamo.

---

<div class="post-metadata">

**Author:** ![manhgt214](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/manhgt214/32/153251_2.png) [@manhgt214](https://forum.dynamobim.com/u/manhgt214)\
**Post date:** [October 20, 2023, 1:34am UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/4 "2023-10-20T01:34:09Z")

</div>

Instance Parameter and Type Parameter is difference.  
If that is Type Parameter you need get Type Element from Element .

---

<div class="post-metadata">

**Author:** ![MFPDG](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MFPDG](https://forum.dynamobim.com/u/MFPDG)\
**Post date:** [October 20, 2023, 2:05am UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/5 "2023-10-20T02:05:28Z")

</div>

That’s almost certainly it - it’s a Type Parameter. I’m not sure how I get the parameter value out of Type Element from Element though.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/d/0de978d6f2a356288422bb0d65874feccd717560.png)

---

<div class="post-metadata">

**Author:** ![manhgt214](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/manhgt214/32/153251_2.png) [@manhgt214](https://forum.dynamobim.com/u/manhgt214)\
**Post date:** [October 20, 2023, 2:11am UTC](https://forum.dynamobim.com/t/element-getparametervaluebyname-returning-null/94742/6 "2023-10-20T02:11:54Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/e/7ee55b74dac9c5ede4ae8e21aeff897bb294eaae.png)  
add Node Element.ElementType before get parameter of it
