»public static List<Element> GetAllWalls( Application app )
»{
»
List<Element> elements = new List<Element>();
»
Filter filterType = app.Create.Filter.NewTypeFilter( typeof( Wall )
);
»
app.ActiveDocument.get_Elements( filterType,
elements );
»
return
elements;
»}