liam1
August 17, 2023, 8:39am
1
I'm trying to build a custom batch executioner interface and am struggling to find the scripting functions that returns a list of the process cell objects.
Does anyone know?
Below is the default perspective component that comes pre build in sepasoft.
Hello @liam1
You can search for any MES Object type via a filter object like so:
filter = system.mes.object.filter.createFilter()
filter.setMESObjectTypeName('ProcessCell')
objs = system.mes.searchMESObjects(filter)
print objs
for obj in objs:
print obj.getName()
print obj.getMESObject().getEquipmentPath()
https://help.sepasoft.com/docs/display/SEPA/system.mes.loadMESObjects
https://help.sepasoft.com/docs/display/SEPA/MES+Object+Filter
https://help.sepasoft.com/docs/display/SEPA/MES+Object+Type+Name
Alternatively, if a dropdown is all that is needed, the MES Object Selector can populate a list of Process Cells:
https://help.sepasoft.com/docs/display/SEPA/MES+Object+Selector+-+Perspective
Feel free to reach out to our Design Consultation team to take a look at your project requirements.
liam1
August 18, 2023, 6:17am
3
Thank you this is what I was looking for.
1 Like