# Batch export schedules to txt files

**URL:** <https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [April 24, 2026, 10:04am UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484 "2026-04-24T10:04:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 10:04am UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/1 "2026-04-24T10:04:57Z")

</div>

Hi all,

I’m trying to create a dynamo script (preferably using only standard nodes) to export all schedules whose name starts with “ME” in my project to separate txt files. All info in the schedules is plain text, I don’t need any headers or footers in the export.

So far I have this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b9650a99113957213d817b7323e3022945e28e9.jpeg)

Everything seems to be working just fine, except for the last node, which throws this error:

ScheduleView.Export operation failed.  
There was an error exporting this schedule.

Which of course isn’t very instructive ☹

I’ve tried to use the schedule export node from the modelical package instead, but that also didn’t work.

Perhaps because that package dates from 2023, and I’m on Revit 2026 or 27…

I’d rather avoid using Python, plain Dynamo already holds enough mysteries for me… 🙂

So if anyone out there could shed some light on what is wrong with my script, that would make me very happy…

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 24, 2026, 10:12am UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/2 "2026-04-24T10:12:27Z")

</div>

Hi @StevenDM welcome 😉 have you tried with file path instead directory path ?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 24, 2026, 10:36am UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/3 "2026-04-24T10:36:02Z")

</div>

maybe something here but not 100 😉

 ![Skærmbillede 2026-04-24 124024](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/7264a358e5277104c145ac7306b5253dcc3393ce.png)

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 12:20pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/4 "2026-04-24T12:20:34Z")

</div>

Hi Sovitek,

thanks for replying.

Your “file path” solution would probably work if you only wanted to export one single schedule.

My aim is to export all schedules to different files in one go.

I’m not sure I understand where the output of that last code block should go. Would that be the “path” input in the ScheduleViewImport node?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [April 24, 2026, 12:23pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/5 "2026-04-24T12:23:14Z")

</div>

> [@StevenDM](#):
>
> Your “file path” solution would probably work if you only wanted to export one single schedule.

Not really - if you have a path for each schedule you’ll get that many exports. That is what the method he build showed; wire it into the FilePath input as you assumed. The key will be counting the number of schedules and generating the range from 1 to that number rather than hard coding it.

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:05pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/6 "2026-04-24T13:05:17Z")

</div>

Hi Jacob,

thanks for pointing me in the right direction, I’m almost there.

First this: as a new member, it seems I’m only allowed one screenshot per post, so my message will be in four installments 🙂

This is what the script now looks like:

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

Now I’m getting a txt file for each schedule. However, these files are named 1.txt to 61.txt, while I actually want them to have the same name as the schedule.

Also, each exported txt file contains the row with the column headers.

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:05pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/7 "2026-04-24T13:05:49Z")

</div>

This is the schedule, with the column headers in the pinkish background:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/53cca637b834a81cd94d8f08bf23135654f8c297.jpeg)

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:06pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/8 "2026-04-24T13:06:27Z")

</div>

I don’t really want to export the schedule title to the txt file, and neither the column headers.

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

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:07pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/9 "2026-04-24T13:07:05Z")

</div>

I thought I could achieve this by feeding “false” into the "columnHeaders port in the ScheduleExportOptionsByProperties node, but that doesn’t appear to be an acceptable input. The Help only indicates that “MultipleRows” is the default input value, but it doesn’t say what other options there are…

The screenshot from Notepad above, is the result of running the script with the connections as in the dynamo screenshot below.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a2293229fb7bf50b1bb3c5e29340b30ba9c2d645.jpeg)

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:10pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/10 "2026-04-24T13:10:45Z")

</div>

Aha, found one part of the solution: using “None” instead of “MultipleRows” seems to do the trick.

Now trying to get the txt files have the same name as the schedule…

---

<div class="post-metadata">

**Author:** ![StevenDM](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@StevenDM](https://forum.dynamobim.com/u/StevenDM)\
**Post date:** [April 24, 2026, 1:40pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/11 "2026-04-24T13:40:01Z")

</div>

Almost there! I don’t seem to need the ListCount node etc. after all.

IThis is what the script looks like now:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/7726898ba4cf0bd08f04c779d4003111b6f366e7.png)

which results in file names like this:

ScheduleView(Name = ME\_— Materialen ).txt

ScheduleView(Name = ME\_03- Materialen afbraak ).txt

etc…

As the schedules actually are named ME\_— Materialen and ME\_03- Materialen afbraak respectively, all I need to do is to chop of the head and tail from the output of the List.FilterByBoolMask…

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [April 24, 2026, 1:40pm UTC](https://forum.dynamobim.com/t/batch-export-schedules-to-txt-files/114484/12 "2026-04-24T13:40:53Z")

</div>

Try view name instead of the List.Count and remove the range generation.
