Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Export out/Read Schedule data generated from Revit.

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
nik.mazreen
1914 Views, 2 Replies

Export out/Read Schedule data generated from Revit.

Hi,

 

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

 

thx in advance.

 

-Nik-

2 REPLIES 2
Message 2 of 3
leslief
in reply to: nik.mazreen

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

Message 3 of 3
Joe.Ye
in reply to: nik.mazreen

 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community