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

# RAExportToolkit

### *class* RAExportToolkit

Helper class, tied to a RAStudy, to perform export actions in Rocky.

This toolkit can be obtained via a [`RAStudy`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/2025-r2/RAStudy#generated.RAStudy):

```python theme={null}
study = app.GetStudy()
export_toolkit = study.GetExportToolkit()
```

**Methods:**

| Name | Description |
| - | - |
| [`ExportFEMForces`](#generated.RAExportToolkit.ExportFEMForces)(csv\_filename, entities\_to\_export) | See [`ExportGeometryLoads()`](#generated.RAExportToolkit.ExportGeometryLoads). |
| [`ExportGeometryLoads`](#generated.RAExportToolkit.ExportGeometryLoads)(csv\_filename, ...\[, ...]) | Export the FEM forces of one or more entities to a CSV file. |
| [`ExportGeometryLoadsMultiTime`](#generated.RAExportToolkit.ExportGeometryLoadsMultiTime)(csv\_filename, ...) | Export the FEM forces of one or more entities to one or multiple CSV files. |
| [`ExportHTC`](#generated.RAExportToolkit.ExportHTC)(csv\_filename, entities\_to\_export, ...) | Export the HTC of one or more entities to a CSV file. |
| [`ExportParticleToStl`](#generated.RAExportToolkit.ExportParticleToStl)(stl\_filename, particle) | Export one and only one Particle (scaled or not) to STL file. |
| [`ExportToSTL`](#generated.RAExportToolkit.ExportToSTL)(stl\_filename, entities\[, ...]) | Export one or more entities (scaled or not) to STL files. |

#### ExportFEMForces(csv\_filename: str, entities\_to\_export: ApiElementItem | str | list, timestep\_to\_export: ITimeStep | str | int | None = None, apply\_transformation: bool = True)

See [`ExportGeometryLoads()`](#generated.RAExportToolkit.ExportGeometryLoads).

File will have area and X, Y and Z forces also exported.

#### ExportGeometryLoads(csv\_filename: str, entities\_to\_export: ApiElementItem | str | list, timestep\_to\_export: ITimeStep | str | int | None = None, apply\_transformation: bool = True, export\_forces: bool = False)

Export the FEM forces of one or more entities to a CSV file. One CSV file may contain the
forces of more than one entity, but only of a single timestep.

* **Parameters:**
  * **csv\_filename** – The full pathname of the CSV file to generate. Previously existing files will be overwritten.
  * **entities\_to\_export** – The entities to export. This parameter can be a single item, in which case it can be an
    ApiElementItem instance or the name of such an instance. The parameter can also be an
    iterable containing any mix of the two types mentioned.
  * **timestep\_to\_export** – The timestep of which the FEM forces will be exported. Passing None means that the current
    active timestep will be exported instead.
  * **apply\_transformation** – True whether boundary coordinates and forces should be transformed back to boundary’s
    original position, before all movements took place.
  * **export\_forces** – Flag to export force instead of pressure components.

#### ExportGeometryLoadsMultiTime(csv\_filename: str, entities\_to\_export: ApiElementItem | str | list, timesteps\_to\_export: list\[ITimeStep | int], apply\_transformation: bool = True, export\_forces: bool = False, show\_progress: bool = False)

Export the FEM forces of one or more entities to one or multiple CSV files. Each CSV contains the
forces of more than one entity, but only of a single timestep.

* **Parameters:**
  * **csv\_filename** – The full pathname of the CSV file to generate. Previously existing files will be overwritten.
    If timesteps\_to\_export has more than one timestep csv\_filename will be modified to include the index
    e.g. my\_csv\_file.csv will write to my\_csv\_file\_01.csv, my\_csv\_file\_02.csv, etc
  * **entities\_to\_export** – The entities to export. This parameter can be a single item, in which case it can be an
    ApiElementItem instance or the name of such an instance. The parameter can also be an
    iterable containing any mix of the two types mentioned.
  * **timesteps\_to\_export** – The list of times to export. Passing None or an empty list means that the current
    active timestep will be exported instead.
  * **apply\_transformation** – True whether boundary coordinates and forces should be transformed back to boundary’s
    original position, before all movements took place.
  * **export\_forces** – Flag to export force instead of pressure components.
  * **show\_progress** – Whether a progress dialog should be shown during export.

#### ExportHTC(csv\_filename: str, entities\_to\_export: ApiElementItem | str | list, timestep\_to\_export: ITimeStep | str | int | None, apply\_transformation: bool, ref\_temperature: float | None)

Export the HTC of one or more entities to a CSV file. One CSV file may contain the
HTC value of more than one entity, but only of a single timestep.

* **Parameters:**
  * **csv\_filename** – The full pathname of the CSV file to generate. Previously existing files will be overwritten.
  * **entities\_to\_export** – The entities to export. This parameter can be a single item, in which case it can be an
    ApiElementItem instance or the name of such an instance. The parameter can also be an
    iterable containing any mix of the two types mentioned.
  * **timestep\_to\_export** – The timestep of which the HTC values will be exported. Passing None means that the current
    active timestep will be exported instead.
  * **apply\_transformation** – True whether boundary coordinates and forces should be transformed back to boundary’s
    original position, before all movements took place.
  * **ref\_temperature** – The arbitrary reference temperature. If None is passed we assume that thermal is
    enabled and the adjacent temperature will be used.

#### ExportParticleToStl(stl\_filename: str, particle: str | Particle | ApiElementItem, time\_to\_export: ITimeStep | int | None = None, output\_unit: str | None = None, target\_size: float | None = None, target\_unit: str | None = None)

Export one and only one Particle (scaled or not) to STL file. The origin of Particle can be from a name, subject or the api element.

* **Parameters:**
  * **stl\_filename** – The name of the resulting STL file. If multiple files are generated, the name of the
    entities will be appended to the filename, before the ‘.stl’ extension.
  * **particle** – The targets to export. The ‘particle’ can be the name of the Particle to export, the Subject instance, or the
    ApiElementItem instance.
  * **time\_to\_export** – The timestep for which to export the items. If None is passed, the application’s current
    timestep will be used.
  * **output\_unit** – The optional output unit. If None is passed, the geometry will be exported in its native
    unit (meters).
  * **target\_size** – The value of the wished scalar to scale the Particle
  * **target\_unit** – The unit of the wished scalar to scale the Particle

#### ExportToSTL(stl\_filename: str, entities: Subject | ApiElementItem | str | list, time\_to\_export: ITimeStep | int | None = None, output\_unit: str | None = None)

Export one or more entities (scaled or not) to STL files. Valid entities to export are conveyors, custom
boundaries and any user process created with one of the aforementioned types in its process
hierarchy.

* **Parameters:**
  * **stl\_filename** – The name of the resulting STL file. If multiple files are generated, the name of the
    entities will be appended to the filename, before the ‘.stl’ extension.
  * **entities** – The targets to export. This can be a list of elements, or a single element. Each
    ‘element’ can be the name of the geometry to export, the Subject instance, or the
    ApiElementItem instance.
  * **time\_to\_export** – The timestep for which to export the items. If None is passed, the application’s current
    timestep will be used.
  * **output\_unit** – The optional output unit. If None is passed, the geometry will be exported in its native
    unit (meters).
