# Error when importing mesh from .inp file

**URL:** <https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363>\
**Category:** Bug Reports\
**Created:** [August 19, 2022, 10:30am UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363 "2022-08-19T10:30:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [August 19, 2022, 10:30am UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/1 "2022-08-19T10:30:02Z")

</div>

Hi,

when I’m trying to import a mesh from .inp file shared by a user on the CalculiX forum, I get the following error message:

 ![error](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/80cb7cb57d5edc5eae66e369660e42cbf8569727.png)

There are also some messages in the bottom report window:

> Reading keyword line: \*NODE  
> Reading keyword line: \*ELEMENT,TYPE=C3D20R  
> An item with the same key has already been added.

I successfully imported this mesh to FreeCAD so the file itself is correct. It may just contain some unsupported node/element definition syntax but I’m not sure what causes the problem.

Here’s the input file:

> **[disc\_cyclic\_mesh.inp](https://www.dropbox.com/s/t6st6adv2rqowfm/disc_cyclic_mesh.inp?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [August 20, 2022, 9:50pm UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/2 "2022-08-20T21:50:41Z")

</div>

i checked with CGX then shown unusual node numbers, reopen in PrePoMax succeed after merging.

 ![2022-08-21 04_51_58-disc_cyclic_mesh.inp - SciTE](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/79fbd5cc94cd7499d99a66588c3bf4a6398976b2.png)

 ![2022-08-21 04_48_55-PrePoMax v1.3.3 C__Users_user_Downloads_disc_cyclic.pmx](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/9506fa898a9148a1213564f2f3b3947056b221cb.png)

attached PMX files,  
[disc\_cyclic.pmx](https://prepomax.discourse.group/uploads/short-url/nxl5iYYqpryiErIa0QzM3p3fHPX.pmx) (542.4 KB)

\*edited  
it seems not related to node number or merging, the input file contains tabs before node and element numbers. maybe CGX is accepted these but PrePoMax is not.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [August 22, 2022, 9:38am UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/3 "2022-08-22T09:38:58Z")

</div>

Thanks for checking this.

> [@synt](#):
>
> it seems not related to node number or merging, the input file contains tabs before node and element numbers. maybe CGX is accepted these but PrePoMax is not.

Right, that’s what I suspected - the specific format of this input file can’t be read by PrePoMax. Importing the file to FreeCAD and then exporting it back fixes the format and the file can be imported to PrePoMax. However, I’m not sure which tabs or spaces are causing the problem.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 22, 2022, 10:29am UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/4 "2022-08-22T10:29:56Z")

</div>

Enjoying my vacations, but I will look into this issue this week.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [August 22, 2022, 10:38am UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/5 "2022-08-22T10:38:21Z")

</div>

Have fun on your vacation 🙂

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 23, 2022, 7:14pm UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/6 "2022-08-23T19:14:34Z")

</div>

I have fixed the issue. It will be available in the updated developer version or release version of PrePoMax v1.3.5.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 23, 2022, 7:15pm UTC](https://prepomax.discourse.group/t/error-when-importing-mesh-from-inp-file/363/7 "2022-08-23T19:15:02Z")

</div>


