# Write to multiple files

**URL:** <https://forum.dynamobim.com/t/write-to-multiple-files/46298>\
**Category:** Lists-Logic\
**Created:** [February 3, 2020, 6:45pm UTC](https://forum.dynamobim.com/t/write-to-multiple-files/46298 "2020-02-03T18:45:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan.dyn](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Juan.dyn](https://forum.dynamobim.com/u/Juan.dyn)\
**Post date:** [February 3, 2020, 6:45pm UTC](https://forum.dynamobim.com/t/write-to-multiple-files/46298/1 "2020-02-03T18:45:28Z")

</div>

Hi all,

I’ve been trying to export lists of a list to different files.  
(I saw there are some custom nodes that allow you to write these lists to different worksheets in excel, this is not what I want)  
So far, I’ve been able to create many files, but including all the lists.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/3/f3957c3587bc348a8c4ef11e3ada656111bfb514.png)  
I would like to have in each file the respective list, in order (1,2 in the first, and 3,4 in the second).

I guess this might be very easy to do in Python script once you know how to save a single file. But after  
a long research I haven’t found anything =S.  
I also read a lot about creating the node from Visual Studio. If I only knew how to open Data.WriteToCSV (from DynamoCore) in VS, I think I could modify it myself.  
I would be very glad if you could provide me some solution or any information about it.

Thanks in advance =)

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [February 3, 2020, 6:56pm UTC](https://forum.dynamobim.com/t/write-to-multiple-files/46298/2 "2020-02-03T18:56:22Z")

</div>

Hi @Juan.dyn

Did you try changing the lacing to Shortest?  
It worked for me.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/284e476ab0fb13c99b5d771ad6a44467ebc865e9.png)

---

<div class="post-metadata">

**Author:** ![Juan.dyn](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@Juan.dyn](https://forum.dynamobim.com/u/Juan.dyn)\
**Post date:** [February 3, 2020, 7:00pm UTC](https://forum.dynamobim.com/t/write-to-multiple-files/46298/3 "2020-02-03T19:00:28Z")

</div>

It does work! Thanks a lot Amol =)

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [February 3, 2020, 7:03pm UTC](https://forum.dynamobim.com/t/write-to-multiple-files/46298/4 "2020-02-03T19:03:27Z")

</div>

You are most welcome. Glad it worked out for you 😄
