Export out/Read Schedule data generated from Revit.

Export out/Read Schedule data generated from Revit.

Anonymous
Not applicable
2,054 Views
2 Replies
Message 1 of 3

Export out/Read Schedule data generated from Revit.

Anonymous
Not applicable

Hi,

 

Need help. How do i read/export data in schedule created in Revit using C#?

 

thx in advance.

 

-Nik-

0 Likes
Accepted solutions (1)
2,055 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Nik,

 

It might help to download the Revit SDK and look at the sample code.  I haven't worked with it, but there is a sample in there called MaterialQuantities, and the description is "Outputs an analysis of the materials that make up walls, floors, and roofs, and displays the output in Excel." so that may be a good place to start, if I am understanding your question correctly. 


-Leslie

0 Likes
Message 3 of 3

Joe.Ye
Alumni
Alumni
Accepted solution

 

Hi Nik,

 

Revit didn't expose the API to read data from the schedule in Revit 2013 and the previous versions.

In Revit 2013, schedule's data can be exported via ViewSchedule.Export() method.

 

Here is the signature of this method.

 

public void Export(
string folder,
string name,

ViewScheduleExportOptions options)

 

Via this method, all data can be exported to a txt file. This file can be opened in Excel, view it conveniently in Excel.

And you app can also access this txt file to get specific data.

 

______________________________________________________________

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes