Message 1 of 3
Schedule Data - Linked Rooms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a Room Schedule which displays Rooms from Links. Using the following example, the Elements returned are the Link files, not the Rooms:
// http://thebuildingcoder.typepad.com/blog/2012/12/accessing-all-element-in-a-schedule.html // To get all elements belong to Schedule: List<Element> elementsOnSchedule = new FilteredElementCollector(doc, viewSheet.Id) .WhereElementIsNotElementType() .ToElements() .Where(e => !(e is Material)) .ToList();
There is a similar discussion here, with a suggestion to create a temporary schedule containing the Element Id:
Or viewSchedule.GetCellText() could be used to return the contents (e.g. Room Number) and then retrieve the Room Element.
Is there now a means (2017/2018) to directly return the Element from the Schedule, in this case where the Room is in a Link?
Many thanks (again), Dale
______________
Yes, I'm Satoshi.