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:
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…
Hi @StevenDM welcome
have you tried with file path instead directory path ?
maybe something here but not 100 
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?
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.
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:
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.
This is the schedule, with the column headers in the pinkish background:
I don’t really want to export the schedule title to the txt file, and neither the column headers.
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.
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…
Almost there! I don’t seem to need the ListCount node etc. after all.
IThis is what the script looks like now:
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…
Try view name instead of the List.Count and remove the range generation.