system.mes.getMESObjectLinksByEquipmentPath

Sepasoft MES Module Suite

system.mes.getMESObjectLinksByEquipmentPath(equipmentPath, includeSupplementalEquipment)

Get a MESObjectLink for the specified equipment path. Includes parameter to include Supplemental Equipment as objects to load the MESObjectLink for (default setting is False = not included).

Syntax

system.mes.getMESObjectLinksByEquipmentPath(equipmentPath, includeSupplementalEquipment)

  • Parameters

String equipmentPath - The equipment path to return the MESObjectLink for the associated MES object.

Boolean includeSupplementalEquipment - If True, Supplemental Equipment will be included as objects to load the MESObjectLink for (default setting is False = not included).

  • Returns

A list of MES Object Link objects. A MESObjectLink contains basic information about the MES object without the overhead of the full MES object. It can be a link to one of the following MES object types MESEnterprise, MESSite, MESArea, MESLine, MESLineCell, MESLineCellGroup, MESStorageZone or MESStorageUnit. If includeSupplementalEquipment = True, then Supplemental Equipment are included as objects to load the MESObjectLink for.

  • Scope

All

Code
objLinkList = system.mes.getMESObjectLinkByEquipmentPath('[global]\My Enterprise\California\Plant Floor\Line 1', True)
for objLink in objLinkList:
	print objLink.getMESObject().getName()

Output

Code
Line 1
Rolling Cart 1
Rolling Cart 2
Rolling Cart 3
Rolling Cart 4
Rolling Cart 5



Sepasoft MES Module Suite