EDIT2: new version (January 2014) at
Code: codice sorgente

Compiled  DLL and ADDIN
(copy to C:ProgramDataAutodeskRevitAddins2014 and Unblock the DLL)

via
http://puntorevit.blogspot.it/2014/01/view-depth-override-polar-distance_8.html

EDIT1: The code is at
Punto Revit: View Depth Override – Codice Sorgente

Paolo has created a macro that overrides elements based on their distance from the viewpoint.  Check out the video:

On his blog, he offers to share the code, if you ask 🙂

via
Google Translate
of
Revit Point: View Depth Override