Autodesk Revit: Controlling Visibility and Graphic Display

Demonstrates how to check for and override visibility and graphic settings of Revit elements and element categories.

source