Hi,
I'm looking to create some sort of addon that allows the user to globally swap all lines of style x to style y.
So to do this, I create a FilteredElementCollector to get all lines:
FilteredElementCollector getlines = new FilteredElementCollector(doc)
.WherePasses(new ElementCategoryFilter(BuiltInCategory.OST_Lines))
.WhereElementIsNotElementType();
Then use GetLineStyleIds() to get all the line styles, iterate the style names to find the one I want then cast it to a GrpahicsStyle and set it with DetailLine.LineStyle (or ModelLine).
The issue I have is that this only covers Detail or Model lines, so I then have to get all Filled Regions, and iterate through their lines and check the linestyles.
Is there a better way to do this to simply get all items using a line style? I'm concerned that I might miss something using the line style I want to change?
Thanks!