Sepasoft MES Module Suite
system.mes.getNextMESObjectName(mesObjectTypeName, mesObjectUUID, name)
Return the next available name. If the proposed name is already used, the next available sequential number will be appended to the end.
Syntax
system.mes.getNextMESObjectName(mesObjectTypeName, mesObjectUUID, name)
- Parameters
String mesObjectTypeName - The MES Object Type to generate the next name for. Because names must be unique within the category of MES object type, this is required. See MES Object Type Name for more details.
String mesObjectUUID - When this script function is called for an existing MES object, this is the UUID for it so that it will ignore duplicate name check with itself. Otherwise, just pass an empty string.
String name - Proposed name to use.
- Returns
Next available name.
- Scope
All
Python |
#This Snippet is an example that retrieves information about the next available name. system.mes.getNextMESObjectName('StorageUnit', '8da06ff8-2922-4e0c-a01a-e7cda6899a0e', 'StorageZone') |
Sepasoft MES Module Suite