# Exclude Parameter from Multiple View Templates

**URL:** https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958
**Category:** Revit
**Tags:** revit, dynamo
**Created:** [November 19, 2024, 2:20pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958 "2024-11-19T14:20:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)
#### Post date: [November 19, 2024, 2:20pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/1 "2024-11-19T14:20:53Z")

</div>

Hi, my goal is to exclude a couple parameters from all view templates in a project. I have gotten this far… But the ViewTemplates.Include node can receive only one view template at a time I think. I appreciate any assistance. (Graphics help me as well, I’m still very new to dyanmo 🙂 )

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

---

<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: [November 19, 2024, 3:20pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/2 "2024-11-19T15:20:23Z")

</div>

What does the warning say? What do you mean by “exclude”? You want to remove a parameter from the templates?

---

<div class="post-metadata">

### Author: ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)
#### Post date: [November 19, 2024, 3:25pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/3 "2024-11-19T15:25:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/51d145aca042fea1c6211e96e93ac443fb750c11.png)

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

I would like to uncheck a view parameter from being included in all view templates

---

<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: [November 19, 2024, 3:26pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/4 "2024-11-19T15:26:55Z")

</div>

The warning states that the node is looking for the parameter as an integer (index most likely). You need to determine the integer for the parameter in question and provide that.

EDIT: Looking at some related nodes, it seems that the integer it’s expecting is just the `ElementId`.

---

<div class="post-metadata">

### Author: ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)
#### Post date: [November 19, 2024, 4:20pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/5 "2024-11-19T16:20:10Z")

</div>

I tried both IDs I dont really get anywhere. Maybe there’s another method you have heard of that can do this? I’m at a loss.

---

<div class="post-metadata">

### Author: ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)
#### Post date: [November 19, 2024, 5:18pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/6 "2024-11-19T17:18:22Z")

</div>

Anyone else have any ideas? I’ve conceded to doing one at a time, but I’m still receiving an error that I’m not sure how to handle.

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

---

<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: [November 19, 2024, 5:23pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/7 "2024-11-19T17:23:10Z")

</div>

You need to get the parameter from the template itself. You can get the parameter by name and then get the `ElementId` from the parameter element. You’ll also want to filter out any templates that don’t contain the parameter to avoid nulls or you can search all the parameters for name matches and provide a list. The node will handle empty lists but it won’t handle null parameters.

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

---

<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: [November 19, 2024, 5:32pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/8 "2024-11-19T17:32:51Z")

</div>

Also it looks like you are filtering the parameter names, not the parameters in the lower branch’s List.FilterByBoolMask.

---

<div class="post-metadata">

### Author: ![ChrisGamble](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chrisgamble/32/186451_2.png) [@ChrisGamble](https://forum.dynamobim.com/u/ChrisGamble)
#### Post date: [November 19, 2024, 11:28pm UTC](https://forum.dynamobim.com/t/exclude-parameter-from-multiple-view-templates/105958/9 "2024-11-19T23:28:42Z")

</div>

Ahh, okay, sorry for misunderstanding. I follow now.
