system.mes.getDependencies

Sepasoft MES Module Suite

system.mes.getDependencies(mesObject)

Get MES object links of all objects that depend on the specified object.

Syntax

system.mes.getDependencies(mesObject)

  • Parameters

AbstractMESObject mesObject - An MES object to return dependencies for. See AbstractMESObject object in the MES documentation.

  • Returns

A list of MES Object Link objects that depend on the specified object specified in the mesObjectLink parameter. A MESList object is returned that is a collection holding MES object links.

  • Scope

All

Python
#The following is the snippet prints the list of objects.
matClass = system.mes.createMESObject('MaterialClass')
matClass.setPropertyValue('Name', 'Turkey')
matClass.addCustomProperty('Weight', 'Float8', 'Weight of the turkey', 'Lbs', True, True)
system.mes.saveMESObject(matClass)
results = system.mes.getDependencies(matClass)

Sepasoft MES Module Suite