Namespace:
Autodesk.Revit.DB
PerformanceAdviser
Class
Description:
The tool to report performance problems in a given document.
The tool to report performance problems in a given document.
Remarks:
Class is an application-wide singleton that performs a dual role: it is a repository of rules to run in order to detect potential performance problems as well as an access point to execute checks.
Class is an application-wide singleton that performs a dual role: it is a repository of rules to run in order to detect potential performance problems as well as an access point to execute checks.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.PerformanceAdviser
System.Object
Autodesk.Revit.DB.PerformanceAdviser
Syntax
public class PerformanceAdviser : IDisposable
Examples
//Get the name of each registered PerformanceRule and then execute all of them.
foreach (PerformanceAdviserRuleId id in PerformanceAdviser.GetPerformanceAdviser().GetAllRuleIds())
{
string ruleName = PerformanceAdviser.GetPerformanceAdviser().GetRuleName(id);
}
PerformanceAdviser.GetPerformanceAdviser().ExecuteAllRules(document);