How to get slicing info from the command line?
 
Notifications
Clear all

How to get slicing info from the command line?  

  RSS
GrandFather
(@grandfather)
Active Member
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
Posted : 23/04/2022 4:56 pm
Yabber
(@yabber)
New Member
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
Posted : 24/04/2022 4:15 am
GrandFather
(@grandfather)
Active Member
Topic starter answered:
RE: How to get slicing info from the command line?

Oh, I wasn't aware of that. Thank you very much!

Posted : 24/04/2022 7:07 am
Yabber liked
Share: