write Last update: 17.07.2025 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.