API Help
Eplan.EplApi.EServices Namespace / IPartVerification Interface / Execute Method
This MDPartsDatabaseItem will be checked.
Example

In This Topic
    Execute Method (IPartVerification)
    In This Topic
    Called by EPLAN when a specific MDPartsDatabaseItem is to be checked. Currently only MDPart objects are passed to this method. Implements the "check."
    Syntax

    Parameters

    oMDPartItem
    This MDPartsDatabaseItem will be checked.
    Example
    The following example shows a method to check if part has empty ERP number. The error message will be added into message dialog.
    public override void Execute(Eplan.EplApi.MasterData.MDPartsDatabaseItem oMDPartItem)
    {
    	MDPart oPart = oMDPartItem as MDPart;
    	if (oPart != null)
    	{
    		if (oPart.Properties.ARTICLE_ERPNR.IsEmpty)
    		{
    			DoErrorMessage(oPart.PartNr);
    		}                
    	}
    }
    See Also