Get current job file offset
-
After digging a bit into the resurrect files, I learned that resuming is based on number storing at which byte of file the print should continue.
I suffered some strange mid-print errors recently so I try to be prepared and extract data required to manually continue printing.Object model documentation says there's job.filePosition.
But when I run a macro containing
echo job.filePositionthe response is
says unsupported type code 5.Could not find any info about that response.
Possibly I have to convert the type of value to something that can be stringified? -
@jbjhjm I see this as well in SBC mode, I assume you are running in SBC mode so will report it to @chrishamm
-
@jbjhjm Thanks for the report, it's indeed a problem with type conversions in RRF.
You can use
job.filePosition
in your scripts without problems butecho
fails to print it unless you convert it to an int or string first. These two examples do work:echo 0 + job.filePosition M118 S{job.filePosition}
-
@chrishamm works perfectly fine thank you for helping me out!