Hello, I have the Snapmaker 2.0 A350 and found some setup guides to get this machine working with LightBurn. I have everything set up and it works! However, rather than dealing with Z offsets/material thicknesses, I prefer to export the Gcode and load it up into the machine (since the Snapmaker asks for material thickness during the start wizard and automatically adjust the Z height to the proper focal height above the material thickness (also prefer this method so that the machine doesn’t stop if communication is disrupted).
However, I’ve noticed that when doing it this way, the boundary/frame is actually doubling in size when I run it, so I can’t get things to line up quite the way they should. After comparing the file to one generated via Snapmaker’s software, I found that one line of the gcode doesn’t generate via LightBurn that causes this. The gcode from the snapmaker has a line called “;file_total_lines: ###” within the “;Header Start” section. When I add this line in and replace ### with the total number of lines of code, everything works perfectly. Is there any possible way to get this to to generate in the code without having to add it manually for each file?