# Load Groups into revit with Dynamo

**URL:** <https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073>\
**Category:** Revit\
**Created:** [April 16, 2018, 2:13pm UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073 "2018-04-16T14:13:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.heijtink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.heijtink/32/40123_2.png) [@j.heijtink](https://forum.dynamobim.com/u/j.heijtink)\
**Post date:** [April 16, 2018, 2:13pm UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/1 "2018-04-16T14:13:31Z")

</div>

My question regarding Dynamo on revit is:

Is it also possible to load one or multiple model or detail Groups? I tryed to do this, but I think I’m missing something.  
I tryed the directory path  
I Hope someone can help me with this.

 ![Load%20groups](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/9/19583b0d955fd158f23991188161c3de1a4f2264.png)

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [April 17, 2018, 5:59am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/2 "2018-04-17T05:59:27Z")

</div>

Is the issue here that the the `Application.OpenDocumentFile` is only loading one file?

---

<div class="post-metadata">

**Author:** ![j.heijtink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.heijtink/32/40123_2.png) [@j.heijtink](https://forum.dynamobim.com/u/j.heijtink)\
**Post date:** [April 17, 2018, 6:30am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/3 "2018-04-17T06:30:40Z")

</div>

Thanks for your quick response.

No Dynamo seems to load the groups (i see revit upgrading the groups), but they don’t appear in my browser organisation under Groups/models.

Maybe you could help me out here.

Greetings,

Jesse

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [April 17, 2018, 7:06am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/4 "2018-04-17T07:06:33Z")

</div>

Afaik the Load As Group command is not exposed in the Revit API. One thing you could try:

- Load the file via background open
- Group all elements in that file
- Copy the group instance to your target file

All of these commands are exposed in the API and I’m pretty sure they are available as custom nodes in one package or other. If you had one Revit file that already contained all the groups you need, the process would be even easier.

---

<div class="post-metadata">

**Author:** ![NLDaniel](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@NLDaniel](https://forum.dynamobim.com/u/NLDaniel)\
**Post date:** [April 17, 2018, 11:21am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/5 "2018-04-17T11:21:46Z")

</div>

@j.heijtink

I made a script that does copy a croup from one document to another hopefully this will help you.  
I did not find a custom node to do this so I used a python script. You can download the files below. If you have another version of dynamo there is a txt file with the python code.

![Workflow](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/7/5729ae1b6c86c2ce375e29689f9f9e0871059d41.png)

This is the workflow

![mainfile](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09efa3578e80ed153f6429c4f8ba46a8d2704444.png)

The file with the group inside it

 ![nieuwproject](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/6887311d325a1c02e7b88a49684294fb98134e09.png)

A new Revit project with no groups

 ![after%20the%20run](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/311f35fa290132c7cf21b322489579beb2d08fba.png)

After I run the script the group form the mainfile is now in the new project file.

If you have any questions feel free to ask.

[jheijtink.dyn](https://forum.dynamobim.com/uploads/short-url/cr2xQpZP9ougX6Hi2Cymkdiw4DP.dyn) (11.4 KB)  
[jheijtink.rvt](https://forum.dynamobim.com/uploads/short-url/A0OZ6KaKxgQYUnpfbGMyhvoHPtu.rvt) (336 KB)  
[PythonScript.txt](https://forum.dynamobim.com/uploads/short-url/3lvWms4Z3pzeOJEUCvp7jxf5pum.txt) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [April 17, 2018, 11:24am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/6 "2018-04-17T11:24:49Z")

</div>

> [@j.heijtink](#):
>
> Thanks for your quick response.

It only look me 19 hours.  
But if that’s not it, I don’t know. there are people who are a lot better when it comes to those subjects.

---

<div class="post-metadata">

**Author:** ![kees.nijgh](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@kees.nijgh](https://forum.dynamobim.com/u/kees.nijgh)\
**Post date:** [September 13, 2018, 8:51pm UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/7 "2018-09-13T20:51:32Z")

</div>

@j.heijtink

I downloaded your script, thanks for that but unfortunately the python script doesn’t work  
Do you have any idea how it is possible?

---

<div class="post-metadata">

**Author:** ![wangbin](https://avatars.discourse-cdn.com/v4/letter/w/e47c2d/32.png) [@wangbin](https://forum.dynamobim.com/u/wangbin)\
**Post date:** [February 26, 2019, 2:02pm UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/8 "2019-02-26T14:02:46Z")

</div>

How to copy Attached Detail Groups to a new document？

---

<div class="post-metadata">

**Author:** ![dsmith](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dsmith/32/67577_2.png) [@dsmith](https://forum.dynamobim.com/u/dsmith)\
**Post date:** [February 26, 2019, 5:59pm UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/9 "2019-02-26T17:59:14Z")

</div>

@wangbin Start a new post as this one is old and not what you are attempting to do.

---

<div class="post-metadata">

**Author:** ![JustinStirling](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justinstirling/32/79001_2.png) [@JustinStirling](https://forum.dynamobim.com/u/JustinStirling)\
**Post date:** [April 6, 2020, 2:35am UTC](https://forum.dynamobim.com/t/load-groups-into-revit-with-dynamo/21073/10 "2020-04-06T02:35:53Z")

</div>

@wangbin, did you ever get this figured out?
