# Problem save 3D file .msh

**URL:** <https://community.freefem.org/t/problem-save-3d-file-msh/3094>\
**Category:** General Discussion\
**Created:** [April 10, 2024, 9:08am UTC](https://community.freefem.org/t/problem-save-3d-file-msh/3094 "2024-04-10T09:08:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathloger](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@Mathloger](https://community.freefem.org/u/Mathloger)\
**Post date:** [April 10, 2024, 9:08am UTC](https://community.freefem.org/t/problem-save-3d-file-msh/3094/1 "2024-04-10T09:08:17Z")

</div>

Hello, I am trying to save a mesh3 by:

```auto
load "msh3"

mesh3 Th=cube(5,5,5);
savemesh(Th,"Th.msh");

plot(Th,wait=true);

```

but it give me:

```auto
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
    1 : load "msh3"(load: loadLibary D:\FreeFem++\\.\msh3 = 0)
    2 :
    3 : mesh3 Th=cube(5,5,5);
    4 : savemesh(Th,"Th.msh");
    5 :
    6 : plot(Th,wait=true); sizestack + 1024 =1256 ( 232 )

  -- Cube nv=216 nt=750 nbe=300 kind= 6
  -- Mesh3::Save UNABLE TO OPEN :Th.msh
  current line = 4
Exec error : PB Write error !
   -- number :1
Exec error : PB Write error !
   -- number :1
 err code 8 , mpirank 0

```

but if I use the following codes are OK!

```auto
load "msh3"

mesh3 Th=cube(5,5,5);
savemesh(Th,"Th.mesh");

plot(Th,wait=true);

```

Could you help me overcome this problem?

---

<div class="post-metadata">

**Author:** ![Mathloger](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@Mathloger](https://community.freefem.org/u/Mathloger)\
**Post date:** [April 12, 2024, 3:43am UTC](https://community.freefem.org/t/problem-save-3d-file-msh/3094/2 "2024-04-12T03:43:51Z")

</div>

I understand it,  
3D file.msh is for FreeFEM not for FreeFEM++
