    

 ## On this page

  

 

 # write

 Last update: 02.04.2026 

<a id="ansys.meshing.prime.lucid.Mesh.write"></a>

#### Mesh.write(file\_name)

Write or export files of different formats based on file extensions.

This method supports writing and exporting these file formats:

- Writing PyPrimeMesh’s native PMDAT files
- Exporting Fluent Meshing’s MSH files
- Exporting Fluent’s CAS files
- Exporting MAPDL’s CDB files.
- Exporting STL files.

**Parameters:**

**file\_name**

Path of the file to write or export.