API Help
Eplan.EplApi.EServices Namespace / PrjMessagesCollection Class / AddMessage Method / AddMessage(Region,Int32,String,String,String,Boolean,String) Method
A message of this IMessage.Region is added.
A message with this message number is added.
reference to a parameterstring 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.
True\: The message is immediately displayed in the message window.
Additional language\-independent message text. Is saved as specified in the database. Optional parameter; this string may also be empty.

In This Topic
    AddMessage(Region,Int32,String,String,String,Boolean,String) Method
    In This Topic
    Adds a new message associated with part number to the project's message management window. Message is related to variant = 0.
    Syntax

    Parameters

    eRegion
    A message of this IMessage.Region is added.
    nErrNr
    A message with this message number is added.
    strErrTextParam
    reference to a parameterstring 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
    strPartNumber
    The message refers to this part number. Cannot be empty or null.
    strPartVariant
    The message refers to this part variant. Cannot be empty or null.
    bImmediateShow
    True\: The message is immediately displayed in the message window.
    strAdditionalInfo
    Additional language\-independent message text. Is saved as specified in the database. Optional parameter; this string may also be empty.
    Exceptions
    ExceptionDescription
    Thrown in case of invalid arguments.
    Remarks
    Method does not check if part and part variant exist.
    See Also