Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsDatabaseMessages Class / AddMessage Method
A message with this message number is added.
It references to a parameter string to substitute placeholders in the resource error text. Multiple parameters must be separated with "|". In the error text parameters should be signed by "%1!s!", "%2!s!" etc. If the error text doesn't have any parameter to substitute strErrTextParam must be an empty string
The message refers to this part number. Cannot be empty or null.
The message refers to this part variant. Cannot be empty or null.

In This Topic
    AddMessage Method (MDPartsDatabaseMessages)
    In This Topic
    Adds a new message associated with part number to the PartsDatabase message management window.
    Syntax

    Parameters

    Parameter NameDescription
    nErrNrA message with this message number is added.
    strErrTextParamIt references to a parameter string to substitute placeholders in the resource error text. Multiple parameters must be separated with "|". In the error text parameters should be signed by "%1!s!", "%2!s!" etc. If the error text doesn't have any parameter to substitute strErrTextParam must be an empty string
    strPartNumberThe message refers to this part number. Cannot be empty or null.
    strPartVariantThe message refers to this part variant. Cannot be empty or null.
    Exceptions
    ExceptionDescription
    Thrown in case of invalid arguments.
    Remarks
    Method does not check if part and part variant exist.
    See Also