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

# ImportOptiSLangSignal Class Reference

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

Sets up an SoS project for a single user defined optiSLang 3 signal identifier.

## Public Member Functions

| Type | Name |
| - | - |
| | [importData](#a990ac4d4d6b49f8ce6f253c6d7b619d5) ([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 signal\_ident) Imports all designs of the specified signal identifier from the current optiSLang binary file. |
| [MetaStructure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_meta_structure.md) | [importMesh](#a7c46ddb26ae2f6cafd85ca6e7b7128fc) (string signal\_ident) Imports the mesh for the given signal identifier. |
| | [ImportOptiSLangSignal](#a728c7c7a95005527ecb79ae0f5356fd3) (string file\_path) Reads in the optiSLang binary file given. |
| std::vector\< string > | [signalIdents](#a0799bab98eadfaca1bed3ceacc1b2f2e) () |

## Public Attributes

| Type | Name |
| - | - |
|  string | [filename](#a3a1a90139c2c8ab1fca0ea8b1790b7b2) The absolute path to the optiSlang binary file we are currently dealing with. |
|  bool | [resample\_abscissa](#ad737785c9535293035604d481a12bbfb) defines the strategy for unifying the support points. true: resamples abscissa if not equal among all designs (default); false: collects all points |
|  bool | [shrink\_abscissa](#a205eefb25638b78327b52649977a67d3) defines the considered interval. true: use minimum existing interval (default), false: use maximum existing interval |

## Detailed Description

Sets up an SoS project for a single user defined optiSLang 3 signal identifier.

Reads in the given optiSLang 3 binary file and provides a list of all present, non-failed channel identifier. The user then selects a single identifier to generate and import its mesh (importMesh) and its data (importData).

> [!WARNING]
>
> Currently only compatible signal meshes are supported.

## Constructor & Destructor Documentation

### ImportOptiSLangSignal()

```cpp theme={null}
ImportOptiSLangSignal(string file_path)
```

Reads in the optiSLang binary file given.

**Parameters**

| Name | Description |
| - | - |
| file\_path | The path to an existing optiSLang binary file |

**Exceptions**

| Name | Description |
| - | - |
| std::exception | If a filesystem error occurs or the optiSLang binary file is broken |

## Member Function Documentation

### importData()

```cpp theme={null}
importData(
    Structure database,
    string signal_ident
)
```

Imports all designs of the specified signal identifier from the current optiSLang binary file.

This method tries to import as much designs as possible and does even proceed in case of errors. Currently only compatible meshes may be imported

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in,out] | database | The database where all the compatible data is to be added |
| | signal\_ident | The signal identifier to be extracted and added to the database |

**Exceptions**

| Name | Description |
| - | - |
| On | incompatible meshes. |

### importMesh()

```cpp theme={null}
MetaStructure importMesh(string signal_ident)
```

Imports the mesh for the given signal identifier.

**Parameters**

| Name | Description |
| - | - |
| signal\_ident | The signal identifier used to build the reference mesh. |

**Returns**

A meta structure containing the mesh

### signalIdents()

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

**Returns**

A vector listing the idents of all signals
