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

# write_pmdat

#### FileIO.write\_pmdat(file\_name, file\_write\_params)

Write a PyPrimeMesh data (PMDAT) file.

**Parameters:**

**file\_name**

Path for writing the data file on disk.

**file\_write\_params**

Parameters for writing the data file.

**Returns:**

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

Results from writing the data file.

**Return type:**

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

### Examples

```python theme={null}
>>> results = file_io.write_pmdat("/tmp/prime_mesh_data.pmdat",
                                  prime.FileWriteParams(model=model))
```
