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

# DataTree class

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

DataTree()

DataTree(val: IntPtr)

## Class Information

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

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
DataTree(val)
```

**Parameters:**

* `val` (*IntPtr*)

## Methods

#### getStringAttribute

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

**Parameters:**

* `attribute_name` (*str*)

**Returns:** *str*

#### makeIntAttribute

```python theme={null}
obj.makeIntAttribute(attribute_name, value)
```

**Parameters:**

* `attribute_name` (*str*)
* `value` (*int*)

#### makeVecIntAttribute

```python theme={null}
obj.makeVecIntAttribute(attribute_name, data)
```

**Parameters:**

* `attribute_name` (*str*)
* `data` (*list*)

#### makeDoubleAttribute

```python theme={null}
obj.makeDoubleAttribute(attribute_name, value)
```

**Parameters:**

* `attribute_name` (*str*)
* `value` (*float*)

#### makeVecDoubleAttribute

```python theme={null}
obj.makeVecDoubleAttribute(attribute_name, data)
```

**Parameters:**

* `attribute_name` (*str*)
* `data` (*list*)

#### makeStringAttribute

```python theme={null}
obj.makeStringAttribute(attribute_name, value)
```

**Parameters:**

* `attribute_name` (*str*)
* `value` (*str*)

#### writeToTxt

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

**Returns:** *str*

#### fillFromTxt

```python theme={null}
obj.fillFromTxt(value)
```

**Parameters:**

* `value` (*str*)

#### ToJson

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

**Returns:** *str*

#### fillFromJson

```python theme={null}
obj.fillFromJson(value)
```

**Parameters:**

* `value` (*str*)

#### GetInternalData

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

**Returns:** *IntPtr*

#### hasSubTree

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

**Parameters:**

* `name` (*str*)

**Returns:** *bool*

#### hasAttribute

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

**Parameters:**

* `name` (*str*)

**Returns:** *bool*

#### getSubTree

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

**Parameters:**

* `name` (*str*)

**Returns:** *DataTree*

#### makeSubTree

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

**Parameters:**

* `name` (*str*)

**Returns:** *DataTree*

#### getIntAttribute

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

**Parameters:**

* `attribute_name` (*str*)

**Returns:** *int*

#### getVecIntAttribute

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

**Parameters:**

* `attribute_name` (*str*)

**Returns:** *list*

#### getDoubleAttribute

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

**Parameters:**

* `attribute_name` (*str*)

**Returns:** *float*

#### getVecDoubleAttribute

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

**Parameters:**

* `attribute_name` (*str*)

**Returns:** *list*
