Message 1 of 3
How to get the elements associated with each row in a Schedule using Revit API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm working with the Revit API in C# and I need some help understanding how to map elements to individual rows in a Schedule.
So far, I can do the following:
- I can get the rows of the schedule:
ViewSchedule viewSchedule = viewSchedules.First(vs => vs.Name == schedule.Name);
TableData tableData = viewSchedule.GetTableData();
TableSectionData body = tableData.GetSectionData(SectionType.Body);
- I can get the scheduled elements:
ICollection<ElementId> elementIds = viewSchedule.GetDependentElements(null);
However, what I really need is to figure out how to get the element (or elements) associated with each specific row in the schedule.
Is there a direct way to do this in the API?
Any help or example would be much appreciated.
Thanks!