Exporting Meshes to Files Exporting Mesh to a File To export a mesh to a file, enter model.mesh(<tag>).export(<filename>); where <filename> is a string. The file can be any of the following formats. Table 4-6: Valid File Formats File Format Note File Extensions COMSOL Multiphysics Binary .mphbin COMSOL Multiphysics Text .mphtxt NASTRAN file .nas, .bdf, .nastran, .dat STL Binary (3D) 1 .stl STL Text (3D) 1 .stl 1 Use model.mesh(<tag>).export().set("stlformat",<format>) to specify the STL file format ("binary" or "text")