> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PropertyField class

**Namespace:** [Ans.DataProcessing](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing)

PropertyField(pField: IntPtr)

PropertyField(numEntities: int, elementaryDataSize: int)

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing` |
| Assembly | `CS_DataProcessing` |
| Base Class | `Ans.DataProcessing.internal_objects.DpfType` |

## Constructors

#### Constructor

```python theme={null}
PropertyField(pField)
```

**Parameters:**

* `pField` (*IntPtr*)

#### Constructor

```python theme={null}
PropertyField(numEntities, elementaryDataSize)
```

**Parameters:**

* `numEntities` (*int*)
* `elementaryDataSize` (*int*)

## Methods

#### Add

```python theme={null}
obj.Add(id, data)
```

**Parameters:**

* `id` (*int*)
* `data` (*list*)

#### GetEntityDataByIndex

Method `GetEntityDataByIndex` data container of the entity asked

```python theme={null}
result = obj.GetEntityDataByIndex(index)
```

**Parameters:**

* `index` (*int*)

**Returns:** *list*

#### GetEntityDataById

Method `GetEntityDataById` data container of the entity asked

```python theme={null}
result = obj.GetEntityDataById(id)
```

**Parameters:**

* `id` (*int*)

**Returns:** *list*

#### GetInternalData

```python theme={null}
result = obj.GetInternalData()
```

**Returns:** *IntPtr*

## Properties

#### ElementaryDataCount

Property `ElementaryDataCount` number of times numComp can be found in the data container

**Type:** *int*

```python theme={null}
# Get the property (read-only)
value = obj.ElementaryDataCount
```

#### Data

Property `Data`access the data container row values

Data can be seen as a list of elementary data (one by scoping id)

**Type:** *list*

```python theme={null}
# Get or set the property
value = obj.Data
obj.Data = new_value
```

#### Scoping

Property `Scoping` entities ids representing a subset of the model and on which the data container is scoped

**Type:** *Scoping*

```python theme={null}
# Get or set the property
value = obj.Scoping
obj.Scoping = new_value
```
