Sepasoft MES Module Suite
system.mes.workorder.getMESWorkOrder(workOrderName)
Gets the work order object.
Syntax
system.mes.workorder.getMESWorkOrder(workOrderName)
- Parameters
String workOrderName - The name of a work order.
- Returns
MESWorkOrder - A MESWorkOrder object.
- Scope
All
Code Example
Python |
##Get a work order, set the quantity, and save the work order to manifest the change. woObj = system.mes.workorder.getMESWorkOrder('0752665525') woObj.setWorkOrderQuantity(float(6754)) system.mes.workorder.saveMESWorkOrder(woObj) print woObj |
Output
Code |
WorkOrder (a289e509-656b-4914-a597-386e7cf7376b, 0752665525, 0 parents, 0 children, 0 custom properties, 0 complex properties) |
Sepasoft MES Module Suite