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

# ImportItemInfo Struct Reference

Part of [Import](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__import)

defines a data item which was found in an input file

## Public Types

| Type | Name |
| - | - |
| enum | [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) \{  [NO\_FILE](#acf1b366f46b9570951935096bc25e2e6aaa33265d2e12fe02833b6564507c7ac2) = 0, [LSDYNA](#acf1b366f46b9570951935096bc25e2e6ae3ed41cd8fb28b6c00b37ec52b7cb6b7), [NASTRAN](#acf1b366f46b9570951935096bc25e2e6ae47615bbaba7255ab17b5475d3ba6f12), [NASTRAN\_DATA](#acf1b366f46b9570951935096bc25e2e6aa4a8fc27de7c1fc2c3d57f3b1f8769c4),  [IMAGE](#acf1b366f46b9570951935096bc25e2e6a3501d25cdde2b141c20edb67965fb692), [PERMAS](#acf1b366f46b9570951935096bc25e2e6adaa7322f9e97c3dd8c2ccc7fe2bde7e5), [STL](#acf1b366f46b9570951935096bc25e2e6a3a8b3333d20fa8bfc7a658976116142c), [SRB\_NODE\_DATA](#acf1b366f46b9570951935096bc25e2e6a6bf2010b1987cf32678a3d20cf271f0e),  [CSV\_ELEMENT\_DATA](#acf1b366f46b9570951935096bc25e2e6a04c6cc05b4b240dcef7010c0a8fe6c1d), [CSV\_NODE\_DATA](#acf1b366f46b9570951935096bc25e2e6aad9814c4f203f08feeafb2b6eee3eab7), [CSV\_SIGNAL\_DATA](#acf1b366f46b9570951935096bc25e2e6a565a2902cad43fe6a0e8c158b6840cd9), [ABAQUS](#acf1b366f46b9570951935096bc25e2e6ac8278d6ab53d336f785978d964b73abd),  [CSV\_GRID2D](#acf1b366f46b9570951935096bc25e2e6ae05af27a2ff0a38148e99ece412ce7f3), [CSV\_GRID3D](#acf1b366f46b9570951935096bc25e2e6a765a447254ba00bdf09a22ac1c93b73a), [LSDYNA\_LSPREPOST](#acf1b366f46b9570951935096bc25e2e6a761bc485b2799f7d8b5695d966705cb5), [VTK](#acf1b366f46b9570951935096bc25e2e6a37fb55ddbbe1465cec5f3d154db73e67),  [ANSYS\_RST](#acf1b366f46b9570951935096bc25e2e6a77d989119728b99238a80538f30d76f5), [ANSYS\_APDL](#acf1b366f46b9570951935096bc25e2e6a622beec7a5cbedf950674f030a0fc4bd), [CSV\_FLUENT](#acf1b366f46b9570951935096bc25e2e6ac73aa10b6ec1309408fb30504954e04b), [CSV\_SIGNAL\_MESH](#acf1b366f46b9570951935096bc25e2e6a120c094f497f70f76d525ba441139c13)  } defines the format of a file |
| enum | [Type](#a1d1cfd8ffb84e947f82999c682b666a7) \{  [MESH](#a1d1cfd8ffb84e947f82999c682b666a7a0b8403fccaa9b51239c179649c6fcb50) = 0, [ELEMENT](#a1d1cfd8ffb84e947f82999c682b666a7a3d10bfe84917127ab3347aa5c6309f33), [NODE](#a1d1cfd8ffb84e947f82999c682b666a7a59a889456a2d742fdca191dccb3e871d), [INTPT](#a1d1cfd8ffb84e947f82999c682b666a7a7b4620ed039f4599df122e7ed296888e),  [SCALAR](#a1d1cfd8ffb84e947f82999c682b666a7a7efbb6cac96595e63e8fa171bde1eb68), [NODE\_COOR\_X](#a1d1cfd8ffb84e947f82999c682b666a7a42ea467d50aa66afc0e6e315f8d112f1), [NODE\_COOR\_Y](#a1d1cfd8ffb84e947f82999c682b666a7a00b25c8e0cab6b1599a49ca6f47d713e), [NODE\_COOR\_Z](#a1d1cfd8ffb84e947f82999c682b666a7ac9c62cc9d9f69f7b3bd081fa8cd93866),  [NODE\_COOR\_DEVIATION\_X](#a1d1cfd8ffb84e947f82999c682b666a7ab6680dc1c94d4fa46f7b193339253870), [NODE\_COOR\_DEVIATION\_Y](#a1d1cfd8ffb84e947f82999c682b666a7aa36d822384b9164b73022b98acb5f5cc), [NODE\_COOR\_DEVIATION\_Z](#a1d1cfd8ffb84e947f82999c682b666a7a7744238323f31d8a510211e9be798b50), [NODE\_COOR\_DEVIATION\_NORM](#a1d1cfd8ffb84e947f82999c682b666a7a278fc6ef46d37bb64f0ac03d5e4bd7c9)  } defines the type of data item |

## Public Member Functions

| Type | Name |
| - | - |
| | [ImportItemInfo](#a6bd3dfce5c30ad48a71454c5d565eca9) (string par\_filename, [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) par\_file\_format, [Type](#a1d1cfd8ffb84e947f82999c682b666a7) par\_data\_type, number par\_column, string par\_input\_ident, string par\_imported\_ident="", [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) par\_mesh\_info=[MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md)(), bool par\_do\_import=true) constructor |
| | [ImportItemInfo](#af038d3b34eed45a889c22c3c07f33328) ([ImportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_item_info.md) other) copy constructor |
| | [ImportItemInfo](#ac4691b2fa3ec11f8f14d2a5d0fe12eee) () Default constructor. |
| [ImportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_item_info.md) | [operator=](#a667afcb1ce6cdb5a2b744e1e7c834610) ([ImportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_import_item_info.md) other) copy-assign operator |

## Static Public Member Functions

| Type | Name |
| - | - |
| static [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) | [objectType](#a966bd52f8d44644549c96c57c9e3fcb3) ([ImportItemInfo::Type](#a1d1cfd8ffb84e947f82999c682b666a7) type) |
| static string | [toScript](#ad7c8fbc61bcc9adca76fe9a4125a2b06) ([ImportItemInfo::enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) type) |
| static string | [toScript](#acf76864c593997acc55c88a8103127e4) ([ImportItemInfo::Type](#a1d1cfd8ffb84e947f82999c682b666a7) type) |
| static string | [toString](#a689f77aa64edd36bcf1715af4cac9e60) ([ImportItemInfo::enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) type) |
| static string | [toString](#a7216f66e5b3866d38ca7818959adc1be) ([ImportItemInfo::Type](#a1d1cfd8ffb84e947f82999c682b666a7) type) |

## Public Attributes

| Type | Name |
| - | - |
|  number | [column](#aa6dc6454c38145fec47c8c801681d834) if it is a data object, then this defines the column in the data matrix (0..n-1) |
| [Type](#a1d1cfd8ffb84e947f82999c682b666a7) | [data\_type](#a1d31798b46ad4cd04e6cebf0f0662035) the kind of data |
|  bool | [do\_import](#a7230ed1aa7408373d99e14941f88b4aa) defines if this data item is to be imported. may be changed by the user. if the data type is a "mesh" then it cannot be "disabled" |
| [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) | [file\_format](#a36f06489f13fd31d60f437a4624ac63a) the source file format |
|  string | [filename](#a3a1a90139c2c8ab1fca0ea8b1790b7b2) the name of the source file relative to the base path |
| | **immutable** |
|  string | [imported\_ident](#a2a5e00ff10ff080a673b6dc03408d88e) the ident of the data item as being imported. must be unique for the data type. is empty for geometry data. may be changed by the user. |
|  string | [input\_ident](#a19b5a45753d6344e3868e6ebff50fe00) the ident of the data item as found in the file. duplicates are allowed. is empty if geometry data |
| | **mutable** |

## Detailed Description

defines a data item which was found in an input file

It encapsulates information being found on this data item in the specific file. It knows:

* scalar data, node data, element data, intpt data. If any information on FEM meshes is found, it is marked as

  **See also**

  [MESH](#a1d1cfd8ffb84e947f82999c682b666a7a0b8403fccaa9b51239c179649c6fcb50) [Data](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data).
* Further it knows: the ident, the column index in the data matrix (for tensors), the ident to be used after import...
* For mesh data, it also remembers the mesh itself. This is required to check persistency if another mesh is to be added (Sometimes, the mesh is defined in two files - no error. Sometimes one wants to add two meshes from two files - error.).

## Member Enumeration Documentation

### enum\_format\_type

```cpp theme={null}
enum enum_format_type
```

defines the format of a file

> [!NOTE]
>
> In order to stay compatible with existing script files, do only append new items to this list! This list will directly influence the sort order in the item vector

| Enumerator | |
| - | - |
| NO\_FILE | not from file |
| LSDYNA | LS-DYNA Dynain format. |
| NASTRAN | NASTRAN input format. |
| NASTRAN\_DATA | NASTRAN data format. |
| IMAGE | pixel-image file (PNG) |
| PERMAS | PERMAS mesh file format. |
| STL | STL mesh file format. |
| SRB\_NODE\_DATA | SRB node data. |
| CSV\_ELEMENT\_DATA | CSV file (values interpreted as element data) |
| CSV\_NODE\_DATA | CSV file (values interpreted as node data) |
| CSV\_SIGNAL\_DATA | CSV file (values interpreted as signal data) |
| ABAQUS | Abaqus. |
| CSV\_GRID2D | CSV file (values interpreted as node coordinate data) |
| CSV\_GRID3D | CSV file (values interpreted as node coordinate data) |
| LSDYNA\_LSPREPOST | LSPrePost output files (e.g. to visualize data plots of arbitrary node and element data) |
| VTK | VTK format. |
| ANSYS\_RST | ANSYS binary structural or coupled-field analysis result. |
| ANSYS\_APDL | ANSYS APDL input file format. Includes \*.dat and \*.cdb (blocked and unblocke) |
| CSV\_FLUENT | FLUENT CSV (values interpreted as coordinates and data fields) |
| CSV\_SIGNAL\_MESH | CSV file (values interpreted as signal mesh + data) |

### Type

```cpp theme={null}
enum Type
```

defines the type of data item

> [!NOTE]
>
> In order to stay compatible with existing script files, do only append new items to this list! This list will directly influence the sort order in the item vector

| Enumerator | |
| - | - |
| MESH | contains mesh information |
| ELEMENT | element data |
| NODE | node data |
| INTPT | intpt data |
| SCALAR | scalar data |
| NODE\_COOR\_X | nodal x-coordinate (extracted from geometry), is always present and is not associated with a file |
| NODE\_COOR\_Y | nodal y-coordinate (extracted from geometry), is always present and is not associated with a file |
| NODE\_COOR\_Z | nodal z-coordinate (extracted from geometry), is always present and is not associated with a file |
| NODE\_COOR\_DEVIATION\_X | NODE coordinate deviation x. |
| NODE\_COOR\_DEVIATION\_Y | NODE coordinate deviation y. |
| NODE\_COOR\_DEVIATION\_Z | NODE coordinate deviation z. |
| NODE\_COOR\_DEVIATION\_NORM | NODE coordinate normal deviation. |

## Constructor & Destructor Documentation

### ImportItemInfo() \[1/3]

```cpp theme={null}
ImportItemInfo(
    string par_filename,
    enum_format_type par_file_format,
    Type par_data_type,
    number par_column,
    string par_input_ident,
    string par_imported_ident = "",
    MetaStructure par_mesh_info = MetaStructure (),
    bool par_do_import = true
)
```

constructor

**Parameters**

| Name | Description |
| - | - |
| par\_filename | sets filename |
| par\_file\_format | sets file\_format |
| par\_data\_type | sets data\_type |
| par\_column | sets column (0..n-1) |
| par\_input\_ident | sets input\_ident |
| par\_mesh\_info | sets mesh\_info |
| par\_imported\_ident | sets imported\_ident. If it is equal to "", then imported\_ident will be equal to input\_ident |
| par\_do\_import | sets do\_import / |

### ImportItemInfo() \[2/3]

```cpp theme={null}
ImportItemInfo(ImportItemInfo other)
```

copy constructor

**Parameters**

| Name | Description |
| - | - |
| other | the source object |

### ImportItemInfo() \[3/3]

```cpp theme={null}
ImportItemInfo()
```

Default constructor.

> [!NOTE]
>
> Do not use it! It is a dummy for usage with SWIG!

## Member Function Documentation

### objectType()

```cpp theme={null}
static dataobject_types objectType(ImportItemInfo::Type type)
```

`static`

**Parameters**

| Name | Description |
| - | - |
| type | the given data type |

**Returns**

returns the dataobject type that is assocoiated with this kind of data

### operator=()

```cpp theme={null}
ImportItemInfo operator=(ImportItemInfo other)
```

copy-assign operator

**Parameters**

| Name | Description |
| - | - |
| other | the source object to be copy-assigned |

### toScript() \[1/2]

```cpp theme={null}
static string toScript(ImportItemInfo::enum_format_type type)
```

`static`

**Parameters**

| Name | Description |
| - | - |
| type | the given file format |

**Returns**

a string representation of the enum used in Lua code

### toScript() \[2/2]

```cpp theme={null}
static string toScript(ImportItemInfo::Type type)
```

`static`

**Parameters**

| Name | Description |
| - | - |
| type | the given data type |

**Returns**

a string representation of the enum used in Lua code

### toString() \[1/2]

```cpp theme={null}
static string toString(ImportItemInfo::enum_format_type type)
```

`static`

**Parameters**

| Name | Description |
| - | - |
| type | the given file format |

**Returns**

a string representation of the enum

### toString() \[2/2]

```cpp theme={null}
static string toString(ImportItemInfo::Type type)
```

`static`

**Parameters**

| Name | Description |
| - | - |
| type | the given data type |

**Returns**

a string representation of the enum
