# Insert From File - Views

**URL:** <https://forum.dynamobim.com/t/insert-from-file-views/9106>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [January 24, 2017, 6:49pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106 "2017-01-24T18:49:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbardales](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gbardales](https://forum.dynamobim.com/u/gbardales)\
**Post date:** [January 24, 2017, 6:49pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/1 "2017-01-24T18:49:54Z")

</div>

Hello,  
I’m trying to use Dynamo to insert views from file, but I can’t find a way to do it. I know it is possible through the API but I’m not very familiar with it.  
Any thoughts?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 25, 2017, 1:55am UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/2 "2017-01-25T01:55:26Z")

</div>

Hi @gbardales

Are you looking to create views from excel?

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

---

<div class="post-metadata">

**Author:** ![gbardales](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gbardales](https://forum.dynamobim.com/u/gbardales)\
**Post date:** [January 25, 2017, 2:09am UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/3 "2017-01-25T02:09:28Z")

</div>

Hi Kulkul,  
I could have explain my self better.  
What I’m trying to do is bring some sheets and drafting view from other .rvt files but using Dynamo.

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/e/3/e3f12115546f0e00149d5e13558637daeea0e613.JPG)

Thank you,

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 25, 2017, 2:31pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/4 "2017-01-25T14:31:09Z")

</div>

@gbardales Refer this link [Set a starting view to multiple background opened files](https://forum.dynamobim.com/t/set-a-starting-view-to-multiple-background-opened-files/7663/9?u=kulkul) will get you started.

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [January 25, 2017, 2:53pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/5 "2017-01-25T14:53:19Z")

</div>

@gbardales, here is the workflow you need. It might act weird with view templates though, (not too sure). You need to download **Rhythm** to get these custom nodes.

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

And here it is in action

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dcda86edb14df3841f3fe788bdbf96ed8c1f8d76.gif)

