bool IsColumn( Element e )
{
return e is FamilyInstance
&& null != e.Category
&& e.Category.Name.ToLower().Contains( "column" );
// Optional stronger test:
//
// && (int) BuiltInCategory.OST_Columns
// == e.Category.Id.IntegerValue )
}