# Create NWC from multiple Revit projects

**URL:** <https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584>\
**Category:** Uncategorized\
**Created:** [October 9, 2019, 5:14am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584 "2019-10-09T05:14:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eli](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Eli](https://forum.dynamobim.com/u/Eli)\
**Post date:** [October 9, 2019, 5:14am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/1 "2019-10-09T05:14:55Z")

</div>

Hi everyone,

I’m trying to create NWC files from multiple Revit projects.  
I have dynamo script to read the files on the background and export NWC. However it doesn’t work.  
Could you please have a look and let me know what the issue is? or if you have any other option.

Thanks much!

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

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 9, 2019, 8:26am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/2 "2019-10-09T08:26:18Z")

</div>

Hi @Eli,

When you open several documents, set the lacing to longest on the _Export NWC in Document_ node .  
You must choose an export coordinate system for the _ChooseCoordinates_ input.  
You’re trying to export documents opened in the background and the 3D views of the active document without providing the active document in the _document_ input.

_Example :_

 ![Export%20NWC%20with%20several%20documents](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/172f897d52031acce618f0432a5bc1082cb86da7.png)

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [October 9, 2019, 10:04am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/3 "2019-10-09T10:04:13Z")

</div>

Hello Alban, is it possible to save as NWD?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 9, 2019, 10:34am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/4 "2019-10-09T10:34:57Z")

</div>

Hi Deniz,

It’s not possible.  
In the Revit UI :

 ![Export%20nwc](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dce0d4e4249db1be174d6659e150058ffe25260d.png)

In the API it’s written : “Exports a Revit project to the Navisworks .nwc format.”

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [October 9, 2019, 11:27am UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/5 "2019-10-09T11:27:05Z")

</div>

Thank you very much Alban! I need to save in Navisworks everything as NWD and as I know we can’t use scripts in Navisworks.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 9, 2019, 12:36pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/6 "2019-10-09T12:36:47Z")

</div>

You can look in the [Naviswork API](https://apidocs.co/apps/navisworks/2018/N_Home.htm) or maybe use [Batch Utility](https://knowledge.autodesk.com/support/navisworks-products/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Navisworks/files/GUID-3EC4C7E0-479C-42FD-88CB-1FC46AD0D08E-htm.html).

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [October 9, 2019, 12:43pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/7 "2019-10-09T12:43:37Z")

</div>

Thanks a lot Alban, I will take a look 🙂

---

<div class="post-metadata">

**Author:** ![Eli](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Eli](https://forum.dynamobim.com/u/Eli)\
**Post date:** [October 9, 2019, 9:27pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/8 "2019-10-09T21:27:34Z")

</div>

Hi @Alban_de_Chasteigner,

Thanks for replying me back.  
I did exactly what you did. However, it doesn’t work and I get the same result.  
Could you please check if I did something wrong?

Thank you so much.

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

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 9, 2019, 10:00pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/9 "2019-10-09T22:00:31Z")

</div>

> [@Alban\_de\_Chasteigner](#):
>
> set the lacing to longest on the _Export NWC in Document_ node .

Connect a codeblock with _-1_ inside to the amount input of the _List.Flatten_ node.

---

<div class="post-metadata">

**Author:** ![Eli](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Eli](https://forum.dynamobim.com/u/Eli)\
**Post date:** [October 9, 2019, 11:29pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/11 "2019-10-09T23:29:38Z")

</div>

Thank you Alban for quick response. it’s better now 🙂  
I was keep tying to see if it works or not. it creates nwc files but not for all 3D views. it creates nwc from only one of the 3D views in each file. I keep getting the below error.  
Also, is there any way to read a directory from BIM360 as my projects are in BIM360? I did tried, it doesn’t find the directory.  
And just wondering how you show the packages name on your nodes, it’s so cool 😃 .

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/180c6e1386a373a6dda4e1b939deaedca0c9d3c6.png)

in my dynamo nodes shows how many list I should have, but when I click on the list shows null.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/721f3f680011d117f556c41a22823a1587cd30ac.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a8b320ce1e86a1a38ad9971e5a66207f58ea308.png)

Sorry for asking too many questions, I’m new with dynamo.

Thanks much!

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 10, 2019, 9:12pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/12 "2019-10-10T21:12:05Z")

</div>

> [@Eli](#):
>
> in my dynamo nodes shows how many list I should have, but when I click on the list shows null.

It is a side effect of the _CloseDocument_ node. The views elements are no longer usable once the graph is finished.

> [@Eli](#):
>
> I keep getting the below error.

Close and reopen your graph between each run if you close your Revit documents at the end of the graph.

> [@Eli](#):
>
> it creates nwc from only one of the 3D views in each file

Be sure to use the longest lacing.

 ![Lacing](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/896c5bd4696207f55e4c3a1f0195e376dd55efda.png)  
After checking the _Flatten_ node is useless.  
 ![Export%20NWC%20with%20several%20documents](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/7/172f897d52031acce618f0432a5bc1082cb86da7.png)

> [@Eli](#):
>
> is there any way to read a directory from BIM360 as my projects are in BIM360

I think you can use the Autodesk [Desktop Connector](https://www.autodesk.com/bim-360/desktop-connector/), which allows you to use a direct filepath.

> [@Eli](#):
>
> And just wondering how you show the packages name on your nodes

I use the Data-Shapes view extension to prefix the custom nodes.

 ![Prefix%20node](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/3/3367d09086ecd7add8d0f57c2f64aa0514ba6027.png)

---

<div class="post-metadata">

**Author:** ![Eli](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Eli](https://forum.dynamobim.com/u/Eli)\
**Post date:** [October 10, 2019, 9:42pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/13 "2019-10-10T21:42:56Z")

</div>

Hi @Alban_de_Chasteigner,

Thank you so much for replying to all my questions 🙂 .  
Just let you know, unfortunately Autodesk Desktop Connector doesn’t work as well, I tried that one.

Thanks again.

---

<div class="post-metadata">

**Author:** ![shane1](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shane1](https://forum.dynamobim.com/u/shane1)\
**Post date:** [November 23, 2020, 9:11pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/14 "2020-11-23T21:11:40Z")

</div>

@Eli - were you able to get this working with bim360 hosted projects? I’m trying to accomplish this. Your script is awesome for working in locally hosted projects.

---

<div class="post-metadata">

**Author:** ![Eli](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@Eli](https://forum.dynamobim.com/u/Eli)\
**Post date:** [November 23, 2020, 10:36pm UTC](https://forum.dynamobim.com/t/create-nwc-from-multiple-revit-projects/41584/15 "2020-11-23T22:36:55Z")

</div>

Thanks, but unfortunately I couldn’t figure out how to change the script to work on projects on BIM360.
