Hi There,
In an attempt to efficiently select the invisible lines GraphicsStyle, I managed to do it with
from pyrevit import DB, revit
doc = revit.doc
id = DB.ElementId(DB.BuiltInCategory.OST_InvisibleLines)
coll = DB.FilteredElementCollector(doc).OfClass(DB.GraphicsStyle)
for i in coll:
if i.GraphicsStyleCategory.Id==id:
# print(i.GraphicsStyleCategory.Id)
# print(i.GraphicsStyleCategory.Name)
the id of the category being the only constant I could find to filter down the list of GraphicsStyles
- Do you know a way to use a filter in the collector that would be language independant and work…?
- A better way to do it?
- Same goes to select the Solid FillPattern in an language independant way?