TypeFilter Tpfilter = new TypeFilter(DbElementTypeInstance.EQUI);
DBElementCollection Dbcoll = new DBElementCollection(CurrentElement.Element, Tpfilter);
var dataFilter = new AndFilter(new BaseFilter[]
{
new AttributeValueFilter(DbAttributeInstance.TYPE, TestOperator.NotEquals, "EQUIPMENT")
});
DBElementCollection dec = new DBElementCollection(ele, dataFilter);
TypeFilter typeFilter = new TypeFilter();
typeFilter.Add(DbElementType.GetAllElementTypes());
typeFilter.Remove(DbElementTypeInstance.EQUIPMENT);
DBElementCollection dBElementCollection = new DBElementCollection(CurrentElement.Element, typeFilter);