Autodesk Developer Network 2011
Autodesk
PerformanceAdviserControl
§Demo usage of the PerformanceAdviser API
§Select rules to be run on elements, performance and criteria tests
§Show warnings for elements meeting the selected rules' criteria
§Create and register custom API-based rules
Allow user to select certain performance and criteria tests to be run on the elements of the active document.  It also demonstrates how to create custom API-based rules and register them with PerformanceAdviser.

Open C:\a\lib\revit\2012\SDK\Samples\PerformanceAdviserControl\DoorsAndWalls.rvt.

Run RvtSamples > Elements > PerformanceAdviserControl.