© 2010 Autodesk
Introduction to Revit 2011 API
要素フィルタ
 コンポーネントファミリのインスタンス
§全てのドアを見つける
<VB.NET>
    Dim doorCollector = New FilteredElementCollector(m_rvtDoc). _
        OfClass(GetType(FamilyInstance))
    doorCollector.OfCategory(BuiltInCategory.OST_Doors)
    Dim doorList As IList(Of Element) = doorCollector.ToElements
</VB.NET> 
これはドアのインスタンスを見つける例です。コンポーネントファミリの定義クラスのFamilyInstanceクラス と“ドア”カテゴリの組み込みカテゴリIDでフィルタリングします。