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

#### FileIO.export\_stl(file\_name, params)

Export an STL file.

**Parameters:**

**file\_name**

Path to the STL file on disk.

**params**

Parameters for exporting the STL file.

**Returns:**

**[`FileWriteResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/api/_autosummary/ansys.meshing.prime.FileWriteResults)**

Results from exporting the STL file.

**Return type:**

[`FileWriteResults`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/api/_autosummary/ansys.meshing.prime.FileWriteResults)

### Notes

This method does not support Unicode paths.

### Examples

```python theme={null}
>>> import ansys.meshing.prime as prime
>>> model = prime.launch_prime().model
>>> fileio = prime.FileIO(model=model)
>>> out_file_path = r"/tmp/output.stl"
>>> part_ids = [part.id for part in model.parts]
>>> export_stl_params=prime.ExportSTLParams(model=model,part_ids=part_ids)
>>> results = fileio.export_stl(out_file_path,export_stl_params)
```
