Batch Export Schedules

Hey,

I’m having trouble with exporting schedules in batch. The “single schedule export” works fine. But when I try the ‘Batch’ version, Python Script shows me this error.

Halp :slight_smile:

1 Like

You are missing IN before [2] in line 7

2 Likes

There is no need for Python code. This functionality was already added to Dynamo’s core functionality:

ViewType and View.GetByType are from archi-lab package. Everything else is OOTB for 1.3 Dynamo.

Cheers!

5 Likes

Hi,
I used the below code.But its not working.can you help me please.

import clr

clr.AddReference(“RevitAPI”)
import Autodesk
from Autodesk.Revit.DB import *

schedule_list = IN[0]
path = IN[1]
filename_list = IN[2]
result_list = []

for index, sched in enumerate(schedule_list):
schedule = UnwarpElement(sched)
filename = filename_list[index]
try:
export_options = ViewScheduleExportOption()
result_list.append(“schedule exported”)
except: result_list.append(“export failed”)
OUT = result_list

Where do you get the Export Column Headers node… can’t seem to find it when I search it

It’s OOTB. Try right clicking and type Export Column, it should show up.

Yeah I realized I was working on a older version of Dynamo, I found it once I updated… Thank you