system.mes.createSegmentForOperation

Sepasoft MES Module Suite

system.mes.createSegmentForOperation(operationsResponseUUID, segmentName, autoAssignOptions)

Create a new Response Segment from the specified Operations Response that can be used to begin a segment.

Syntax

system.mes.createSegmentForOperation(operationsResponseUUID, segmentName, autoAssignOptions)

  • Parameters

String  operationsResponseUUID - The operations response UUID to create the response segment for.

String segmentName - The name of the operations segment to base the response segment on. If this property is empty, then the name of the operations response object will be used.

Boolean autoAssignOptions - If true, automatically assign material, lot and person options. Otherwise, they have to be set prior to beginning the segment.

  • Returns

A new MESResponseSegment object.

  • Scope

All

Python
operationsResponseUUID = 'c8c77882-9786-4adb-a657-ec4dcc0a4bda'
segmentName = 'Sugar-Nuts Unlimited:Site 1:Area:Line 1'
autoAssignOptions = True
seg=system.mes.createSegmentForOperation(operationsResponseUUID, segmentName, autoAssignOptions)
print seg

Output

Code
ResponseSegment (46ab55da-8d4c-4e39-b4dc-61580b8acd08, Sugar-Nuts Unlimited:Site 1:Area:Line 1, 0 parents, 0 children, 0 custom properties, 7 complex properties)



Sepasoft MES Module Suite