Skip to end of metadata
Go to start of metadata
Return a list of MES object links to material objects for the specified parent. To start at the root material object, set the parentLink parameter to None. Material objects consist of Material Class, Material Def and Material Root type of objects.
system.mes.oee.getMaterialItems(parentLink, searchPattern)
MESObjectLink parentLink - The MES object link of the parent of the children to include in the results.
String searchPattern - Child material object name filter pattern to limit the results by. It can contain the * and ? wild card characters.
MESList<MESObjectLink> - A MESList containing a MESObjectLink object for each material object in the results.
All
##Get all the children (both classes and material definitions) that are under the Material Root.
##That is, get all material items available for OEE operations.
##The search pattern '*' returns all, but a specific name will return just the relevant link(s).
matRoot = system.mes.getMESObjectLinkByName('MaterialRoot', 'Material Root')
list = system.mes.oee.getMaterialItems(matRoot, '*')
for i in range(list.size()):
matLink = list.get(i)
print matLink
Class1
PC_0001
PC_0002
ProductClass
...