# Apply View Template node not working

**URL:** <https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157>\
**Category:** Packages\
**Created:** [February 11, 2016, 1:40pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157 "2016-02-11T13:40:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Putt](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Steven\_Putt](https://forum.dynamobim.com/u/Steven_Putt)\
**Post date:** [February 11, 2016, 1:40pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/1 "2016-02-11T13:40:25Z")

</div>

I’m running Dynamo 0.9.1 and trying to change the view template of a drafting view that I’ve created in Dynamo. The archi-lab Apply View Template node doesn’t seem to be doing what it should. It doesn’t change the view template, but it does appear to duplicate the view and add a really long suffix to the name. See images.

&nbsp;

 ![apply view template 1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/0/013bc056d238f340328043f2fc8e3ca3a77317be.png)

![apply view template 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/74b793f2829979d6ca188036481ba2d1e912de95.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 11, 2016, 8:12pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/2 "2016-02-11T20:12:18Z")

</div>

Hi Steven,

Have you tried feeding in the view template **name** as a string?

---

<div class="post-metadata">

**Author:** ![Steven\_Putt](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Steven\_Putt](https://forum.dynamobim.com/u/Steven_Putt)\
**Post date:** [February 11, 2016, 9:14pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/3 "2016-02-11T21:14:36Z")

</div>

That did it! Thank you Dimitar.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [February 11, 2016, 11:12pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/4 "2016-02-11T23:12:42Z")

</div>

yeah, just put a [Element.Name](http://Element.Name) between View Templates and Apply View Template node. Dimitar, thanks for help! This is a new node, and I haven’t had a chance to update the Apply View Template node to work with straight up template objects. I will do that.

---

<div class="post-metadata">

**Author:** ![Steven\_Putt](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Steven\_Putt](https://forum.dynamobim.com/u/Steven_Putt)\
**Post date:** [February 12, 2016, 10:03am UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/5 "2016-02-12T10:03:05Z")

</div>

Konrad, thanks for your contribution with this node. If I happened to be working with Dynamo 0.9.0 would there be a quick fix to the python script within the Apply View Template node to make it work? I know it may seem counter intuitive to work backwards like this for a slightly older version of Dynamo but it would help for those of us that are sticking with Dynamo’s suggested latest stable build.

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [February 12, 2016, 12:07pm UTC](https://forum.dynamobim.com/t/apply-view-template-node-not-working/3157/6 "2016-02-12T12:07:02Z")

</div>

Well in 0.9.0 there will be no dropdown for selecting view templates so you can pretty much just use its name. In 0.9.1 I added that view template selection dropdown but you still have to put a name of the view template as input so in general it doesnt matter which version of dynamo you are in - in both you have to use a name of the view template and not the view template object itself.
