# Get Docs currently open in an instance of Revit to work with

**URL:** <https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381>\
**Category:** Developers\
**Tags:** python\
**Created:** [August 31, 2023, 6:46pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381 "2023-08-31T18:46:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Sanford](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@J\_Sanford](https://forum.dynamobim.com/u/J_Sanford)\
**Post date:** [August 31, 2023, 6:46pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381/1 "2023-08-31T18:46:31Z")

</div>

Is there a way to get open docs that the user has open in an instance of Revit. I dont mean background open. I am working on a graph to transfer view templates and the workflow would be much better if I could work with a doc that the user already has open, but is not the active doc.

---

<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:** [August 31, 2023, 6:53pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381/2 "2023-08-31T18:53:27Z")

</div>

Yes and no. Dynamo will only run _in_ the active doc, but the API is built to handle any specified document it can access (in the “background”). This doesn’t mean you have to open a document in a headless instance of the app, it just means that you have to interact with the document itself. Any linked document is already accessible through the active doc. If you want to open a different document in the same instance of Revit and reference that project, you’ll have to check the Application for opened documents.

---

<div class="post-metadata">

**Author:** ![J\_Sanford](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@J\_Sanford](https://forum.dynamobim.com/u/J_Sanford)\
**Post date:** [August 31, 2023, 7:00pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381/3 "2023-08-31T19:00:23Z")

</div>

so where would I look then? Application class? Doc class?

---

<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:** [August 31, 2023, 7:04pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381/4 "2023-08-31T19:04:28Z")

</div>

Both. You’d get the Document from the Application. Then you’d likely use the Document class (usually as an argument) for the rest of your code.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [August 31, 2023, 7:28pm UTC](https://forum.dynamobim.com/t/get-docs-currently-open-in-an-instance-of-revit-to-work-with/93381/5 "2023-08-31T19:28:58Z")

</div>

Some time ago it was Free

> **[TransferSingle | Revit | Autodesk App Store](https://apps.autodesk.com/RVT/en/Detail/Index?id=8481526687890452659&appLang=en&os=Win64)**
>
> An advanced way to transfer content and standards between one file and another (or multiple).
