# Convert Dynamo 3D View (AxonometricView) to Revit API 3D View (View3D)

**URL:** <https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049>\
**Category:** Uncategorized\
**Created:** [April 19, 2019, 7:44pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049 "2019-04-19T19:44:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [April 19, 2019, 7:44pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049/1 "2019-04-19T19:44:44Z")

</div>

Good afternoon,

I’m making a script to create 3D views with the node AxonometricView.ByEyePointAndTarget().

This creates a new 3D view in Revit; however, the view is locked.

There is a method for unlocking the view in the [Revit API Docs](http://www.revitapidocs.com/2018/8c0bec29-1f19-c35a-5210-1db2b1d7ed7d.htm); however, this is a method for a View3D Class. The type returned from the node I am using is an AxonometricView type so I cannot use this method to unlock the view.

Does anyone know how to convert a AxonometricView (Dynamo 3D View Type) to a View3D (Revit 3D View Type) so I can use the Revit API methods?

Any help is appreciated, thank you.

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

---

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [April 19, 2019, 7:52pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049/2 "2019-04-19T19:52:20Z")

</div>

I also would like to set the view template in the same process which also requires this conversion.

---

<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:** [April 19, 2019, 8:43pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049/3 "2019-04-19T20:43:07Z")

</div>

You can unwrap the view to make it Revit-owned and then use any of the methods from the API:

```
import clr

clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript.Geometry as DS

clr.AddReference('RevitNodes')
from Revit.Elements import *

pt_eye = DS.Point.ByCoordinates(2, 1, 1)
pt_target = DS.Point.ByCoordinates(11, 1, 1)
name = 'new view 2'
view_dyn = Views.AxonometricView.ByEyePointAndTarget(pt_eye, pt_target, name)

view = UnwrapElement(view_dyn)
view.Unlock()
view.SaveOrientationAndLock()
```

---

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [April 19, 2019, 8:53pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049/4 "2019-04-19T20:53:30Z")

</div>

That makes a lot of sense. I knew about unwrapping but was only familiar with using it in the context of inputs.

Very cool, thank you!

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [April 21, 2019, 8:41pm UTC](https://forum.dynamobim.com/t/convert-dynamo-3d-view-axonometricview-to-revit-api-3d-view-view3d/35049/5 "2019-04-21T20:41:01Z")

</div>

In case you weren’t aware…

> **[DynamoDS/Dynamo](https://github.com/DynamoDS/Dynamo/wiki/Python-0.6.3-to-0.7.x-Migration)**
>
> Open Source Graphical Programming for Design. Contribute to DynamoDS/Dynamo development by creating an account on GitHub.

Hope that’s of interest,

Mark
