Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I woud like to get all elements included in a group. I found getmemberids method but can not apply it.
Could you please observe my code and say what am I doing wrong ot maybe give me hint how to proceed.
// Retrieve elements from database
IList<Element> col
= new FilteredElementCollector(doc).
OfCategory(BuiltInCategory.OST_IOSModelGroups).
WhereElementIsNotElementType().
ToElements();
// Filtered element collector is iterable
foreach (Element e in col)
{
ICollection<ElementId> ids = e.GetMemberIds();
Debug.WriteLine(e);
}
return Result.Succeeded;
Solved! Go to Solution.