AddMessage

Add a message with severity and context to message window.

UI Access N/A
Parameters
Name Type Description
<projectName> String Project name. Passing an empty string adds the message as the desktop global message.
<designName> String Design name. Ignored if project name is empty. Passing an empty string adds the message to project node in the message tree.
<severity> Integer

One of "Error", "Warning" or "Info". Anything other than the first two is treated as "Info"

0 = Informational, 1 = Warning, 2 = Error, 3 = Fatal

<msg> String The message for the message window.
<category> String Optional. The category is created with the message under the design tree node if the category does not exist. If the category already exists, the new message is added to the end of the existing category. It is ignored if the project or design is empty. If missing or empty, the message is added to the Design node in the message tree.
Return Value None.

 

Python Syntax AddMessage( <projectName>, <designName>, <severity>, <msg>, <category>)
Python Example

oDesktop.AddMessage("Project1", "HFSS", 0, "This is a test message", "")