Core Properties

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.

See AbstractMESObject Functions.


Nameread, 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: . ? ! # % ^ * ~ [ ] { } + = ` \/ " $ | ,

UUIDread-onlyThis will contain the Universally Unique Identifier for each instance of a MES object.
Enabledread, writeThis 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.
Descriptionread, writeAn 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