# Is there a way to access custom View Types?

**URL:** <https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644>\
**Category:** Revit\
**Tags:** views\
**Created:** [April 7, 2021, 10:41pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644 "2021-04-07T22:41:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 10:41pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/1 "2021-04-07T22:41:02Z")

</div>

I have created several view types and am wondering if there is a way to access them in Dynamo. For example, I want to use the Filter by Boolean Mask node to narrow a list down to my “Code Plans” views. See the image below for Types of my Floor Plan views.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/eb24618dadf1d4f1061e3c4fc2bafc5e49c19d42.png)

Based on the nodes I have (OOTB and a few packages) I do not see a way. This parameter is not showing up as a Family Type, Element Type, or simply “Type” via the Get Parameter Value by Name node.

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [April 7, 2021, 10:47pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/2 "2021-04-07T22:47:05Z")

</div>

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

There’s probably a more elegant way, but here’s an example (index 20 would be an extra floor plan type made for this example).

This method is pulling every view type, you may have to pre-filter the floor plan types out via the Family Name to avoid clutter.

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:06pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/3 "2021-04-07T23:06:46Z")

</div>

Wow. This list is quite unorganized, even when I filter down to only Floor Plan views. For each list of level 2 items the parameters are in a different order. For one item the Type Name is index 36, for another it is index 51. Furthermore, most of the views don’t have values for Family, Type, Type Name, Family and Type, etc.

This doesn’t seem worth it.

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [April 7, 2021, 11:06pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/4 "2021-04-07T23:06:52Z")

</div>

ViewFamilyType in Rhythm will give you a drop down list for this.

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:10pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/5 "2021-04-07T23:10:28Z")

</div>

I see, I did not know of that node before now.  
That said, how can I use this node to filter by this parameter? I don’t see a way to connect it to the GetParameterValueByName node, nor how to use it to get a list of booleans for the FilterByBooleanMask node.  
This node gives me the list of available View Types, yes, but I do not see a way to tell Dynamo that I am looking for this parameter.

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [April 7, 2021, 11:12pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/6 "2021-04-07T23:12:04Z")

</div>

Get the “Type” parameter of your views, plug them both into an == node and then FilterByBoolMask.

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:13pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/7 "2021-04-07T23:13:21Z")

</div>

“Type” does not return the list in my original post’s image. It only returns blank indices or “ViewFamilyType”:

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

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [April 7, 2021, 11:16pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/8 "2021-04-07T23:16:52Z")

</div>

Don’t you want the ViewFamilyType? - you can then check if that matches your ‘Code Plan’ ViewFamilyType and filter correspondingly, or have I completely misread what you’re trying to do?

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:19pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/9 "2021-04-07T23:19:24Z")

</div>

I want a list which provides the Type name of my views. So instead of “ViewFamilyType” in the image above, I’d like to have a list which says, for example, “Code Plan”, “50 Phase”, “30 Phase”, “Electrical”, “Code Plan”, etc.

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [April 7, 2021, 11:22pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/10 "2021-04-07T23:22:05Z")

</div>

Oh, then just get the “Type Name” of the ViewFamilyType.

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:29pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/11 "2021-04-07T23:29:12Z")

</div>

That’s getting there, now the Type names are showing up. The blank indices are sticking around though, even after using the Clean node. Evidently they are not empty items but represent some views. How do I get rid of these blank items?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ecd041cceb50edc508b7f3b89cc202107216e11b.png)

---

<div class="post-metadata">

**Author:** ![Redrunner262](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/redrunner262/32/118682_2.png) [@Redrunner262](https://forum.dynamobim.com/u/Redrunner262)\
**Post date:** [April 7, 2021, 11:32pm UTC](https://forum.dynamobim.com/t/is-there-a-way-to-access-custom-view-types/62644/12 "2021-04-07T23:32:07Z")

</div>

I finished it. Thank you @Robert_Younger and @Hamish for your help!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a37c1786d1ec9a759be1a37dc59b57c35f1b19f.png)
