MDPartsDatabaseItemPropertyList filter = new MDPartsDatabaseItemPropertyList();
MDPartsDatabaseItemPropertyList properties = new MDPartsDatabaseItemPropertyList();
properties.ARTICLE_ERPNR = "-";
properties.ARTICLE_PARTNR = "-";
properties.ARTICLE_FREE_DATA_VALUE = "-";
//filter is empty => all parts
MDPart[] arrParts = m_MDPartsDatabase.GetParts(filter, properties);
foreach (Eplan.EplApi.MasterData.MDPart oPart in arrParts)
{
string strPartNr = oPart.PartNr;
string erpNum = oPart.Properties.ARTICLE_ERPNR;
}