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

# Export

Export data to various file formats.

## Classes

| Type | Name |
| - | - |
| struct | [ANSYS\_Mechanical\_DSDAT\_Settings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_a_n_s_y_s___mechanical___d_s_d_a_t___settings.md) contains settings for ANSYS DS.DAT exporter |
| struct | [DynainFileParser](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_dynain_file_parser) Settings for the Dynain exporter. |
| class | [ExportCSV](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v.md) Exports scalar data to a CSV file. |
| class | [ExportCSVField\< TYPE >](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v_field.md) Exports SoS field data to a CSV text file. |
| class | [ExportCSVScalar](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v_scalar.md) Exports scalar data to a CSV file. |
| class | [ExportDesigns](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_designs.md) A struct collecting export information for various design directories. |
| struct | [ExportGeometry](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_geometry.md) Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either: |
| struct | [ExportItemInfo](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_item_info.md) 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. |
| struct | [ExportOptiSLangBinaryScalars](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_opti_s_lang_binary_scalars.md) stores settings for export to optiSLang bin file |
| class | [ExportReferenceDesign](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_reference_design.md) 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. |
| struct | [ExportScriptForComputingAmplitudesFromField](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_export_script_for_computing_amplitudes_from_field.md) A struct collecting import information for generating a script that converts field data into random field amplitudes. |
| class | [ExportSignalsSettings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_signals_settings.md) Stores settings for export signals to a couple of CSV files. |
| class | [ExportToMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_to_m_o_p.md) A struct collecting export information for FMOP/F-CoP in optiSLang. |
| struct | [SaveDataBaseSettings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_save_data_base_settings.md) stores settings for [saveDataBase()](#ga5c0d54fd5913c33c895ffae6be1b079c) |

## Functions

| Type | Name |
| - | - |
| | **checkExportLSDynaK** (string filename, string filename\_on\_output, [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), [DynainFileParser::ItemSet](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_dynain_file_parser#a359f18d1575aafa537983b824c465b7b) modified\_items) |
| | [exportLSDynaK](#ga4da1dd8f029f998bddafafbc50d50756) (string filename, [DynainFileParser](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_dynain_file_parser) settings, [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)) exports selected field data objects to a Dynain file |
| template\<dataobject\_types TYPE> std::ostream | [operator\<\<](#ga87e1513fbe18a1622b984306c3127356) (std::ostream os, [ExportCSVField](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v_field.md)\< TYPE > field) Writes a string representation of an [ExportCSV](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v.md) object to the stream object given. |
| | [saveDataBase](#ga5c0d54fd5913c33c895ffae6be1b079c) ([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), [SaveDataBaseSettings](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_save_data_base_settings.md) settings) saves all data of database to file |
| | **template** (ExportCSVFieldNode) [ExportCSVField](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v_field.md)\< [NODE\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) > |
| | **template** (ExportCSVFieldElement) [ExportCSVField](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v_field.md)\< [ELEMENT\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) > |

## Detailed Description

Export data to various file formats.

//!

## Function Documentation

### exportLSDynaK()

```cpp theme={null}
exportLSDynaK(
    string filename,
    DynainFileParser settings,
    Structure database
)
```

exports selected field data objects to a Dynain file

**Parameters**

| Name | Description |
| - | - |
| filename | the output file name. The file must exist and be a Dynain format which is compatible with the reference structure. On output the filename contains modified data. |
| settings | defines which objects are to be modified |
| database | contains the FEM structure to which this method refers |

### operator\<\<()

```cpp theme={null}
std::ostream operator<<(
    std::ostream os,
    ExportCSVField < TYPE > field
)
```

Writes a string representation of an [ExportCSV](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_export_c_s_v.md) object to the stream object given.

**Parameters**

| Name | Description |
| - | - |
| os | The output stream object to be modified |
| out | The object which settings should be summarized to os |

**Returns**

The modified output stream

### saveDataBase()

```cpp theme={null}
saveDataBase(
    Structure database,
    SaveDataBaseSettings settings
)
```

saves all data of database to file

**Parameters**

| Name | Description |
| - | - |
| settings | contains the settings |
| database | the database where all objects are to read from |
