Skip to end of metadata
Go to start of metadata
Description

Return a list of MES object links to material objects for the specified parent. Material objects consist of Material Class, Material Def and Material Root type of objects.

Syntax

system.mes.oee.getMaterialItems(parentLink, searchPattern)


  • Parameters

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.

  • Returns

MESList<MESObjectLink> - A MESList containing a MESObjectLink object for each material object in the results.

  • Scope

All

Code Examples
Code Snippet
##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 
Output
Class1
PC_0001
PC_0002 
ProductClass
...
  • No labels