A simple Revit addin that demonstates using the idle event to change a titleblock parameter in order to change the visibility of different scale bars.
Assumes the titleblock family has instance yes/no parameters that control the visibity of different scale bars. The first view added to a sheet controls which scale bar is shown.