Sepasoft MES Module Suite
Core Properties of MES Objects
The base AbstractMESObject object provides core properties that are common to all MES objects.
The values of the core properties are accessed using the getPropertyValue() and setPropertyValue() functions of the AbstractMESObject object.
| Name | read, write | This is the name of the MES object. This name is used when referencing the object. It must be a unique name meaning that no other MES object of its type can have the same name. Any names coming into the system must begin with a letter, digit or underscore. Subsequent characters may include spaces and dashes. These characters are not allowed in property names: . ? ! # % ^ * ~ [ ] { } + = ` \/ " $ | , |
| UUID | read-only | This will contain the Universally Unique Identifier for each instance of a MES object. |
| Enabled | read, write | This property will be set to true when the MES object is active and usable. When MES objects are deleted they are still retained in the database and the Enabled setting is set to false. This is done to maintain past traceability information. |
| Description | read, write | An optional setting to give more details for a MES object. |
Code Example: Read Object UUID Snippet
Python |
#Get MES object UUID example: mesObject = system.mes.loadMESObject("Vinegar", "MaterialClass") print mesObject.getPropertyValue('UUID') |
Code Example: Set Object Name Snippet
Python |
#Set MES object name example: mesObject = system.mes.loadMESObject("Vinegar", "MaterialClass") mesObject.setPropertyValue('Name', 'MyNewObjectName') |
Sepasoft MES Module Suite