Sepasoft MES Module Suite
system.mes.spc.sample.getNewByDefUUID(defUUID, locationPath)
Creates and returns a new sample based on the sample definition that matches the defUUID parameter. The newly created sample will also be initialized for the location specified by the locationPath parameter.
Syntax
system.mes.spc.sample.getNewByDefUUID(defUUID, locationPath)
- Parameters
String defUUID - Existing sample definition UUID to base this sample on.
String locationPath - A valid equipment path to a location.
- Returns
Sample - A reference to the existing sample or the newly created sample.
- Scope
All
Code Examples
Python |
locationPath = 'Enterprise\\El Dorado Hills\\Test\\location1' defUUID = 'e757f711-57a6-485a-865a-609ffaa33583' sample = system.mes.spc.sample.getNewByDefUUID(defUUID, locationPath) sample.setScheduledStart(system.date.now()) system.mes.spc.sample.update(sample, False) |
Sepasoft MES Module Suite