---
title: "Get Control Limit Value"
id: "get-control-limit-value"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/get-control-limit-value"
updated: 2026-07-31T14:57:26Z
---

# Get Control Limit Value

**Sepasoft MES Module Suite**
 #### Getting Control Limit Value

| ![Warning](/resources/Storage/user-manual/user-manual/Warning.png) | Stable Version: 3.81.5 and later<br><br>Release Candidate: 3.81.4 RC6 and later |
| --- | --- |

### 

```python
defName = 'Single Attribute'
definition = system.mes.spc.definition.getSampleDefinition(defName)
locationPath = 'Enterprise\El Dorado Hills\Packaging Area\Packaging Line 1\Inspection Station 1'
attributeName = 'Diameter'
limitName = 'Individual UCL'
print system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName)
```

#### Getting Control Limit Value when Only if Save Control Limits by Product Code is set on the Enterprise Root

```python
defName = 'Single Attribute'
definition = system.mes.spc.definition.getSampleDefinition(defName)
locationPath = 'Enterprise\El Dorado Hills\Packaging Area\Packaging Line 1\Inspection Station 1'
attributeName = 'Diameter'
limitName = 'Individual UCL'
product = 'Product A'
print system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName, productCode=product)
```


**Sepasoft MES Module Suite**