<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.stack.imgur.com/rWoz3.png" rel="nofollow noreferrer" title="Screenshot of the preview of a 3D model in PrusaSlicer"><img src="https://i.stack.imgur.com/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.stack.imgur.com/mdzlT.png" rel="nofollow noreferrer" title="Screenshot of the preview of a 3D model in PrusaSlicer with no Top Layers"><img src="https://i.stack.imgur.com/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>

[{'answer_id': 19964, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 2, 'selected': False, 'text': '<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>\n<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>\n<p><a href="https://i.stack.imgur.com/jiHYw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jiHYw.png" alt="enter image description here" /></a></p>\n<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):\n<a href="https://i.stack.imgur.com/DZNtW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DZNtW.png" alt="enter image description here" /></a></p>\n<p>The sliced solution will look like what you request:\n<a href="https://i.stack.imgur.com/vKsfy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vKsfy.png" alt="enter image description here" /></a></p>\n<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>\n'}, {'answer_id': 19966, 'author': 'Kilisi', 'author_id': 31811, 'author_profile': 'https://3dprinting.stackexchange.com/users/31811', 'pm_score': 0, 'selected': False, 'text': '<p>I would just pause at the second to last layer, remove the print and cancel it.</p>\n<p>With Cura you can do this easily in the slicer. Or just manually do it.</p>\n<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>\n'}]
['https://3dprinting.stackexchange.com/questions/19963', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/35470/']