Here’s a fun one; I’ve been racking my brain around it for hours now. My engineers use red text on sheets as messages to the next person who opens it. However, when we print, I want only the red text to be hidden on all sheets (and eventually I’ll turn them back on). I’m trying to automate it so it’s a mindless function in the back ground.
So far I’ve managed to find all the red text styles in my drawing, but Views.HideElements is either not accepting the elements I’m giving them after the filter, or it doesn’t like the Sheets.All output.
Suggestions? I’ve also tried View.SetCategoryVisibility from MEPower and View.SetCategoriesOverrides (which works but won’t accept my filter).
Notice also, I looks like I’m picking up many many more text styles than what’s actually in Revit.