# Assign 3D View template

**URL:** <https://forum.dynamobim.com/t/assign-3d-view-template/44596>\
**Category:** Revit\
**Tags:** python, dynamo, api\
**Created:** [December 17, 2019, 3:52pm UTC](https://forum.dynamobim.com/t/assign-3d-view-template/44596 "2019-12-17T15:52:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano85](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Stefano85](https://forum.dynamobim.com/u/Stefano85)\
**Post date:** [December 17, 2019, 3:52pm UTC](https://forum.dynamobim.com/t/assign-3d-view-template/44596/1 "2019-12-17T15:52:38Z")

</div>

Hii guys,

I’ve been searching around and can’t find the right awnser.

the question is: How to assign a view template to a Axonometric view with the revit API

Thnks in advance

---

<div class="post-metadata">

**Author:** ![cgartland](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cgartland/32/45378_2.png) [@cgartland](https://forum.dynamobim.com/u/cgartland)\
**Post date:** [December 17, 2019, 4:56pm UTC](https://forum.dynamobim.com/t/assign-3d-view-template/44596/2 "2019-12-17T16:56:56Z")

</div>

Assuming you have the ElementId of the view template, can directly set the target View’s [ViewTemplateId](https://www.revitapidocs.com/2018.1/2559f20b-87d4-e879-3139-7f555b251b71.htm) property.

```
# Assume 'view' is your axon view
# Assume 'id' is the ElementId of your template
view.ViewTemplateId = id
```

---

<div class="post-metadata">

**Author:** ![Stefano85](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Stefano85](https://forum.dynamobim.com/u/Stefano85)\
**Post date:** [December 18, 2019, 9:34am UTC](https://forum.dynamobim.com/t/assign-3d-view-template/44596/3 "2019-12-18T09:34:51Z")

</div>

Yes that did the trick!

I was on the right track but instead of feeding an ID number, I gave it a string of the ID number which did not go so wel 😄

Thank u very much, @cgartland

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [April 1, 2022, 1:15pm UTC](https://forum.dynamobim.com/t/assign-3d-view-template/44596/4 "2022-04-01T13:15:56Z")

</div>

Hello, how do you get the Id of the 3D template?

 ![Capture d’écran 2022-04-01 151153](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7b1c1f48c329fc80785ec94d0a469f8a073d1556.jpeg)

Thank you
