> ## 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.

# elementary_data_selector class

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

## Summary

Creates a scalar/vector field based on the selected elementary data.

available inputs: `field` (Field, FieldsContainer), `elementary_data_index` (Int32, IList int, System.Collections.IEnumerable), `default_value` (double) (optional), `elementary_data_index_2` (Int32, IList int, System.Collections.IEnumerable) (optional)

available outputs: `field` (Field)

## Example

```python theme={null}
op = elementary_data_selector()

op = elementary_data_selector(field=my_field,elementary_data_index=my_elementary_data_index,default_value=my_default_value,elementary_data_index_2=my_elementary_data_index_2)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.logic` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### field

**Type:** *LinkableInput*

### elementary\_data\_index

One or several elementary data index that will be extracted from the initial field. For field with nature matrix, this is the line indices to extract.

**Type:** *LinkableInput*

### default\_value

Set a default value for elementary data that do not exist.

**Type:** *LinkableInput*

### elementary\_data\_index\_2

For field with nature matrix, this is the column indices to extract.

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
elementary_data_selector()
```

#### Constructor

```python theme={null}
elementary_data_selector(field, elementary_data_index, default_value, elementary_data_index_2, config)
```

**Parameters:**

* `field` (*object*)
* `elementary_data_index` (*object*)
* `default_value` (*object*)
* `elementary_data_index_2` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
elementary_data_selector(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

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

#### outputs

**Type:** *OutputSpec*

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

#### defaultConfig

**Type:** *Config*

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