---
title: "system.mes.spc.analysis.getSPCDataFormatEnum"
id: "system-mes-spc-analysis-getspcdataformatenum"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/system-mes-spc-analysis-getspcdataformatenum"
updated: 2026-07-31T14:56:09Z
---

# system\.mes\.spc\.analysis\.getSPCDataFormatEnum

**Sepasoft MES Module Suite**

### system.mes.spc.analysis.getSPCDataFormEnum

system.mes.spc.analysis.getSPCDataFormatEnum(value)
### system.mes.spc.analysis.getSPCDataFormatEnum(value)

Returns SPCDataFormat for the specified ordinal value. The SPC data formats represent the control chart types and is used when specifying the kind SPC results to return.

Syntax

system.mes.spc.analysis.getSPCDataFormatEnum(value)

* Parameters

Integer value - The ordinal value representing the SPCDataFormat.

0 - None
1 - XBarR
2 - XBarS
3 - Individual
4 - Median
5 - U
6 - C
7 - P
8 - NP
9 - Histogram
10 - Pareto
11 - Process Capability
12 - Process Performance
13 - Parts Per Million
14 - Anderson-Darling Test
15 - Box and Whisker
16 - Process Capability and Performance

* Returns

**SPCDataFormat** - A reference to the matching SPCDataFormat object.

* Scope

All

Code Example

```python
for i in range(17):
	print i,'-',system.mes.spc.analysis.getSPCDataFormatEnum(i)
```


system.mes.spc.analysis.getSPCDataFormatEnum(name)
### system.mes.spc.analysis.getSPCDataFormatEnum(name)

Returns SPCDataFormat for the specified name value. The SPC data formats represent the control chart types and is used when specifying the kind SPC results to return.

Syntax

system.mes.spc.analysis.getSPCDataFormatEnum(**name**)

* Parameters

String **name** - The name value representing the SPCDataFormat.

"None"
"XBarR"
"XBarS"
"Individual"
"Median"
"U"
"C"
"P"
"NP"
"Histogram"
"Pareto"
"Process Capability"
"Process Performance"
Parts Per Million"
"Anderson-Darling Test"
"Box and Whisker"
"Process Capability and Performance"

* Returns

**SPCDataFormat** - A reference to the matching SPCDataFormat object.

* Scope

All

Code Example

```python
print system.mes.spc.analysis.getSPCDataFormatEnum('Box and Whisker')
print type(system.mes.spc.analysis.getSPCDataFormatEnum('Box and Whisker'))
```


**Sepasoft MES Module Suite**