Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have code that deletes all lines in the document. I only want to delete the lines that are not on the <Room Separation> subcategory. I probably need to add something to my FilteredElementCollector but I can't figure out what. Thanks in advance.
//Lines
var linIds = new FilteredElementCollector(doc, vw.Id)
.OfClass(typeof(CurveElement))
.ToElementIds();
foreach (var lin_id in linIds)
{
doc.Delete(lin_id);
linCount++;
}
Solved! Go to Solution.