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

# ExportItemInfo Struct Reference

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

defines a single data item which was may be exported to a single existing output file. It encapsulates information being found on this data item in the specific file. It can further be configured to be exported.

## Public Types

| Type | Name |
| - | - |
| enum | [DataSource](#ac409d3942abd5b826fb1508efc119564) \{ [EXISTING](#ac409d3942abd5b826fb1508efc119564a4a66a278cca4fd8b5c94229dbd542426) = 0, [RANDOM\_FIELD](#ac409d3942abd5b826fb1508efc119564a221d0f453e7238e6dced217b56afa0d3), [FMOP](#ac409d3942abd5b826fb1508efc119564a191580872f4e9cdf89cba1b5248f4e65) } defines the data source of the exported object |
| enum | [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) \{  [LSDYNA](#acf1b366f46b9570951935096bc25e2e6ae3ed41cd8fb28b6c00b37ec52b7cb6b7) = 0, [NASTRAN](#acf1b366f46b9570951935096bc25e2e6ae47615bbaba7255ab17b5475d3ba6f12), [QIMAGE](#acf1b366f46b9570951935096bc25e2e6a875089223f39176fac4d90cd61ca8347), [PERMAS](#acf1b366f46b9570951935096bc25e2e6adaa7322f9e97c3dd8c2ccc7fe2bde7e5),  [CSV\_EXPORT](#acf1b366f46b9570951935096bc25e2e6a8869e9f8b139bfbe053c972a164cb658), [CSV\_ELEMENT\_DATA\_EXPORT](#acf1b366f46b9570951935096bc25e2e6a391130433d23714c1c7b571131c21d4a), [CSV\_NODE\_DATA\_EXPORT](#acf1b366f46b9570951935096bc25e2e6aacfa92e392f6803de8dcaf11ca2a4a08), [CSV\_SINGLE\_SIGNAL\_EXPORT](#acf1b366f46b9570951935096bc25e2e6aa620653c317b2e4a3ddff6b475d72f09),  [ABAQUS](#acf1b366f46b9570951935096bc25e2e6ac8278d6ab53d336f785978d964b73abd), [ANSYS\_MECHANICAL\_DAT](#acf1b366f46b9570951935096bc25e2e6ade3177a1c4bcd64ecd84cd388c6726a5), [STL](#acf1b366f46b9570951935096bc25e2e6a3a8b3333d20fa8bfc7a658976116142c), [EXTDATA\_COOR](#acf1b366f46b9570951935096bc25e2e6a60f392f66eb67de3c1fd3c8dd84b0ce8),  [EXTDATA\_NODE\_DATA](#acf1b366f46b9570951935096bc25e2e6aa06984c743359a299be538ce09638d93), [EXTDATA\_ELEMENT\_DATA](#acf1b366f46b9570951935096bc25e2e6a9faf0b7fea63cd65cd7bc689db07968e)  } defines the format of a file |
|  typedef std::set\< [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) > | [ItemSet](#acfc00b6cf20a7db7a354fd3cf9d7349c) a sorted container of items |
|  typedef std::vector\< [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) > | [ItemVector](#add1912f983d3f46be00897011c517634) a vector of items |
| enum | [Type](#a1d1cfd8ffb84e947f82999c682b666a7) \{  [NODE\_COOR\_X](#a1d1cfd8ffb84e947f82999c682b666a7a42ea467d50aa66afc0e6e315f8d112f1) = 0, [NODE\_COOR\_Y](#a1d1cfd8ffb84e947f82999c682b666a7a00b25c8e0cab6b1599a49ca6f47d713e), [NODE\_COOR\_Z](#a1d1cfd8ffb84e947f82999c682b666a7ac9c62cc9d9f69f7b3bd081fa8cd93866), [NODE\_COOR\_DEVIATION\_X](#a1d1cfd8ffb84e947f82999c682b666a7ab6680dc1c94d4fa46f7b193339253870),  [NODE\_COOR\_DEVIATION\_Y](#a1d1cfd8ffb84e947f82999c682b666a7aa36d822384b9164b73022b98acb5f5cc), [NODE\_COOR\_DEVIATION\_Z](#a1d1cfd8ffb84e947f82999c682b666a7a7744238323f31d8a510211e9be798b50), [ELEMENT\_SHELL\_THICKNESS](#a1d1cfd8ffb84e947f82999c682b666a7a6f5bd66431312c695a358b4e414a4981), [ELEMENT\_INITIAL\_STRAIN\_SHELL\_XX](#a1d1cfd8ffb84e947f82999c682b666a7aedff10ee2b26add74958c2fb97677051),  [ELEMENT\_INITIAL\_STRAIN\_SHELL\_YY](#a1d1cfd8ffb84e947f82999c682b666a7ab13f0692beed6e645764a6e814477567), [ELEMENT\_INITIAL\_STRAIN\_SHELL\_ZZ](#a1d1cfd8ffb84e947f82999c682b666a7afaaee668b5c0e0f6fa2c18abf5f87929), [ELEMENT\_INITIAL\_STRAIN\_SHELL\_XY](#a1d1cfd8ffb84e947f82999c682b666a7a3025fc54eb9723a2bc1dedf64dcbea98), [ELEMENT\_INITIAL\_STRAIN\_SHELL\_XZ](#a1d1cfd8ffb84e947f82999c682b666a7a9dbca6f96c063f4c94993910371c69d2),  [ELEMENT\_INITIAL\_STRAIN\_SHELL\_YZ](#a1d1cfd8ffb84e947f82999c682b666a7a496d0940349839d418e3f9aa13fa41e9), [ELEMENT\_INITIAL\_STRESS\_SHELL\_XX](#a1d1cfd8ffb84e947f82999c682b666a7a7befd68ffb83979c25e03286aa6db055), [ELEMENT\_INITIAL\_STRESS\_SHELL\_YY](#a1d1cfd8ffb84e947f82999c682b666a7a3f72bc3c7f8da85e3334cdf985bd1a95), [ELEMENT\_INITIAL\_STRESS\_SHELL\_ZZ](#a1d1cfd8ffb84e947f82999c682b666a7ac1f107e6dce1b6d8e5c9893d27ff667b),  [ELEMENT\_INITIAL\_STRESS\_SHELL\_XY](#a1d1cfd8ffb84e947f82999c682b666a7a515f57918d3a4eb75ca17bcc0f0e3786), [ELEMENT\_INITIAL\_STRESS\_SHELL\_XZ](#a1d1cfd8ffb84e947f82999c682b666a7aed268522c180922c1c40ab7c7afeb46a), [ELEMENT\_INITIAL\_STRESS\_SHELL\_YZ](#a1d1cfd8ffb84e947f82999c682b666a7a73ec6e4fe7d53caf1a7f1b0933da8f37), [ELEMENT\_INITIAL\_STRESS\_SHELL\_PEEQ](#a1d1cfd8ffb84e947f82999c682b666a7af1e281f2ec47714dce2072053d955a00),  [PIXEL\_COLOR\_RED](#a1d1cfd8ffb84e947f82999c682b666a7aa77dcb86500653000dddc01fe5b15763), [PIXEL\_COLOR\_GREEN](#a1d1cfd8ffb84e947f82999c682b666a7a3f94689804dab641c5746849862d118b), [PIXEL\_COLOR\_BLUE](#a1d1cfd8ffb84e947f82999c682b666a7ae6f7273f63e8987298dcd77a164c50be), [PIXEL\_COLOR\_ALPHA](#a1d1cfd8ffb84e947f82999c682b666a7a9cc918cf0dbb17fe6350ceddffb4626b),  [NODE\_COOR\_DEVIATION\_NORM](#a1d1cfd8ffb84e947f82999c682b666a7a278fc6ef46d37bb64f0ac03d5e4bd7c9), [ALL\_SCALAR\_QUANTITIES](#a1d1cfd8ffb84e947f82999c682b666a7ab4be4dcc08274bf01d9467346ed251e9), [ELEMENT\_DATA](#a1d1cfd8ffb84e947f82999c682b666a7ae9445a58a2c3cd515f2058cbd3117174), [NODE\_DATA](#a1d1cfd8ffb84e947f82999c682b666a7a2bccb499db6de63e558b75b39da3d482)  } defines the type of data item (it may be that not all of them are supported by each exporter) |

## Public Member Functions

| Type | Name |
| - | - |
| | [ExportItemInfo](#a1b6625db511db1a9b19767dd80b7bbc7) (string par\_filename, [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) par\_file\_format, bool par\_new\_file, [Type](#a1d1cfd8ffb84e947f82999c682b666a7) par\_data\_type, [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) par\_object\_type, string par\_quantity\_ident="", string par\_design\_ident="", [DataSource](#ac409d3942abd5b826fb1508efc119564) par\_data\_source=[EXISTING](#ac409d3942abd5b826fb1508efc119564a4a66a278cca4fd8b5c94229dbd542426)) constructor |
| | [ExportItemInfo](#a4977ec6d8aec39207fbd71e2c1e0f122) ([ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) other) copy constructor |
| | [ExportItemInfo](#a66d3b4221709f289b2937125d7ae0bdb) () default constructor |
| [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) | [operator=](#a23b912c41fcb9af2172bb65e0fe123f8) ([ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) other) copy-assign operator |

## Static Public Member Functions

| Type | Name |
| - | - |
| static string | [toScript](#a2cdc61629377ae7663f0e5d34c3fed77) ([Type](#a1d1cfd8ffb84e947f82999c682b666a7) type) |
| static [ItemSet](#acfc00b6cf20a7db7a354fd3cf9d7349c) | [toSet](#adcb30800708a57a038a4c94538a7f561) ([ItemVector](#add1912f983d3f46be00897011c517634) items) |
| static string | [toString](#a90141bc8acb38eb2582bb11f7b6cb576) ([Type](#a1d1cfd8ffb84e947f82999c682b666a7) type) |
| static string | [toString](#a10db70b904d193696f26e1073c63be51) ([enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) type) |
| static string | [toString](#af622ab2b7d42d7c0497970cc7b4c5d0c) ([DataSource](#ac409d3942abd5b826fb1508efc119564) type) |
| static [ItemVector](#add1912f983d3f46be00897011c517634) | [toVector](#a564a559653ff57a02b106c6e5909f641) ([ItemSet](#acfc00b6cf20a7db7a354fd3cf9d7349c) items) |

## Public Attributes

| Type | Name |
| - | - |
| [DataSource](#ac409d3942abd5b826fb1508efc119564) | [data\_source](#a1a662eca972528848c1148c7bb7d7bdc) defines how the data is to be created (from database, from FMOP, from random field) |
| [Type](#a1d1cfd8ffb84e947f82999c682b666a7) | [data\_type](#a1d31798b46ad4cd04e6cebf0f0662035) the kind of data |
|  string | [design\_ident](#a8b1052bf220b05b03f0b15cbb94f23cf) the design ident of the data item to be exported; if empty, then the current design number is token. |
| [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** |
| | **mutable** |
|  bool | [new\_file](#aa4ae331285f55ed612c0b900887d360c) do we modify an existing file or do we export to a new file ? |
| [dataobject\_types](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#ga1bebf1e22deb3cd41d7d99ddcdb15379) | [object\_type](#a4cf55eb0b80dbff47721b53baef1a46e) the type of input object (NODE/ELEMENT...) |
|  string | [quantity\_ident](#a0bbf72a5fdb5d02b186d0cf2392939f2) the quantity ident of the data item to be exported; if empty, then this item will not be exported. (except for scalar data) |

## Detailed Description

defines a single data item which was may be exported to a single existing output file. It encapsulates information being found on this data item in the specific file. It can further be configured to be exported.

## Member Enumeration Documentation

### DataSource

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

defines the data source of the exported object

| Enumerator | |
| - | - |
| EXISTING | the data object is existing in the data base |
| RANDOM\_FIELD | the data must be created using random field and amplitudes |
| FMOP | the data must be created using FMOP and input parameters |

### 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 | |
| - | - |
| LSDYNA | LS-DYNA Dynain format. |
| NASTRAN | Nastran. |
| QIMAGE | All image formats supported by the QImage class (bmp, jpg, jpeg, png ...) |
| PERMAS | Permas. |
| CSV\_EXPORT | CSV file (write from scratch; all scalars will be exported) |
| CSV\_ELEMENT\_DATA\_EXPORT | CSV file (write from scratch; all scalars will be exported) |
| CSV\_NODE\_DATA\_EXPORT | CSV file (write from scratch; all scalars will be exported) |
| CSV\_SINGLE\_SIGNAL\_EXPORT | CSV file (write from scratch; all scalars will be exported) |
| ABAQUS | Abaqus. |
| ANSYS\_MECHANICAL\_DAT | ANSYS Meachnial input file format. |
| STL | STL binary format. |
| EXTDATA\_COOR | CSV for ANSYS External Data: coordinates and displacements. |
| EXTDATA\_NODE\_DATA | CSV for ANSYS External Data: node data. |
| EXTDATA\_ELEMENT\_DATA | CSV for ANSYS External Data: element data. |

### Type

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

defines the type of data item (it may be that not all of them are supported by each exporter)

> [!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 | |
| - | - |
| NODE\_COOR\_X | NODE coordinate x. |
| NODE\_COOR\_Y | NODE coordinate y. |
| NODE\_COOR\_Z | NODE coordinate z. |
| NODE\_COOR\_DEVIATION\_X | NODE coordinate deviation x. |
| NODE\_COOR\_DEVIATION\_Y | NODE coordinate deviation y. |
| NODE\_COOR\_DEVIATION\_Z | NODE coordinate deviation z. |
| ELEMENT\_SHELL\_THICKNESS | ELEMENT shell thickness. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_XX | ELEMENT shell, initial strain tensor for shell elements, xx. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_YY | ELEMENT shell, initial strain tensor for shell elements, yy. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_ZZ | ELEMENT shell, initial strain tensor for shell elements, zz. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_XY | ELEMENT shell, initial strain tensor for shell elements, xy. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_XZ | ELEMENT shell, initial strain tensor for shell elements, xz. |
| ELEMENT\_INITIAL\_STRAIN\_SHELL\_YZ | ELEMENT shell, initial strain tensor for shell elements, yz. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_XX | ELEMENT shell, initial stress tensor for shell elements, xx. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_YY | ELEMENT shell, initial stress tensor for shell elements, yy. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_ZZ | ELEMENT shell, initial stress tensor for shell elements, zz. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_XY | ELEMENT shell, initial stress tensor for shell elements, xy. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_XZ | ELEMENT shell, initial stress tensor for shell elements, xz. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_YZ | ELEMENT shell, initial stress tensor for shell elements, yz. |
| ELEMENT\_INITIAL\_STRESS\_SHELL\_PEEQ | ELEMENT shell, initial plastic strain (property of initial stress tensor) |
| PIXEL\_COLOR\_RED | PIXEL, (A)RGB color channel red. |
| PIXEL\_COLOR\_GREEN | PIXEL, (A)RGB color channel green. |
| PIXEL\_COLOR\_BLUE | PIXEL, (A)RGB color channel blue. |
| PIXEL\_COLOR\_ALPHA | PIXEL, ARGB channel alpha part. |
| NODE\_COOR\_DEVIATION\_NORM | NODE coordinate normal deviation. |
| ALL\_SCALAR\_QUANTITIES | SCALAR data - all data will be exported. |
| ELEMENT\_DATA | generic element data object |
| NODE\_DATA | generic node data object |

## Constructor & Destructor Documentation

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

```cpp theme={null}
ExportItemInfo(
    string par_filename,
    enum_format_type par_file_format,
    bool par_new_file,
    Type par_data_type,
    dataobject_types par_object_type,
    string par_quantity_ident = "",
    string par_design_ident = "",
    DataSource par_data_source = EXISTING
)
```

constructor

**Parameters**

| Name | Description |
| - | - |
| par\_filename | sets filename |
| par\_file\_format | sets file\_format |
| par\_data\_type | sets data\_type |
| par\_object\_type | sets object\_type |
| par\_quantity\_ident | sets quantity\_ident |
| par\_design\_ident | sets design\_ident |

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

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

copy constructor

**Parameters**

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

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

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

default constructor

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

## Member Function Documentation

### operator=()

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

copy-assign operator

**Parameters**

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

### toScript()

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

`static`

**Returns**

a string representation of a given item type in a Lua

**Parameters**

| Name | Description |
| - | - |
| type | the given item type |

### toSet()

```cpp theme={null}
static ItemSet toSet(ItemVector items)
```

`static`

**Returns**

a set containing the contents of the given vector

**Parameters**

| Name | Description |
| - | - |
| items | the vector of items to be converted into a set |

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

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

`static`

**Returns**

a string representation of a given item type

**Parameters**

| Name | Description |
| - | - |
| type | the given item type |

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

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

`static`

**Returns**

a string representation of a given file format

**Parameters**

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

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

```cpp theme={null}
static string toString(DataSource type)
```

`static`

**Returns**

a string representation of a given source type

**Parameters**

| Name | Description |
| - | - |
| type | the given source type |

### toVector()

```cpp theme={null}
static ItemVector toVector(ItemSet items)
```

`static`

**Returns**

a vector containing the contents of the given set

**Parameters**

| Name | Description |
| - | - |
| items | the set of items to be converted into a vector |
