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

# field_to_csv class

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

## Summary

Exports a field or a fields container into a csv file

available inputs: `field_or_fields_container` (FieldsContainer, Field), `file_path` (string), `storage_type` (Int32) (optional)

available outputs:

## Example

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

op = field_to_csv(field_or_fields_container=my_field_or_fields_container,file_path=my_file_path,storage_type=my_storage_type)
```

## Class Information

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

## Inputs

### field\_or\_fields\_container

field\_or\_fields\_container

**Type:** *LinkableInput*

### file\_path

**Type:** *LinkableInput*

### storage\_type

storage type : if matrices (without any particularity) are included in the fields container, the storage format can be chosen. 0 : flat/line format, 1 : ranked format. If 1 is chosen, the csv can not be read by "csv to field" operator anymore. Default : 0.

**Type:** *LinkableInput*

## Outputs

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
field_to_csv(field_or_fields_container, file_path, storage_type, config)
```

**Parameters:**

* `field_or_fields_container` (*object*)
* `file_path` (*object*)
* `storage_type` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
field_to_csv(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
```
