.., I do not want the hassle of filing down the nuts to fit and wonder if it is possible to somehow edit the gcode in some way?
It is possible, but you will have to familiarise yourself with g-code commands to know what to change. The code can be altered with a text editor, not a word processor, because they insert fancy-pants constructs like paragraphs. Notepad or Nodepad++.
I know zero about gcode or programming! Happy to have a go if someone can point me in the right direction 🙂
That’s the main problem. g-code isn’t human friendly – it’s generated by a machine for another machine. So the human has to familiarise himself with the commands (M and G) and how they are applied to situations like holes. Fairly obvious in a CNC machine where the g-code tells the machine to tool-change and poke a hole with a drill. 3D-printing is less obvious – holes are made by not extruding, or by steering the nozzle around the gap. More complicated.
I handle the problem by over-sizing the holes in CAD. Haven’t tried Journeyman’s Horizontal Expansion control (it’s in Cura Print Settings->Wall dialogue) but sounds right. Easier to have CAD or the Slicer do the work than edit g-code.
If you want to have a go:
- 3D-CAD a square plate with one hole in it. (The simplest possible example)
- Slice the model and output g-code. Make sure it’s not set to output g-code in binary.
- Open the g-code file with an editor (Notepad) and inspect
- The code that prints the body would be fairly obvious if the body was told to print in solid plastic. More likely, there will be lots of commands that move the nozzle X-Y so as to lay down a plastic-saving cell-structure. Straight lines but with the X and Y coordinates both changing to print diagonals,
- Somewhere in the middle will be the commands that steer the nozzle around the hole. Usually a bit complicated because the slicer strengthens walls by blobbing extra plastic. There probably isn’t a single command that can be tweaked to widen the hole.
- Try it and see. If the g-code makes obvious sense, by all means edit it. Beat a hasty retreat if holes are made by dozens of complicated X,Y, Z bed movements requiring an edit to make many coordinate changes.
I am not sure if I can attach the gcode file on here?
Sadly not, despite being requested . I either post a screenshot, only good for short examples, or link to Dropbox.
Dave