PrjMessagesRegisteredEnumerator Class
iterates over all registered electrotechnical messages of the system
Eplan::EplApi::EServices:
System.Object
Eplan.EplApi.EServices.PrjMessagesRegisteredEnumerator
getting all registered electrotechnical messages in the system
PrjMessagesRegisteredCollection colPrjRegMsg = new PrjMessagesRegisteredCollection();
PrjMessagesRegisteredEnumerator itPrjRegMsg = colPrjRegMsg.GetRegisteredPrjMsgsEnumerator();
itPrjRegMsg.MoveNext();
int nNr=0;
do
{
ElectroMessage oEMsg = itPrjRegMsg.Current as ElectroMessage;
if (oEMsg != null)
{
nNr++;
}
} while(itPrjRegMsg.MoveNext());