HyperWorks Solvers

Messaging Mapping

Messaging Mapping

Previous topic Next topic No expanding text in this topic  

Messaging Mapping

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Messaging mapping allows you to overwrite MotionSolve standard messages in the log file, or to append additional comments to the standard MotionSolve message.

You can customize messages by defining a CustomMessage element in the XML mapping file as shown in the figure below.  Based on the definition of the custom message, the log file will contain customized information.  Only messages with an ID tag can be customized.

cust_msg_ele

<CustomMessage/> element in the mapping XML and the corresponding log file as the output

The general syntax for the CustomMessage element is:

<CustomMessage

 ID                  = "integer"

 TYPE                = { "INFO" | "WARNING" | "ERROR" }

 ACTION              = { "APPEND" | "OVERWRITE" | "DISABLE" }

 TITLE               = { "ON" | "OFF" }

 WARN_COUNT          = "integer"

/>

Attributes

ID

Specifies a unique ID for the message.  This must match with the message ID written by MotionSolve.

TYPE

Specifies the type of the message (WARNING, ERROR, or INFO).  The default is set to INFO.

ACTION

Message action (APPEND, OVERWRITE, or DISABLE). The default is set to APPEND.

APPEND appends the custom message after the standard message.

OVERWRITE uses the custom message instead of the standard message.

DISABLE disables the message (both standard and custom message).

TITLE

Specifies whether to enable or disable the title of the message.  The default is ON.

WARN_COUNT

Specifies how many times a specific warning is to be printed.  The default values is -1, which represents infinity.  This is applicable only to messages of the type WARNING.