Message 1 of 5
Family Categories on Project
Not applicable
08-17-2015
01:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I'm trying to get all famalies categories hosted on the current project and then put in on a combo box. I've this code for searching the families on the project, but the code is bring me all the famillies (Categories, Families and Types). My objective is create 3 Combo boxes, 1 for Categories, 1 for Sub Categories and the last for the Types of the families.
List<Family> lstFamily = new List<Family>(
new FilteredElementCollector(docM)
.OfClass(typeof(Family))
.Cast<Family>()
.Where<Family>(f =>
f.FamilyPlacementType ==
FamilyPlacementType.OneLevelBased));
FamilyA.DataSource = lstFamily.ToArray();
FamilyA.DisplayMember = "Name";
Do you have other example to how i can get this information.
Tanks