<p>I just confirmed it works flawlessly in PrusaSlicer as it did in Slic3r, the software from which PrusaSlicer is forked. Just use the solution provided in &quot;<a href="https://3dprinting.stackexchange.com/questions/6522/different-infill-in-the-same-part/6523#6523">Different infill in the same part</a>&quot;, but now do not change infill options but the layer options.</p>
<p>First load the cube with notch, and then load/insert a modifier to get something like the following (grey is the box with notch, green cube is the modifier):</p>
<p><a href="https://i.sstatic.net/jiHYw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jiHYw.png" alt="enter image description here" /></a></p>
<p>Now change the options (click on modifier and left-click to select <code>Layers and Perimeters</code> option item) of the modifier (select zero top and bottom layers):
<a href="https://i.sstatic.net/DZNtW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/DZNtW.png" alt="enter image description here" /></a></p>
<p>The sliced solution will look like what you request:
<a href="https://i.sstatic.net/vKsfy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vKsfy.png" alt="enter image description here" /></a></p>
<p>Note that this solution will give you an object that is exactly the height of the designed cube, it just doesn't have a top surface, but infill and walls to the top.</p>

CC BY-SA 4.0
2022-09-24T17:59:09.843Z
2022-09-26T17:00:54.710Z
2022-09-26T17:00:54.710Z
0scar
<p>I would just pause at the second to last layer, remove the print and cancel it.</p>
<p>With Cura you can do this easily in the slicer. Or just manually do it.</p>
<p>I have never used Prusaslicer but all slicers must have this. For more information, see the Prusa documentation <a href="https://help.prusa3d.com/article/insert-pause-or-custom-g-code-at-layer_120490" rel="nofollow noreferrer">&quot;Insert pause or custom G-code at layer&quot;</a>.</p>

CC BY-SA 4.0
2022-09-26T11:02:32.680Z
The print will be too short, it will be missing the last layers. At least advise to alter the design by extending the top part by the thickness of the top layers.
0scar
CC BY-SA 4.0
2022-09-26T12:40:36.967Z
@0scar how do you work that out? The OP specifically says they don't want the top layer. This is how I do it when I want the infill texture on top, and it works fine.
Kilisi
CC BY-SA 4.0
2022-09-26T14:41:55.040Z
Simple, if you have 5 top layers at 0.2 mm per layer, your object is too short, by 1 mm. I assume the size is important, if not your answer is very valid, I've left a comment for the OP. Note that the OP specifies that the notch needs top layers, those settings apply for the top surface as well, so if you stop the print before the printing of the top layers, it is too short.. Please explain better if this is not what is meant in your answer.
0scar
CC BY-SA 4.0
2022-09-26T21:41:55.060Z
@Oscar you're assuming that 1mm is important, and assuming the OP wouldn't use common sense? Never mind, feel free to downvote
Kilisi
CC BY-SA 4.0
2022-09-24T22:05:09.647Z
2022-09-24T22:58:52.550Z
2022-09-24T22:58:52.550Z
Kilisi
<p>I'm using PrusaSlicer with OpenSCAD.  I want to print a solid object with a notch in it, without top layers, but with infill and solid walls for the notch, like this...</p>
<p><a href="https://i.sstatic.net/rWoz3.png" rel="nofollow noreferrer" title="Screenshot of the preview of a 3D model in PrusaSlicer"><img src="https://i.sstatic.net/rWoz3.png" alt="Screenshot of the preview of a 3D model in PrusaSlicer" title="Screenshot of the preview of a 3D model in PrusaSlicer" /></a></p>
<p>I can set the number of top layers to zero (<strong>Print Settings</strong> &gt; <strong>Layers and perimeters</strong> &gt; <strong>Solid Layers</strong> &gt; <strong>Top</strong> = 0), which gets rid of the top layers as desired, but it also removes the base from the notch, like this...</p>
<p><a href="https://i.sstatic.net/mdzlT.png" rel="nofollow noreferrer" title="Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers"><img src="https://i.sstatic.net/mdzlT.png" alt="Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers" title="Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers" /></a></p>
<p>Is there any way to do what I want without awful shenanigans in OpenSCAD or editing G-code?</p>

