How to get slicing info from the command line?
Hi there,
Is there any way to get slicing info (duration, cost, etc.) displayed by the GUI from the command line? I tried with prusa-slicer-console.exe with the --info option, but it only shows generic information about the model.
Best Answer by Yabber:
The information you are looking for is included in the gcode file as plain text.
You can use a command like find, or grep to search the file and display those lines on screen.
For example, on my Windows system typing the command:
find "total filament" toothbrush.gcode
will return:
---------- TOOTHBRUSH.GCODE ; total filament used [g] = 5.9 ; total filament cost = 0.1
Or, on my Mac I can use:
grep "estimated" toothbrush.gcode
and it will show:
; estimated printing time (normal mode) = 28m 51s ; estimated printing time (silent mode) = 28m 57s
RE: How to get slicing info from the command line?
The information you are looking for is included in the gcode file as plain text.
You can use a command like find, or grep to search the file and display those lines on screen.
For example, on my Windows system typing the command:
find "total filament" toothbrush.gcode
will return:
---------- TOOTHBRUSH.GCODE ; total filament used [g] = 5.9 ; total filament cost = 0.1
Or, on my Mac I can use:
grep "estimated" toothbrush.gcode
and it will show:
; estimated printing time (normal mode) = 28m 51s ; estimated printing time (silent mode) = 28m 57s
RE: How to get slicing info from the command line?
Oh, I wasn't aware of that. Thank you very much!