Model.CE_UpdateCustomMessage#
- Model.CE_UpdateCustomMessage(id, message_code)#
Attaches a custom error message to a connector.
- Parameters:
id (unsigned int) – The ID of the connector to update.
message_code (unsigned int) –
This is the message code as specified in the Connector_Message.txt file, which is available in the HyperMesh installation directory.
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.
Example#
Attach a message to connector with ID 100#import hm import hm.entities as ent model = hm.Model() # 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." # Attach the first message to connector with ID 100: model.CE_UpdateCustomMessage(id=100, message_code=11110)