# Bug importing INP file generated by pygccx library

**URL:** <https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414>\
**Category:** Bug Reports\
**Created:** [January 25, 2025, 3:49pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414 "2025-01-25T15:49:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvan](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@yvan](https://prepomax.discourse.group/u/yvan)\
**Post date:** [January 25, 2025, 3:49pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/1 "2025-01-25T15:49:41Z")

</div>

Hello,  
I used pygccx library that generates INP file from .geo inpu and .stp model files.  
When importing INP in prepomax v2.2.0, I have two issues:

- the ‘Load\_surf’ surface is not correctly read.
- when editing a concentrated load force, it says that one component at least must not be equal to zero, but it’s the case here (see image).

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/9/968759d6f4a45051aa728b15548bc453c9b81365.png)

INP file extracts :  
…  
\*CLOAD  
141981,1,3.0616170e-14  
141981,2,5.0000000e+02  
…  
\*SURFACE,NAME=LOAD\_SURF,TYPE=ELEMENT  
76045,S1  
44530,S1  
59809,S1  
65714,S1  
84939,S1  
…

---

<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:** [January 25, 2025, 4:39pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/2 "2025-01-25T16:39:09Z")

</div>

The .inp file importer is quite outdated compared to the exporter and mostly supports files generated in PrePoMax’s way. Especially surfaces are causing issues when importing: [Import issues with \*SURFACE - #2 by FEAnalyst](https://prepomax.discourse.group/t/import-issues-with-surface/82/2)

---

<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:** [January 26, 2025, 8:55am UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/3 "2025-01-26T08:55:27Z")

</div>

> [@yvan](#):
>
> when editing a concentrated load force, it says that one component at least must not be equal to zero, but it’s the case here (see image).

In the image, the magnitude of the force is 0. That is probably causing problems.

---

<div class="post-metadata">

**Author:** ![Sound\_Spinning](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sound_spinning/32/4239_2.png) [@Sound\_Spinning](https://prepomax.discourse.group/u/Sound_Spinning)\
**Post date:** [January 26, 2025, 1:36pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/4 "2025-01-26T13:36:03Z")

</div>

I had this before with Aba decks, simply retype the F1 load value, and mag gets recalculated, and not zero.

---

<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:** [February 8, 2025, 11:00am UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/5 "2025-02-08T11:00:57Z")

</div>

I have fixed this behaviour. The fix will be released in the next version.

---

<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:** [March 25, 2025, 12:33pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/6 "2025-03-25T12:33:29Z")

</div>

Does it work now as expected?

---

<div class="post-metadata">

**Author:** ![yvan](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@yvan](https://prepomax.discourse.group/u/yvan)\
**Post date:** [March 25, 2025, 12:46pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/7 "2025-03-25T12:46:10Z")

</div>

Yes it does work now. Thanks Matej

---

<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:** [March 25, 2025, 6:37pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/8 "2025-03-25T18:37:25Z")

</div>

Thank you, I am closing the topic.

---

<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:** [March 25, 2025, 6:37pm UTC](https://prepomax.discourse.group/t/bug-importing-inp-file-generated-by-pygccx-library/2414/9 "2025-03-25T18:37:31Z")

</div>


