Export Schedule to XML format

Hi Guys,

Is there a script to export the schedule from revit as an XML file? I’m currently working on Rebars and just struggling to achieve this. Any help would be much appreciated.

Thanks!

Lunchbox has several nodes related to reading and writing XML files., although I haven’t used them myself.

I just tried Lunchbox, but it only has nodes which can extract data from XML files or convert from XML into JSON format and something related to that. But nothing which resembles extracting data from Revit to XML.

Am i missing something?

Using Bimorph Nodes to get the data from the schedule view, you can then create a data table, data set, and then serialize the XML. See below:

image
schedule to xml.dyn (19.7 KB)

1 Like

Hi!, sorry for the late reply!!

The script works beautifully. :slight_smile:

I was wondering if there is a way to do it for multiple schedules at a time with each of them having their own XMLs or is that asking too much from just using dynamo…?

Yes, just replace the single view and single filepath with a list of views and an equal number of filepaths. You may have to use list levels to get the right data to write to each xml file.

1 Like