---
title: "MESLotAvailabilityStatusTypes"
id: "meslotavailabilitystatustypes"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/meslotavailabilitystatustypes"
updated: 2026-07-31T14:55:34Z
---

# MESLotAvailabilityStatusTypes

**Sepasoft MES Module Suite**

### Status Types | MESLotAvailability

The available lot status types are:

* Available
* Used
* Both

Lot status can also be set with [setPropertyValue('LotAvailabilityStatus', 'Both')](/articles/user-manual/abstractmesobject-functions/a/expander-218447480) script function.

```python
#Load MES object
obj = system.mes.loadMESObject('Box', 'MaterialDef')
  
#Get and print the current name of the MES object
#Notice either method can be used to read the Name property
print obj.getName()
print obj.getPropertyValue('Name')
#Change the name of the MES object
obj.setPropertyValue('Name', 'Empty Box')
 
#Set the lot status
obj.setPropertyValue('LotAvailabilityStatus', 'Available')  

#Don't forget to save the MES object after changing property values
system.mes.saveMESObject(obj)
 
```


**Sepasoft MES Module Suite**