And here is the dynamo graph. [copyViewsFromDocument.dyn](https://forum.dynamobim.com/uploads/short-url/2qcSLxhA5JTEY8UGfktdqbCuxSB.dyn) (8.6 KB)

---

<div class="post-metadata">

**Author:** ![gbardales](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gbardales](https://forum.dynamobim.com/u/gbardales)\
**Post date:** [January 25, 2017, 7:06pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/6 "2017-01-25T19:06:52Z")

</div>

Hi John,

It works great. I can transfer all the views that I need, but I lost all the content of the views.  
Is there a way to keep the content that the view has?

Thank you,

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [January 25, 2017, 7:29pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/7 "2017-01-25T19:29:20Z")

</div>

Darn, well those nodes were made primarily for copying types. I can take a look at this when I have some spare time. (Unless someone else does) Here is some information regarding this.

> <https://stackoverflow.com/questions/14386229/insert-view-from-file-in-revit-api>

FWIW, it seems a little involved and may be more appropriate for a zero touch node.

---

<div class="post-metadata">

**Author:** ![gbardales](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gbardales](https://forum.dynamobim.com/u/gbardales)\
**Post date:** [January 25, 2017, 10:39pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/8 "2017-01-25T22:39:46Z")

</div>

ok. I’ll take a look and see what I can find.  
If you don’t mind please do take a look, when ever you have some time.

Thank you,

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [January 26, 2017, 3:27pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/9 "2017-01-26T15:27:18Z")

</div>

@gbardales Discussed here: ( I will send the graph once I update the nodes to Rhythm)

> **[Load #Revit Views from File with #DynamoBIM](https://www.sixtysecondrevit.com/2017-01-25-loadingviewsfromdocument/)**
>
> A question came up regarding loading views from files with Dynamo. A while back I added some nodes to Rhythm that do this workflow perfectly! As you can see below we: 1.Open the source document in memory, but non visible to user. 2.Get the views,...

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/73697682c3188381ad5f59a7a9274a7d67e45bd2.gif)

---

<div class="post-metadata">

**Author:** ![gbardales](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gbardales](https://forum.dynamobim.com/u/gbardales)\
**Post date:** [January 26, 2017, 8:28pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/10 "2017-01-26T20:28:25Z")

</div>

That’s amassing. I really need to get more into Python.  
Question, Would this also work on bringing sheets with views on it?

Thank you,

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [January 26, 2017, 8:42pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/11 "2017-01-26T20:42:00Z")

</div>

@gbardales Unfortunately it does not.

also, DYN for the copy views/ elements in view [http://sixtysecondrevit.com/dyn/copyViewsFromDocument.dyn](http://sixtysecondrevit.com/dyn/copyViewsFromDocument.dyn)

---

<div class="post-metadata">

**Author:** ![4bimfercesp](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@4bimfercesp](https://forum.dynamobim.com/u/4bimfercesp)\
**Post date:** [March 19, 2017, 9:28pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/12 "2017-03-19T21:28:35Z")

</div>

@john_pierson  
Hi john, just wondering if you have a chance on posting or updating rhythm package as you describe on the above link? Thanks a lot for all your efforts.

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [March 19, 2017, 10:14pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/13 "2017-03-19T22:14:40Z")

</div>

It appears to be possible. I just have not built the workflow yet. I am finding that time is my biggest enemy lately. 😒

---

<div class="post-metadata">

**Author:** ![4bimfercesp](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@4bimfercesp](https://forum.dynamobim.com/u/4bimfercesp)\
**Post date:** [May 18, 2017, 7:21pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/14 "2017-05-18T19:21:34Z")

</div>

Is there anyone who knows or can replicate the above. Can someone share please if you have done this. This was about copying Drafting views and elements from another revit document.

---

<div class="post-metadata">

**Author:** ![blairmack](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@blairmack](https://forum.dynamobim.com/u/blairmack)\
**Post date:** [May 28, 2017, 8:38pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/15 "2017-05-28T20:38:29Z")

</div>

Hi John, I’ve been trying to use your code to see if I can make it do something I’m trying to achieve. When I run the code versin with the copy views and elements, I have been getting Python Script errors, so I tried running the earlier version that simply copied the views. This didn’t seem to do anything when I ran it but I didn’t see any errors, so I added a lot of watch nodes to see what was being returned at each stage. The watch at Filepath returned the filename and path, and the watch at Element Types returned Autodesk.Revit.DB.ViewDrafting but all of the other nodes returned null. I’m not sure if I’m doing something wrong here? I’ve tried running it with just the target file open and with the source and target files open, but still getting all the nulls. Do you have any ideas?  
What I in the end was trying to see if I could achieve was to be able to copy Legends and text only contents between projects. Do you think this is achievable by me modifying this script?

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [May 30, 2017, 1:04pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/16 "2017-05-30T13:04:57Z")

</div>

Hi @blairmack, I will have to take a look at this. I have actually been working through and converting a bunch of Rhythm nodes to C# Zerotouch nodes and I can add this to the list.

The unfortunate thing is when working with other Documents in Dynamo it gets a bit difficult and is unpredictable. I will let you know when I can take a look at this.

-John

---

<div class="post-metadata">

**Author:** ![hjnbyun90](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hjnbyun90](https://forum.dynamobim.com/u/hjnbyun90)\
**Post date:** [August 31, 2017, 3:58pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/17 "2017-08-31T15:58:30Z")

</div>

Hi @john_pierson, I downloaded your graph from above (posted Jan 26) to try copying view/elements in a view. However, I get an error message when I run the graph. I was wondering if there was an update on this graph or if I am missing something.

If anyone could help point in the right direction it would be greatly appreciated.

 ![copyViewsFromDocumentERROR](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3fa5abaa4c4b5dbdf609cc66ed17fb3c0856c38e.png)

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [August 31, 2017, 4:41pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/18 "2017-08-31T16:41:22Z")

</div>

Do you have any view templates for drafting views in your file?

---

<div class="post-metadata">

**Author:** ![hjnbyun90](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hjnbyun90](https://forum.dynamobim.com/u/hjnbyun90)\
**Post date:** [August 31, 2017, 5:08pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/19 "2017-08-31T17:08:35Z")

</div>

No, I do not

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [August 31, 2017, 5:25pm UTC](https://forum.dynamobim.com/t/insert-from-file-views/9106/20 "2017-08-31T17:25:52Z")

</div>

Ok, well this workflow is pretty messy and I recently revised the copy node to only work with links… I will let you know if I can revise.

[Next page](https://forum.dynamobim.com/t/insert-from-file-views/9106.md?page=2)
