*CE_UpdateCustomMessage

Attaches a custom error message to a connector.

Syntax

*CE_UpdateCustomMessage id message_code

Type

HyperMesh Tcl Modify

Description

This command attaches a custom error message to a connector.

Inputs

id
The ID of the connector to update.
message_code
This is the message code as specified in the Connector_Message.txt file, which is available in the HyperMesh installation directory.
This file contains code-message pairs (i.e. for each code a user-defined message is available). You can edit/add messages to this file and provide the message code for this argument.

Examples

The Connector_Message.txt file contains the following lines of code-message pairs:
11110 "Connector failed to create proper system."
11111 "Not a valid tag as link."
11112 "CE link does not have properties."
To attach the first message to connector 100:
*CE_UpdateCustomMessage 100 11110

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0.101