system.mes.oee.removeMaterialOperationSegments

Sepasoft MES Module Suite

Description

Remove the existing operations MES objects for the specified material and equipment. Each material and equipment combination will have a set of MES operations objects.

Syntax

system.mes.oee.removeMaterialOperationSegments(materialLink, equipmentPath)


  • Parameters

MESObjectLink materialLink - The MES object link to the material definition to remove the operations MES objects.

String equipmentPath - The equipment path to remove the operations MES objects.

  • Returns

Nothing

  • Scope

All

Code Examples

Code Snippet

Code
path = "Enterprise\Site\Area\Line 1\Cell Group\Work Cell"
matRoot = system.mes.getMESObjectLinkByName('MaterialClass', 'Test Material')
matLink = system.mes.oee.getMaterialItems(matRoot, 'PC_0001').get(0)
system.mes.oee.removeMaterialOperationSegments(matLink, path) 

Output

Code
 

Sepasoft MES Module Suite