CC BY-SA 4.0
2022-09-26T14:42:59.157Z
Please indicate (by [edit]) if the geometry should be fully printed, or if you can live with a shorter (height) object. Also [edit] your question which printer you have.
0scar
<slicing><openscad><prusaslicer>
Print Object Without Top Layer But With Intermediate Layers
BoCoKeith
# Print Object Without Top Layer But With Intermediate Layers

(Asked by: username_0 on 2022-09-24)

I'm using PrusaSlicer with OpenSCAD. I want to print a solid object with a notch in it, without top layers, but with infill and solid walls for the notch, like this...

[![Screenshot of the preview of a 3D model in PrusaSlicer](https://i.sstatic.net/rWoz3.png "Screenshot of the preview of a 3D model in PrusaSlicer")](https://i.sstatic.net/rWoz3.png "Screenshot of the preview of a 3D model in PrusaSlicer")

I can set the number of top layers to zero (**Print Settings** > **Layers and perimeters** > **Solid Layers** > **Top** = 0), which gets rid of the top layers as desired, but it also removes the base from the notch, like this...

[![Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers](https://i.sstatic.net/mdzlT.png "Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers")](https://i.sstatic.net/mdzlT.png "Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers")

Is there any way to do what I want without awful shenanigans in OpenSCAD or editing G-code?

**Tags:** slicing, openscad, prusaslicer
> **Comments:**
> **username_1**: Please indicate (by [edit]) if the geometry should be fully printed, or if you can live with a shorter (height) object. Also [edit] your question which printer you have.  

---

## 2 answers

### Answer by username_1 on 2022-09-24. Score: 3

I just confirmed it works flawlessly in PrusaSlicer as it did in Slic3r, the software from which PrusaSlicer is forked. Just use the solution provided in "[Different infill in the same part](https://3dprinting.stackexchange.com/questions/6522/different-infill-in-the-same-part/6523#6523)", but now do not change infill options but the layer options.

First load the cube with notch, and then load/insert a modifier to get something like the following (grey is the box with notch, green cube is the modifier):

[![enter image description here](https://i.sstatic.net/jiHYw.png)](https://i.sstatic.net/jiHYw.png)

Now change the options (click on modifier and left-click to select `Layers and Perimeters` option item) of the modifier (select zero top and bottom layers):
[![enter image description here](https://i.sstatic.net/DZNtW.png)](https://i.sstatic.net/DZNtW.png)

The sliced solution will look like what you request:
[![enter image description here](https://i.sstatic.net/vKsfy.png)](https://i.sstatic.net/vKsfy.png)

Note that this solution will give you an object that is exactly the height of the designed cube, it just doesn't have a top surface, but infill and walls to the top.


---

### Answer by username_2 on 2022-09-24. Score: 0

I would just pause at the second to last layer, remove the print and cancel it.

With Cura you can do this easily in the slicer. Or just manually do it.

I have never used Prusaslicer but all slicers must have this. For more information, see the Prusa documentation ["Insert pause or custom G-code at layer"](https://help.prusa3d.com/article/insert-pause-or-custom-g-code-at-layer_120490).

> **Comments:**
> **username_1**: The print will be too short, it will be missing the last layers. At least advise to alter the design by extending the top part by the thickness of the top layers.  
> **username_2**: @0scar how do you work that out? The OP specifically says they don't want the top layer. This is how I do it when I want the infill texture on top, and it works fine.  
> **username_1**: Simple, if you have 5 top layers at 0.2 mm per layer, your object is too short, by 1 mm. I assume the size is important, if not your answer is very valid, I've left a comment for the OP. Note that the OP specifies that the notch needs top layers, those settings apply for the top surface as well, so if you stop the print before the printing of the top layers, it is too short.. Please explain better if this is not what is meant in your answer.  
> **username_2**: @Oscar you're assuming that 1mm is important, and assuming the OP wouldn't use common sense? Never mind, feel free to downvote  

---

