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

# ExportReferenceDesign Class Reference

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

defines information on imported data and files given a reference design This class contains settings for an example design directory (the base\_path). These settings include file formats, data items to be imported etc.

## Public Types

| Type | Name |
| - | - |
|  typedef std::vector\< [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) > | [ExportItemInfoVector](#aad0222392d9427fe94936b201df420f5) a set of data items |

## Public Member Functions

| Type | Name |
| - | - |
| | [addFile\_Abaqus](#afd5c422a5396fc7f6fc9d67639056f22) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in Abaqus format. |
| | [addFile\_ANSYS\_MechanicalDat](#a11351628e3f4ed33a44e62f7647d4cdf) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in ANSYS format. |
| | [addFile\_CSV](#a25975bef494f5516da7d134fd896fcdc) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addFile\_ElementDataCSV](#a69cfbc9c84840bb99ee4c2406e8982ca) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addFile\_ExternalDataCSV\_Disp](#ac43d8e7376c34c5ba30b896c528faf2b) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addFile\_ExternalDataCSV\_ElementData](#aa943a7bdfa46cb4dc1dd8556c1c4a91d) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addFile\_ExternalDataCSV\_NodeData](#a6efea91fe71c8a65f3e2e8c1f70d2a75) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addFile\_Image](#a1275367105e2c8901916e138e7cfca39) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to an image file. |
| | [addFile\_LSDynaK](#a76135b512886e51aab814744632e64a8) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in LS-DYNA K format. |
| | [addFile\_Nastran](#a8ddc7416b07c7f2d1499680759384173) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in Nastran format. |
| | [addFile\_NodeDataCSV](#a897d79d7afae207e2a37efe46cf6e099) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addFile\_PERMAS](#ab673c9293b5fc4fc3c8c2cbd5e663adb) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in PERMAS format. |
| | [addFile\_SingleSignalCSV](#ae0dfe689645de46b022fae82426a4367) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addFile\_STL](#ad5c4c8b3993209b6356f59233da1da48) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in binary STL format. |
| | [addNewFile\_ANSYS\_MechanicalDat](#a04a1fdd72ada5fdc452514a9c4bf50c4) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in ANSYS format. |
| | [addNewFile\_CSV](#a83918abf42f3da6e1f661d0c934db8e6) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addNewFile\_ElementDataCSV](#a3e64cb5601dd92fdcb5f6c7b4aa47821) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addNewFile\_ExternalDataCSV\_Disp](#a2ee22474f946ef03aaf09c6cd8bc2027) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addNewFile\_ExternalDataCSV\_ElementData](#a76b991ea6ce71214e9cb6405c9abb549) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addNewFile\_ExternalDataCSV\_NodeData](#ae7616f698ea9bc6e01cc3b7aa80a13f0) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in External data CSV format. |
| | [addNewFile\_Image](#afefd9c2283ba25c163db5a3e425cdada) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to an image file. |
| | [addNewFile\_NodeDataCSV](#a5a5650a453ef5dc6234b03637f34fb81) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addNewFile\_SingleSignalCSV](#a465219c4c28557c300af22483ee56af2) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in CSV format. |
| | [addNewFile\_STL](#a62e8f818707d85c2631acbdc8058180e) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), string filename) Exports information to a file in binary STL format. |
| | [check](#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks if the settings are valid and produces an error. |
| | [checkFiles](#a42cfe17a0305737404dfbc962360d076) (string abs\_design\_dir\_path, bool quiet=false) checks if all required files to be exported to exist in the given design directory |
| | [checkObjects](#ade36e04546c5bec4f28ca492d21875f9) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), int sample, bool quiet=false) checks if all required objects for the given design number are existing in the database |
| | [ExportReferenceDesign](#a7aee363b2bbb561ef1d20b2aaaaf61d9) (string the\_base\_path) constructor |
| string | [generateScriptOfSettingsDefinition](#a80b1eab921bf9c19f1b13b17b5af357b) (string variable\_ident, string other\_base\_path="") generates a script string (Lua) that is used to build up the current settings object. |
| std::vector\< string > | [getFiles](#a41ace7f379338ca7d3779b204c3776b7) () assembles the complete list of files being known to this class This is a compact view onto the contained data, since multiple items may be imported from a single file. |
| std::vector\< string > | [getFilesToExport](#a50f67f9f53f6797a9a1c9439d849fbc5) () assembles a list of files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. |
| [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) | [getItem](#a4881b245e33d0ed0edc04e74b94df300) (string filename, [ExportItemInfo::Type](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md#a1d1cfd8ffb84e947f82999c682b666a7) data\_type) gets the respective item if existing |
| number | [getItemIndex](#a775316552fabc83e39b74beddef81334) (string filename, [ExportItemInfo::Type](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md#a1d1cfd8ffb84e947f82999c682b666a7) data\_type) gets the index of the respective item if existing |
| std::vector\< number > | [getItemsForFile](#adb9208885a8e74195f267a2df949dca9) (string filename) assembles a list of items which are to be exported to a specific file |
| std::vector\< string > | [getModifiedFiles](#a2522c988ad2eaf346ae7af8cd47ff11b) () assembles the complete list of files being known to this class and that are NOT to be created This is a compact view onto the contained data, since multiple items may be imported from a single file. |
| std::vector\< string > | [getModifiedFilesToExport](#af01172accc310310cc51e31caf936730) () assembles a list of modified files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. The filenames in this list contain only those files that are not "newly created" but modified. |
| std::vector\< string > | [getNewFilesToExport](#a1488cf7e390e0191e91de8e87206b87f) () assembles a list of new files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. The filenames in this list contain only those files that are not "newly created" but modified. |
| | [modifyDesign](#a19fe83020c2cdfe68f4215af8cdf48cb) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b), int sample\_number, string design\_path="", bool do\_not\_check\_settings=false) modifies a design on disk |
| | [removeFileFromList](#adc5b63f5d31ab0a4abf354b4934514f7) (string filename) removes all import data from item list which is associated with the sepcified file |
| | [setBasePath](#aa2ba2b1794ac9bad08da653ea8c99eda) (string path) sets a new base path. This includes changing the relative path definition of the already parsed files. |
| | [setExportDesign](#ad838ca5bc438676ab92db57b56ae56c0) (number item, string design\_ident="") sets if the quantity ident of an item |
| | [setExportQuantity](#a4a053c513b14789817eca6aa636a5813) (number item, string quantity\_ident="") sets if the quantity ident of an item |
| | [setExportSource](#ad1067f1ab8cf433485b3a049f13d1559) (number item, [ExportItemInfo::DataSource](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md#ac409d3942abd5b826fb1508efc119564) source) sets if the source of an item |

## Public Attributes

| Type | Name |
| - | - |
|  ::ansys::ANSYS\_Mechanical\_DSDAT\_Settings | [ANSYS\_DSDAT\_settings](#abbf761e829467ff8c85745c8d6af3659) contains settings for the ANSYS DS.DAT modifier |
|  string | [base\_path](#a1be53c8e392d898f99ddc804ff403c84) defines the base path is stored as absolute path do never change it directly! Please use [setBasePath()](#aa2ba2b1794ac9bad08da653ea8c99eda) instead! |
|  bool | [fmop\_use\_sampling\_bounds](#ac8d8dae79bb9c8bfd736f429be701289) if true, the point to be approximated by FMOP, must be within the original sampling bounds. |
| [ExportItemInfoVector](#aad0222392d9427fe94936b201df420f5) | [items](#a630002260461fbcd78cb76ea209ac36a) stores all parsed data item information |
|  bool | [mesh\_smoothening](#ac64fc8a28d48239a5b846d8ebf021484) defines if the deviation is applied with smoothening if true: use iterative smoothening, if false: use no smoothening. Default: false. mesh smoothening works with distance fields and without. |
|  bool | [throw\_error\_on\_unstable\_mesh](#ac92d2c3e8ade2a17ee2edb8eb6747008) defines if an error is thrown in the case then mesh smoothening was not successful. |
|  bool | [use\_distancefield](#a3cd324c8d4c3009af0376b08a2a348e3) defines the method for applying geometric variations if false: Use a normal vector on the boundary. if true: Use an iterative distance field strategy |

## Detailed Description

defines information on imported data and files given a reference design This class contains settings for an example design directory (the base\_path). These settings include file formats, data items to be imported etc.

> [!NOTE]
>
> The currently stored data must be kept "functional" at all times. If you add a new file using the appropriate function, this will take care for you. If you change the data items from outside (GUI etc.) you must use the function [check()](#a47c34ec1e578c2ce27cf1c5fcd0d1704) in order to approve the changes. If the changes are erroneous, the next addFIle-method call may lead to undefined behaviour.

## Constructor & Destructor Documentation

### ExportReferenceDesign()

```cpp theme={null}
ExportReferenceDesign(string the_base_path)
```

constructor

**Parameters**

| Name | Description |
| - | - |
| the\_base\_path | defines the base path |

## Member Function Documentation

### addFile\_Abaqus()

```cpp theme={null}
addFile_Abaqus(
    Structure database,
    string filename
)
```

Exports information to a file in Abaqus format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_ANSYS\_MechanicalDat()

```cpp theme={null}
addFile_ANSYS_MechanicalDat(
    Structure database,
    string filename
)
```

Exports information to a file in ANSYS format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000004)****

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_CSV()

```cpp theme={null}
addFile_CSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000007)****

A CSV file will always be rewritten. It further contains all available scalar quantities.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_ElementDataCSV()

```cpp theme={null}
addFile_ElementDataCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000008)****

A CSV file will always be rewritten. It further contains the selected element quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_ExternalDataCSV\_Disp()

```cpp theme={null}
addFile_ExternalDataCSV_Disp(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000013)****

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_ExternalDataCSV\_ElementData()

```cpp theme={null}
addFile_ExternalDataCSV_ElementData(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000012)****

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_ExternalDataCSV\_NodeData()

```cpp theme={null}
addFile_ExternalDataCSV_NodeData(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000011)****

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_Image()

```cpp theme={null}
addFile_Image(
    Structure database,
    string filename
)
```

Exports information to an image file.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000006)****

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_LSDynaK()

```cpp theme={null}
addFile_LSDynaK(
    Structure database,
    string filename
)
```

Exports information to a file in LS-DYNA K format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be modified. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_Nastran()

```cpp theme={null}
addFile_Nastran(
    Structure database,
    string filename
)
```

Exports information to a file in Nastran format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_NodeDataCSV()

```cpp theme={null}
addFile_NodeDataCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000009)****

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_PERMAS()

```cpp theme={null}
addFile_PERMAS(
    Structure database,
    string filename
)
```

Exports information to a file in PERMAS format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_SingleSignalCSV()

```cpp theme={null}
addFile_SingleSignalCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000010)****

A CSV file will always be rewritten. It further contains the selected node quantity. The first column will not denote the node ID, but the respective x-coordinate

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addFile\_STL()

```cpp theme={null}
addFile_STL(
    Structure database,
    string filename
)
```

Exports information to a file in binary STL format.

> [!WARNING]
>
> ****[Deprecated:](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/deprecated.md#_deprecated000005)****

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_ANSYS\_MechanicalDat()

```cpp theme={null}
addNewFile_ANSYS_MechanicalDat(
    Structure database,
    string filename
)
```

Exports information to a file in ANSYS format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_CSV()

```cpp theme={null}
addNewFile_CSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

A CSV file will always be rewritten. It further contains all available scalar quantities.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_ElementDataCSV()

```cpp theme={null}
addNewFile_ElementDataCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

A CSV file will always be rewritten. It further contains the selected element quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_ExternalDataCSV\_Disp()

```cpp theme={null}
addNewFile_ExternalDataCSV_Disp(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_ExternalDataCSV\_ElementData()

```cpp theme={null}
addNewFile_ExternalDataCSV_ElementData(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_ExternalDataCSV\_NodeData()

```cpp theme={null}
addNewFile_ExternalDataCSV_NodeData(
    Structure database,
    string filename
)
```

Exports information to a file in External data CSV format.

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_Image()

```cpp theme={null}
addNewFile_Image(
    Structure database,
    string filename
)
```

Exports information to an image file.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_NodeDataCSV()

```cpp theme={null}
addNewFile_NodeDataCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

A CSV file will always be rewritten. It further contains the selected node quantity.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_SingleSignalCSV()

```cpp theme={null}
addNewFile_SingleSignalCSV(
    Structure database,
    string filename
)
```

Exports information to a file in CSV format.

A CSV file will always be rewritten. It further contains the selected node quantity. The first column will not denote the node ID, but the respective x-coordinate

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be WRITTEN. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### addNewFile\_STL()

```cpp theme={null}
addNewFile_STL(
    Structure database,
    string filename
)
```

Exports information to a file in binary STL format.

Multiple data items per file are supported.

**Parameters**

| Name | Description |
| - | - |
| database | The current database where the items are to be extracted from |
| filename | The file to be MODIFIED. The file path will be treated as relative to the base\_path or if this is not existing, take it as absolute path respective relative to the working directory |

### check()

```cpp theme={null}
check(Structure database)
```

checks if the settings are valid and produces an error.

**Parameters**

| Name | Description |
| - | - |
| database | the data base |

**Exceptions**

| Name | Description |
| - | - |
| exception | if an error was detected |

### checkFiles()

```cpp theme={null}
checkFiles(
    string abs_design_dir_path,
    bool quiet = false
)
```

checks if all required files to be exported to exist in the given design directory

**Parameters**

| Name | Description |
| - | - |
| abs\_design\_dir\_path | the path of the design directory to be checked |
| quiet | if true, then no log message is printed |

**Exceptions**

| Name | Description |
| - | - |
| exception | if at least one required object is missing for exporting the design for the given sample number. |

### checkObjects()

```cpp theme={null}
checkObjects(
    Structure database,
    int sample,
    bool quiet = false
)
```

checks if all required objects for the given design number are existing in the database

**Parameters**

| Name | Description |
| - | - |
| database | the data base |
| sample | the sample number used to generate the sample design idents |
| quiet | if true, then no log message is printed |

**Exceptions**

| Name | Description |
| - | - |
| exception | if at least one required object is missing for exporting the design for the given sample number. |

### generateScriptOfSettingsDefinition()

```cpp theme={null}
string generateScriptOfSettingsDefinition(
    string variable_ident,
    string other_base_path = ""
)
```

generates a script string (Lua) that is used to build up the current settings object.

**Returns**

the script code, ends with newline.

**Parameters**

| Name | Description |
| - | - |
| variable\_ident | the ident of the Lua variable that contains the settings object |
| other\_base\_path | if this string is empty, then this string is used as the base path of the exported definition. This must be a Lua variable, so either a Lua variable name or a string containing the path |

### getFiles()

```cpp theme={null}
std::vector<string> getFiles()
```

assembles the complete list of files being known to this class This is a compact view onto the contained data, since multiple items may be imported from a single file.

**Returns**

a list of filenames. The file names are relative to the base path.

### getFilesToExport()

```cpp theme={null}
std::vector<string> getFilesToExport()
```

assembles a list of files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive.

**Returns**

a list of filenames. The file names are relative to the base path.

### getItem()

```cpp theme={null}
ExportItemInfo getItem(
    string filename,
    ExportItemInfo::Type data_type
)
```

gets the respective item if existing

**Parameters**

| Name | Description |
| - | - |
| filename | the filename relative to the base directory |
| data\_type | the data type, e.g. "coordinate along x direction" |

**Returns**

a writable reference to the item. Throws an exception if not existing

### getItemIndex()

```cpp theme={null}
number getItemIndex(
    string filename,
    ExportItemInfo::Type data_type
)
```

gets the index of the respective item if existing

**Parameters**

| Name | Description |
| - | - |
| filename | the filename relative to the base directory |
| data\_type | the data type, e.g. "coordinate along x direction" |

**Returns**

index to the item in the vector items. Throws an exception if not existing

### getItemsForFile()

```cpp theme={null}
std::vector<number> getItemsForFile(string filename)
```

assembles a list of items which are to be exported to a specific file

**Parameters**

| Name | Description |
| - | - |
| filename | the file name for which all items to be imported are searched. |

**Returns**

a list of integer indices in ascending order. Each index refers to an Item in the vector items. If no data is to be imported from the requested file, an empty list is returned.

### getModifiedFiles()

```cpp theme={null}
std::vector<string> getModifiedFiles()
```

assembles the complete list of files being known to this class and that are NOT to be created This is a compact view onto the contained data, since multiple items may be imported from a single file.

**Returns**

a list of filenames. The file names are relative to the base path.

### getModifiedFilesToExport()

```cpp theme={null}
std::vector<string> getModifiedFilesToExport()
```

assembles a list of modified files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. The filenames in this list contain only those files that are not "newly created" but modified.

**Returns**

a list of filenames. The file names are relative to the base path.

### getNewFilesToExport()

```cpp theme={null}
std::vector<string> getNewFilesToExport()
```

assembles a list of new files which are to be exported (only the files for which one selected a quantity are exported here) This is a compact view onto the contained data, since multiple items may be imported from a single file and some files may be inactive. The filenames in this list contain only those files that are not "newly created" but modified.

**Returns**

a list of filenames. The file names are relative to the base path.

### modifyDesign()

```cpp theme={null}
modifyDesign(
    Structure database,
    int sample_number,
    string design_path = "",
    bool do_not_check_settings = false
)
```

modifies a design on disk

**Parameters**

| Name | Description |
| - | - |
| database | the data base where all data is to be added |
| sample\_number | the design number which is used to define the design ident string for all data in the database |
| design\_path | if this is empty, one takes the base\_path. Else one takes this string instead of this->base\_path |
| do\_not\_check\_settings | if this is true, then the contents of design\_info will not be checked on validity before starting the import. This is helpful when importing multiple designs at once. If this settings object is configured to check on duplicates in the global database, then a duplicate would be found after import of the first design always leading to an error! In this case, set this parameter to true. If an error appears during import, an exception is thrown. Nevertheless, the method tries to import as much data as possible before quit. |

### removeFileFromList()

```cpp theme={null}
removeFileFromList(string filename)
```

removes all import data from item list which is associated with the sepcified file

**Parameters**

| Name | Description |
| - | - |
| filename | the file name of the file which is to be removed from import item list (exact match!). |

**Exceptions**

| Name | Description |
| - | - |
| exceptions | if the file does not exist in the list. |

### setBasePath()

```cpp theme={null}
setBasePath(string path)
```

sets a new base path. This includes changing the relative path definition of the already parsed files.

**Parameters**

| Name | Description |
| - | - |
| path | the base path |

### setExportDesign()

```cpp theme={null}
setExportDesign(
    number item,
    string design_ident = ""
)
```

sets if the quantity ident of an item

**Parameters**

| Name | Description |
| - | - |
| item | the index in items vector |
| design\_ident | the design ident to be exported (if empty: use the current design number) / |

### setExportQuantity()

```cpp theme={null}
setExportQuantity(
    number item,
    string quantity_ident = ""
)
```

sets if the quantity ident of an item

**Parameters**

| Name | Description |
| - | - |
| item | the index in items vector |
| quantity\_ident | the quantity ident to be exported (if empty: do not export this item) |

### setExportSource()

```cpp theme={null}
setExportSource(
    number item,
    ExportItemInfo::DataSource source
)
```

sets if the source of an item

**Parameters**

| Name | Description |
| - | - |
| item | the index in items vector |
| source | defines where the data object is taken from / |
