Autodesk Developer Network 2011
Autodesk
PerformanceAdviserControl
§PerformanceAdviser API を使用
§要素に対して実行されるルールを選択(パフォーマンスと基準テスト)
§パフォーマンス低下を起こす要素や設定に警告を発行
§独自のAPI ベースのルールを作成して登録
PerformanceAdviserControlサンプルです。

PerformanceAdviser API 使用方法を紹介しています。

PerformanceAdviserは製品機能で、パフォーマンス低下を起こす要素や設定に警告を発行します。このAPIは独自のルールと基準を定義することができます。そして、ルールを選択して要素に対して実行することができます。そして、モデルがそのルール従っているか確認することができます。このサンプルではダイアログボックスに定義されているすべてルールを表示します。また、独自のルールを作成して、PerformanceAdviserにそれを登録しています。




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.