# Problem with extracting the mesh with the EXTRUDE option

**URL:** <https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449>\
**Category:** General Questions\
**Created:** [February 8, 2025, 8:42am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449 "2025-02-08T08:42:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisiaKu](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MisiaKu](https://prepomax.discourse.group/u/MisiaKu)\
**Post date:** [February 8, 2025, 8:42am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/1 "2025-02-08T08:42:04Z")

</div>

I use PrePoMax 2.2, I made simple models in FreeCAD in STEP format.

I tried to extrude the mesh on simple cube elements and on parallel faces. I tried different settings. Nothing works. Other methods usually work. I have a problem even on a cube. I had a problem on version 2.0 as well.

When previewing the mesh, an error appears:

## "…

## Error

Message: Object reference not set to an instance of an object.  
Exception in object: d\_\_252 calling method:

MoveNext

Stack trace:

PrePoMax.Controller.PreviewEdgeMeshFromBrepGmsh(GeometryPart part, MeshSetupItem gmshSetupItems, OrderedDictionary`2 meshSetupItems)

PrePoMax.Controller.PreviewEdgeMesh(String partName, MeshSetupItem meshSetupItem)

PrePoMax.FrmMain.\<\>c\_\_DisplayClass252\_0.b\_\_0()

System.Threading.Tasks.Task.Execute()

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

PrePoMax.FrmMain.d\_\_252.MoveNext()

* * *

## OK

[Sorry for any mistakes - machine translation]  
Uploading: 2758.png…  
Uploading: 2759.png…  
Uploading: 2758.png(1)…  
Uploading: 2759.png(1)…  
Uploading: Katownik\_2.2.pmx…

---

<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:** [February 8, 2025, 9:40am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/2 "2025-02-08T09:40:39Z")

</div>

The file upload wasn’t completed, please try again and hit reply only when it finishes uploading the attachments.

---

<div class="post-metadata">

**Author:** ![MisiaKu](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MisiaKu](https://prepomax.discourse.group/u/MisiaKu)\
**Post date:** [February 8, 2025, 9:52am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/3 "2025-02-08T09:52:38Z")

</div>

![2758](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/d/df505070dec0d55303b2221080cac53e3e1da23e.png)  
 ![2759](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/bdc00755e0241b9c9105a2319bc4bbd55836b66b.png)  
[Katownik\_2.2.pmx](https://prepomax.discourse.group/uploads/short-url/aXrnEOlpwnFA9iyNI0uHLEM3TY7.pmx) (52.6 KB)

---

<div class="post-metadata">

**Author:** ![MisiaKu](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MisiaKu](https://prepomax.discourse.group/u/MisiaKu)\
**Post date:** [February 8, 2025, 9:53am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/4 "2025-02-08T09:53:26Z")

</div>

Dziękuję. Nie zauważyłem problemu.

---

<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, 10:20am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/5 "2025-02-08T10:20:22Z")

</div>

The meshing works on my machine. Maybe you are missing some Gmsh files?

---

<div class="post-metadata">

**Author:** ![MisiaKu](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MisiaKu](https://prepomax.discourse.group/u/MisiaKu)\
**Post date:** [February 8, 2025, 10:28am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/6 "2025-02-08T10:28:43Z")

</div>

I know this should work. I have Gmsh installed. How can I check the configuration or add Gmsh to ProPeMax?

---

<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 10, 2025, 8:46am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/7 "2025-02-10T08:46:21Z")

</div>

Take a look at the discussion: [Extrude meshing question - #29 by Trevor](https://prepomax.discourse.group/t/extrude-meshing-question/1389/29)

---

<div class="post-metadata">

**Author:** ![MisiaKu](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MisiaKu](https://prepomax.discourse.group/u/MisiaKu)\
**Post date:** [February 10, 2025, 9:26am UTC](https://prepomax.discourse.group/t/problem-with-extracting-the-mesh-with-the-extrude-option/2449/8 "2025-02-10T09:26:04Z")

</div>

Problem solved, topic to close. I hope I could help others 🙂

The problem was that in Windows I had unnecessary files from the old version of GMSH:

> [@When meshing solids, the "Quad-dominated" option does not work for me](https://prepomax.discourse.group/t/when-meshing-solids-the-quad-dominated-option-does-not-work-for-me/2450/9):
>
> Problem solved, topic to close. I hope I could help others slight_smile
