# How to Get the Currently OPEN Family Document (Orchid)?

**URL:** <https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209>\
**Category:** Packages\
**Tags:** revit, orchid\
**Created:** [June 30, 2022, 1:52pm UTC](https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209 "2022-06-30T13:52:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMattatonAP](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@TheMattatonAP](https://forum.dynamobim.com/u/TheMattatonAP)\
**Post date:** [June 30, 2022, 1:52pm UTC](https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209/1 "2022-06-30T13:52:52Z")

</div>

My goal is to add some shared params into an OPEN family document. I don’t want to open in background and save as that may end up with families from an earlier version of Revit being saved over by a newer version. And we all know how that goes for the older version of Revit. But I digress…

I’m using the Orchid `SharedParameter.Add` and it wants an `Orchid.RevitProject.Common.Document`, which I assume is only attained by using an Orchid node to open an rfa in the background.

The `Document.Current` node gives a `Revit.Application.Document` element and the Orchid node doesn’t like that.  
The archilab `Current Document` node returns `Autodesk.Revit.DB.Document`, and it doesn’t want that either! So picky! 😃

Is there a way to get the currently open family document translated to an orchid document?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![TheMattatonAP](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@TheMattatonAP](https://forum.dynamobim.com/u/TheMattatonAP)\
**Post date:** [June 30, 2022, 1:55pm UTC](https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209/2 "2022-06-30T13:55:15Z")

</div>

Nevermind. There’s an Orchid node for that. `Document.ToOrchidType`  
Translates a Revit document to an Orchid document.

Sweet!

---

<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:** [June 30, 2022, 2:56pm UTC](https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209/3 "2022-06-30T14:56:46Z")

</div>

Also, for reference, there was quite a bit of discussion (and changes) for this recently.  
[https://forum.dynamobim.com/t/the-fusion-post-for-coders/78033/8](https://forum.dynamobim.com/t/the-fusion-post-for-coders/78033/8)

Rhythm will be updated soon to pass the `Revit.Application.Document` as well.

---

<div class="post-metadata">

**Author:** ![TheMattatonAP](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@TheMattatonAP](https://forum.dynamobim.com/u/TheMattatonAP)\
**Post date:** [June 30, 2022, 3:15pm UTC](https://forum.dynamobim.com/t/how-to-get-the-currently-open-family-document-orchid/78209/4 "2022-06-30T15:15:18Z")

</div>

Ah, excellent. Thanks!
