Hi everyone! I updated both the printer and the software and now printing is different so I print from a g-code. The problem is the g-code has only one object. How can I make it like 6? Can anyone here modify my gcode or tell me how to do it so it can print 6 of my object?
Thanks in advance!
- Hold CTRL and Click to select the objects on the bed that you want to duplicate
- Ctrl+C (Copy)
- CTRL+V (Paste)
- CTRL+A (Select All)
- Use the move tool to center on the bed
- Slice the bed
- Export the Gcode
Would be nice to have a duplicate button on the top tool bar!
I can’t duplicate on the PREVIEW screen. It is a G-code, so it only shows the PREVIEW, I can’t go back PREPARE.
OK that is difficult to do manually in Gcode, but depending on how complex it is you could generate a 3d model (stl) from the gcode, this does a decent job on basic models Convert GCODE to STL for free - ImageToStl
thank you, but if I make an stl file, doesn’t that mean that the printer will use its own, updated g-code instead of the old one that is IN the g-code I just converted?
maybe I wasn’t clear from the start. My problem is that the previously fine prints became worse with the updated soft- and firmware, so now I print the object from a g-code, therefore it looks like it was printed with the previous firmware. But the g-code has only one object and I have to print it object by object. To prevent this I want like 6 objects so I don’t have to run to the printer every time it’s done and reprint it.
Aw sorry I can’t help there as there are loads of things that would come with copying the object gcode and offsetting the x and y. You would need to consider everything like layers and travel moves.
It would be better and more efficient for you to try to understand or figure out why the new sofware produces worse results.
1 Like
Chat gpt modified the code for me. I’ll test it today.
I hope you notified ChatGPT if you were using a Marlin, Marlin 2.0 or Klipper printer 
it figured it out from the existing g-code, because the previews were bad at the beginning
However, I don’t think it’s even going to work. If you want to print the same object 6 more times but at different positions on the XY plan, the g-code will get 6 times longer as it’s the same with 6 different positions (you can’t add a loop like on a python code
)
yes, it prints 6 times, of course the duration will be longer, it did work though.
I didn’t mean “longer” in terms of time but length of the g-code. Was that a simple object ?