# Door - Interior/Exterior Function Parameter

**URL:** <https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112>\
**Category:** Revit\
**Created:** [August 18, 2017, 2:44pm UTC](https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112 "2017-08-18T14:44:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip\_Sheridan](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phillip\_Sheridan](https://forum.dynamobim.com/u/Phillip_Sheridan)\
**Post date:** [August 18, 2017, 2:44pm UTC](https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112/1 "2017-08-18T14:44:02Z")

</div>

Can anyone tell me why the “get parameter value” node won’t read the “Function” parameter (the built in function that shows whether a door is internal or external. Is there another one i can use ? I tried a few alternatives from the package manager to no avail

---

<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:** [August 18, 2017, 7:24pm UTC](https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112/2 "2017-08-18T19:24:53Z")

</div>

Function is a type parameter, not an instance. As such you need to get the family type before you can ask what the function is.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8b32c97c48e625051f9d20a9f644e91555225133.PNG)

Put this in a code block as shown above and I think you’ll get the results you’re looking for.

```
a.Type.GetParameterValueByName("Function")==0?
"Interior":
"Exterior";

```

Note: This changes the default 0/1 response of the parameter value to a string of Interior or Exterior, which is what the built in drop down allows you to select (0 is interior, 1 is exterior).

If you need to set the parameter values after you pull them then you will need to feed the types a 0 or 1 accordingly (not interior or exterior).

---

<div class="post-metadata">

**Author:** ![Phillip\_Sheridan](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phillip\_Sheridan](https://forum.dynamobim.com/u/Phillip_Sheridan)\
**Post date:** [August 21, 2017, 1:23pm UTC](https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112/3 "2017-08-21T13:23:11Z")

</div>

Thanks Jacob, i knew it was a type parameter but I couldn’t get the Get Type Parameter Value By Name node to work either - I didn’t realise the output was 1 or 0 as it comes out as text in the object properties dialogue box in revit.

---

<div class="post-metadata">

**Author:** ![Phillip\_Sheridan](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phillip\_Sheridan](https://forum.dynamobim.com/u/Phillip_Sheridan)\
**Post date:** [August 21, 2017, 1:41pm UTC](https://forum.dynamobim.com/t/door-interior-exterior-function-parameter/14112/5 "2017-08-21T13:41:04Z")

</div>

Thanks - I was just trying to filter out external doors in a door renumbering graph (they would be numbered differently) so the 1 or 0 works fine for me
