EDIT2: new version (January 2014) at
Code: codice sorgente,
(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
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 🙂