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

# component_transformer class

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

## Summary

Takes the input field and creates a field with overriden value on given components.

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

available outputs: `field` (Field)

## Example

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

op = component_transformer(field=my_field,component_number=my_component_number,default_value=my_default_value)
```

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

### component\_number

One or several component index that will be modified from the initial field.

**Type:** *LinkableInput*

### default\_value

Set a default value for components selected.

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
component_transformer(field, component_number, default_value, config)
```

**Parameters:**

* `field` (*object*)
* `component_number` (*object*)
* `default_value` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

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