I’m sorry, I tried posting in the Revit API forums about this but maybe I’m not asking it right. I created “No Plot” doc-printing.py and doc-printed.py hooks that search the entire project for elements that have ‘NPLT’ in their type name.
It works for dimensions and text, but not lines. While I wish there were one FilteredElementCollector scheme to collect them all I would be equally happy having two separate FilteredElementCollectors.
Right now I’m assuming I need another filter specifically for collecting lines (detail, model, any) that have the phrase ‘NPLT’ in their style name.
I’ve actually collected all the subcategories of OST_Lines that have ‘NPLT’ in their name, but I have not been able to apply those subcategories to a filter to get the line elements themselves, so I’m thinking that might not be a good way to go about it.
I should note, that I tried just hiding the subcategory using SetCategoryHidden(c,True), but that only worked in Sheet Views, not in other views. (Remember I’ve got text and dimensions being hidden).
I have a bunch of messy code I can paste in here, but I would also happily go to a link if someone has a place I can get started from. I’ve searched all over The Building Coder, Revit API Forums, Google and nothing I’m trying seems to work - I’m looking for a clean start!