system.mes.hasDependencies

Sepasoft MES Module Suite

system.mes.hasDependencies(mesObject)

Determine if a MES object has other MES objects that rely on it.

Syntax

system.mes.hasDependencies(mesObject)

  • Parameters

AbstractMESObject mesObject - An MES object to check if dependencies exists. See AbstractMESObject object in the MES documentation.

  • Returns

True, if other MES object(s) depend on the specified object. 

  • Scope

All

Code Example

Python
#This code will check the dependency
matClass = system.mes.createMESObject('MaterialClass')
matClass.setPropertyValue('Name', 'Turkey')
matClass.addCustomProperty('Weight', 'Float8', 'Weight of the turkey', 'Lbs', True, True)
system.mes.saveMESObject(matClass)
system.mes.hasDependencies(matClass)

Sepasoft MES Module Suite