Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone help me with this? It's not throwing me any errors that I can see. Only thing I see in the debug is that the threads exit with code 0 when executing the add items method. still fairly new to Revit API.
{
ICollection<Element> FabricationPipework =
new FilteredElementCollector(Doc, Doc.ActiveView.Id).OfCategory(BuiltInCategory.OST_FabricationPipework).ToElements();
ICollection<Element> FabricationDuctwork =
new FilteredElementCollector(Doc, Doc.ActiveView.Id).OfCategory(BuiltInCategory.OST_FabricationDuctwork).ToElements();
ICollection<Element> FabricationHangers =
new FilteredElementCollector(Doc, Doc.ActiveView.Id).OfCategory(BuiltInCategory.OST_FabricationHangers).ToElements();
{
foreach (Element element in FabricationPipework)
comboBox1.Items.Add(FabricationPipework);
}
{
foreach (Element element in FabricationDuctwork)
comboBox1.Items.Add(FabricationDuctwork);
}
{
foreach (Element element in FabricationHangers)
comboBox1.Items.Add(FabricationHangers);
}
{
}
{
comboBox1.BackColor = System.Drawing.Color.Orange;
}
Here is the code that I have for this specific box. What's shown below is what I added within the form.
Solved! Go to Solution.