Sepasoft MES Module Suite
system.mes.pasteSchedule(mesObjectList, equipmentLink, preferredStart)
Paste an operations schedule and all associated operations requests and request segments objects.
Syntax
system.mes.pasteSchedule(mesObjectList, equipmentLink, preferredStart)
- Parameters
MESObjectList mesObjectList - The list containing the operations schedule and associated operations requests and request segments objects to paste.
MESObjectLink equipmentLink - A link representing MES equipment object to schedule the first operations request for.
Date preferredStart - The date of the preferred start time to schedule the first operations request for.
- Returns
The list containing the operations schedule and associated operations requests and request segments objects that have been scheduled. The list is returned as a MES Object List object that is a collection holding MES objects.
- Scope
All
Code Example
Python |
from java.util import Calendar begin = Calendar.getInstance() begin.add(Calendar.DAY_OF_MONTH, -30) start = begin.getTime() #Get the MES object link of Unload Station 1 eqPath = 'My Enterprise\California\Receiving\Unload Station 1' eqLink = system.mes.getMESObjectLinkByEquipmentPath(eqPath) #Get the MES object list containing the schedule details schedule = system.mes.loadSchedule('14850859-fe9e-4aa8-a9d2-856022ef1bb3') system.mes.pasteSchedule(schedule, eqLink, start) |
Sepasoft MES Module Suite