# G-code fills holes in stl file

**URL:** <https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663>\
**Category:** Snapmaker Luban\
**Created:** [March 4, 2022, 6:45pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663 "2022-03-04T18:45:52Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 4, 2022, 6:45pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/1 "2022-03-04T18:45:53Z")

</div>

I’m printing small wheels to gear down a motor, 6cm in diameter with a 6mm hole in the center. When I generate the G-code Luban fills the hole with skin. Anyone have any idea what’s causing this? It’s a file from SketchUp, exported as stl.

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [March 4, 2022, 6:58pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/2 "2022-03-04T18:58:35Z")

</div>

Hey, normally there is a setting which allows you to make a solid piece, this means your gaps and holes would be filled. Unfortunately i didn´t find this setting now.

Which Luban version are you on?  
Did you try another slicer?  
May you upload your stl to doublecheck?

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 4, 2022, 7:06pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/3 "2022-03-04T19:06:22Z")

</div>

The latest, 4.1.4  
No, I don’t have any. The file seems fine when imported but when I generate the code, the hole is filled.  
I get this message when trying to upload the file:  
“Sorry, new users can not upload attachments.”

---

<div class="post-metadata">

**Author:** ![xchrisd](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/xchrisd/32/1503_2.png) [@xchrisd](https://forum.snapmaker.com/u/xchrisd)\
**Post date:** [March 4, 2022, 7:08pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/4 "2022-03-04T19:08:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/f/4/f4f6b1a887c0e1febafbe43614bc1b89c4eda772.png)

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 4, 2022, 8:05pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/5 "2022-03-04T20:05:26Z")

</div>

I get this message when trying to upload the file:  
“Sorry, new users can not upload attachments.”

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [March 4, 2022, 8:07pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/6 "2022-03-04T20:07:08Z")

</div>

You need to get to trust level 1. You’ve only read 18 posts:

> **[Understanding Discourse Trust Levels](https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/)**
>
> The user trust system is a fundamental cornerstone of Discourse. Trust levels are a way of…

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 4, 2022, 8:47pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/7 "2022-03-04T20:47:03Z")

</div>

[wheel 6mm hole.stl](https://forum.snapmaker.com/uploads/short-url/9VOgx3MdcgrBKfRNLZ2l7dB1nNs.stl) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 4, 2022, 9:21pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/8 "2022-03-04T21:21:53Z")

</div>

![Screenshot 2022-03-04 at 14.57.51](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/9/d/9d39ba474459668132ddc5d7d35ec90d96581542.jpeg)  
 ![Screenshot 2022-03-04 at 14.58.02](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/e/2/e27ba824999f600b843786744a7ff800f80221c0.jpeg)

---

<div class="post-metadata">

**Author:** ![Blauskink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/blauskink/32/17834_2.png) [@Blauskink](https://forum.snapmaker.com/u/Blauskink)\
**Post date:** [March 5, 2022, 4:35am UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/9 "2022-03-05T04:35:41Z")

</div>

[wheel 6mm hole.stl](https://forum.snapmaker.com/uploads/short-url/1Fc1yY8pQ2RyBGpmH6J6MoDgjkM.stl) (205.6 KB)  
@ Egill,  
so with this file it should go !!!

---

<div class="post-metadata">

**Author:** ![Blauskink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/blauskink/32/17834_2.png) [@Blauskink](https://forum.snapmaker.com/u/Blauskink)\
**Post date:** [March 5, 2022, 4:42am UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/10 "2022-03-05T04:42:33Z")

</div>

There was an error in the .stl file, imported it with 3D Builder and it gave me an error.  
After repairing the file, I was able to open it in Luban as well as in Cura and after creating the G-code, the hole as before in the .stl file is now present !!!

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 5, 2022, 11:34am UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/11 "2022-03-05T11:34:44Z")

</div>

How very nice of you, thank you so much.  
Seems I need to get me a different stl-export plug in for SketchUp.

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 5, 2022, 11:48am UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/12 "2022-03-05T11:48:32Z")

</div>

Had a better look at the SketchUp file and found that the inside of the hole had a reversed face. After reversing it, the stl file exports correctly.  
Sometimes you need to travel to realise you were looking for the starting point.

---

<div class="post-metadata">

**Author:** ![MarkJ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/markj/32/29732_2.png) [@MarkJ](https://forum.snapmaker.com/u/MarkJ)\
**Post date:** [March 5, 2022, 2:12pm UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/13 "2022-03-05T14:12:10Z")

</div>

Do you use Solid Inspector (From \<[Extension | SketchUp Extension Warehouse](https://extensions.sketchup.com/extension/aad4e5d9-7115-4cac-9b75-750ed0902732/solid-inspector))? I find it invaluable for checking things.

---

<div class="post-metadata">

**Author:** ![Egill](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Egill](https://forum.snapmaker.com/u/Egill)\
**Post date:** [March 7, 2022, 10:20am UTC](https://forum.snapmaker.com/t/g-code-fills-holes-in-stl-file/24663/14 "2022-03-07T10:20:38Z")

</div>

No but thanks for the tip, will check it out.
