---
title: "Common Events"
id: "common-events"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/common-events"
updated: 2026-07-31T14:54:21Z
---

# Common Events

**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**