---
title: "Add Limit to Sample Definition 3.0"
id: "add-limit-to-sample-definition-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/add-limit-to-sample-definition-3-0"
updated: 2026-07-23T18:08:31Z
---

# Add Limit to Sample Definition 3\.0

## Overview

By adding a control limit to the sample definition, it will show as an option in the control charts and may also be used when evaluating signals. Creating a control limit and adding it to an existing sample definition can be done through scripting.

### Applies To and Version Info

This feature applies to SPC module and is available in all versions.

## Scripting

The control limit parameter must be a valid control limit that appears in the enterprise production item.

Example 1

Code

```
sampleDef = system.mes.loadMESObject('Case Inspection','SampleDefinition')
sampleDef.addLimit('c LCL')
system.mes.saveMESObject(sampleDef)
```


## References

[Sample Definition](/articles/user-manual/Sample-Definition)