I have a first-layer calibration gcode file I like to run to set the Z offset. It’s just a 60mm square printed at 0.2mm layer height. The only difference between using it for ABS vs PLA is the temperature; I’d want to use the filament I have loaded at the moment, rather than reload with a specific filament just for getting the squish right.
I’m imagining modifying the gcode file to remove the commands to set temperature, and then printing the file. I really don’t want to include the entire gcode file inline in a macro definition, so I’m wondering if it’s possible within a macro to open a file and print it, or just do the equivalent of a
#include from within the macro source?