1

Topic: Can you remove a part from the Gcode if it pops off the build platform

Using Repetier-host and Slicer is it possible to pause then edit the gcode to remove a part that detached from the build platform? I hate scrapping 5 perfectly good parts because one popped off.

2

Re: Can you remove a part from the Gcode if it pops off the build platform

this would be part of my wish list as well. Would be very nice.

3 (edited by adrian 2013-11-07 21:18:40)

Re: Can you remove a part from the Gcode if it pops off the build platform

No, because the gcode is read entirely into memory and streamed from a buffer when you click Run.
To change the code on the fly changes so many things due to relative gcode, and even with absolute cords, it is messy due to plastic volume maths across the entire model.

This is not withstanding the programmatic issues outlined above. 

Anyway, not possible, and while you might think it's a simple task, it's really not that simple from a code integrity perspective. Don't hold your breath, and I'd really just move to fix your warp issue as bandaid fixes like code manipulation are always going to be non effective.

TL;DR: Wont happen due to the architecture of RH and its streaming...

4

Re: Can you remove a part from the Gcode if it pops off the build platform

I don't know...  I think it might be doable like this:

Kill the current job, but make a note of the layer where it was at.  Make sure you leave the bed heater on.  Then remove the offending part from the platform, leaving the other parts in place.

Go back to the "object placement" tab and remove the STL of the part you don't want, leaving the rest as they are.  Slice it with Slic3r, then go through the code and remove all the layers up to the last one that was printing.  Make sure you leave the pre-amble Gcode in place.  The easiest way to achieve this is to check "verbose G-Code" in the Slic3r print settings.  YOu can actually see the beginnings and endings of each layer.

Anyway, after you remove the G-code, use the visualization tab to check the range of the print, it should show you the print starting in mid air, (where it originally left off), and continue from there.  If it doesn't, something went wrong when you removed the code, try again.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

5

Re: Can you remove a part from the Gcode if it pops off the build platform

That idea has been floating around for a while. It is completely plausible but I have never tried it. I am sure the part will lose a fair amount of structural integrity and it might end up look like "the dogs breakfast". Imho, if you could make an @pause that stopped it at the end of a layer then you might have a good shot at getting something, like what pirvan is talking about, to work. Its an interesting concept and it intrigues me every time it is brought up. I usually end up thinking the ultimate fix is getting it to not fail in the first place. Glass+hair spray ftw

SD3 w/ mods:
Glass bed with QU-BD heat pad upgrade, threadless ballscrew w/ 8mm smooth rod, spectra line belt replacement, lawsy MK5 extruder, Lawsy replacement carriage, E3D hotend, Ramps 1.4 w/ reprap discount controller, DRV8825 drivers, 12v 30A PS, Acrylic case, Overkill Y-idlers, Filament alarm, Extruder fan + more.

6

Re: Can you remove a part from the Gcode if it pops off the build platform

I've done it before, but not because I had a failed part, but because I hit the "Kill Job" button by mistake.  As soon as I realized that, I restarted bed heater to make sure the piece stays put, then searched through the G-Code until I found the last layer that was printing when I hit the button, removed all the code in between the preamble G-Code and the beginning of that layer, and hit print.  It worked beautifully.

His situation is a bit different as he wants to remove a part, and we don't know exactly what he has. 

If the piece he wants to remove is a separate STL that was placed on the build platform along with other STLs, simply removing it, without touching the other pieces, should generate a slice where all the other parts are in exactly the same place as before.  The layer may start in a different place, and the fill sequence may be a bit different, but the perimeters should line up perfectly.

The other possibility is that the broken part is part of a single STL model.  Then it get a bit more complicated.  If you open the STL in and editing program (like NetFabb), you can remove the part you want, then save the STL under the same name.  When you exit the program and go back to Repetier, it will give you a pop-up saying something like "the STL model has changed, do you want to reload it?".  If you say yes, the model will be reloaded, but it's current location, size, rotation, etc will be preserved.  The you can slice it again, and it SHOULD work.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

7 (edited by pirvan 2013-11-09 18:18:30)

Re: Can you remove a part from the Gcode if it pops off the build platform

I thought a little tutorial might be in order:

IN the image below we have a composition of 4 STLs.  The resulting slice is shown on the right.
http://www.soliforum.com/misc.php?action=pun_attachment&item=3911

Half way through, we interrupt the print using the "Kill Job" button.  To make sure the already printed pieces don't shift, manually re-enable the print bed heater.  Also make note of the layer where we interrupted the print job.  In this case layer# 220.

http://www.soliforum.com/misc.php?action=pun_attachment&item=3912

Go back to the object placement tab and remove the part you want to remove, but don't touch the others.  Then slice the model again.  You should end up with the exact model as before, minus the part you removed.  Since you didn't touch the other parts, the location and size of the parts should be exactly the same as before.

http://www.soliforum.com/misc.php?action=pun_attachment&item=3913

Next we need to locate the beginning of the print.  Because we used the "verbose g-code" option, we can find it pretty easy, right after the "start g-code", or preamble.  You can also tell which layer your looking at, by putting the cursor on a code line, and looking at the bottom of the panel.  The layer number will be displayed along with the current g-code line number.  Make a note of the line number (in this case #40).  Then scroll through the code until you find the layer you want (#220).  Notice that there is a discrepancy of 1 layer between the number displayed at the bottom and the number in the G-Code.  The reason for it is that the skirt & the first layer are considered layer "0", not "1".

http://www.soliforum.com/misc.php?action=pun_attachment&item=3914

Next put your cursor at the end of the previous line (#263533), hold down the SHIFT key, scroll back up to the first line (#40), and put your cursor at the end of the previous line.  The selected g-code will be highlighted in yellow in the visualization panel.  Hit the DELETE key.  You will be left with only the code starting AFTER the lines you deleted. The visualization panel will show you that code.  Also notice that the total number of layers has now changed, to reflect the number of removed layers.

http://www.soliforum.com/misc.php?action=pun_attachment&item=3915

Re-heat the extruder, and when it's ready, extrude a few millimeters of filament to get the flow going, then hit "Run Job".  Your print should start on top of the last layer that was printed.

Hope this helps everyone that had a print job go bad half way through.

Have fun.

Post's attachments

Remove G-Code Example 1.jpg
Remove G-Code Example 1.jpg 131.68 kb, file has never been downloaded. 

Remove G-Code Example 2.jpg
Remove G-Code Example 2.jpg 89.02 kb, file has never been downloaded. 

Remove G-Code Example 3.jpg 141.85 kb, file has never been downloaded. 

Remove G-Code Example 4.jpg
Remove G-Code Example 4.jpg 160.89 kb, file has never been downloaded. 

Remove G-Code Example 5.jpg
Remove G-Code Example 5.jpg 170.95 kb, 1 downloads since 2013-11-09 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.