Eplan Platform API
Eplan.EplApi.EServices Namespace / PrjMessagesCollection Class / AddMessage Method / AddMessage(Region,Int32,String,StorableObject,Boolean,StorableObject,String,Int16) 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 object. Optional parameter; can also be NULL.
True\: The message is immediately displayed in the message window.
A second object to which this message also refers. Optional parameter; can also be NULL.
Additional language\-independent message text. Is saved as specified in the database. Optional parameter; this string may also be empty.
Additional information about the source of the message. Possible values are: 0 - undefined, 1 - Online verification 2 - Offline verification 3 - Explicit creation Note: In order to add a message with nCreationType = 3, it must be registered and enabled in the message management.

In This Topic
    AddMessage(Region,Int32,String,StorableObject,Boolean,StorableObject,String,Int16) Method
    In This Topic
    Adds a new message to the project's message management window.
    Syntax

    Parameters

    Parameter NameDescription
    eRegionA message of this IMessage.Region is added.
    nErrNrA message with this message number is added.
    strErrTextParamreference 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
    oObject1The message refers to this object. Optional parameter; can also be NULL.
    bImmediateShowTrue\: The message is immediately displayed in the message window.
    oObject2A second object to which this message also refers. Optional parameter; can also be NULL.
    strAdditionalInfoAdditional language\-independent message text. Is saved as specified in the database. Optional parameter; this string may also be empty.
    nCreationTypeAdditional information about the source of the message. Possible values are: 0 - undefined, 1 - Online verification 2 - Offline verification 3 - Explicit creation Note: In order to add a message with nCreationType = 3, it must be registered and enabled in the message management.
    See Also