Sepasoft MES Module Suite
Event when MES Object Is Created
This event is run every time a new MES object is created. It can be used to add custom properties or to perform other task.
If no script is entered, then the default handler is executed.
Execute the Default Handler
Python |
#Add custom property when a new instance of a MaterialDef object is created. obj = event.getMESObject() obj.addCustomProperty('Width', 'Int4', 'Part Width', 'mm', True, False) event.runDefaultHandler() |
Sepasoft MES Module Suite