Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am trying to Get all Editable Family on Project Document but it not working with the this code
collector = new FilteredElementCollector(doc).OfClass(typeof(Family));
I can use FamilySymbol to Find the Family but it will have a duplicate family on the list.
IList<Element> FamilySybol = new FilteredElementCollector(doc).OfClass(typeof (FamilySymbol)).ToElements();
List<Element> EditableFamily = new List<Element>();
foreach (FamilySymbol ele in FamilySybol)
{
if (ele.Category != null && ele.Family.IsEditable)
{
EditableFamily.Add(ele);
}
}
So how can I remove the duplicate Family on the EditableFamily List?
or find the All Editable Family on the Project Document?
Thanks
Solved! Go to Solution.