prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.74k stars 1.93k forks source link

Total number of layers and printing time #4124

Open Denethor85 opened 4 years ago

Denethor85 commented 4 years ago

Hi,

I would need to insert in the personalized G-Code the total number of Layers of a print and the time to complete it. I have successfully entered the Layer indication in print with ;LAYER:[layer_num]

But it would be useful to include in the initial G-Code also the total printing time and the total of the layers

Is there already any command or function to do this? Or you can insert it in future releases?

Sorry for my english

MrSimmmons commented 2 years ago

+1 would be cool. or better yet, the ability to see the total amount of layers in the UI maybe in the Sliced Info section at the bottom right Turns out I was actually just blind and the total amount of layers is already in the UI. Would still be cool to see it in the gcode file though :)

foreachthing commented 2 years ago

Where do you want it? ;-) This can easily be added with post processing, like with this: https://github.com/foreachthing/Slic3rPostProcessing/.

foreachthing commented 2 years ago

I've just added an option to my spp script to add the total layer count.

before:

; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.35mm
; first layer extrusion width = 0.50mm

M107 ; disable fan

After:

; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
; support material extrusion width = 0.35mm
; first layer extrusion width = 0.50mm
; total number of layers: 64

M107 ; disable fan
spikeygg commented 1 year ago

Hi,

I would need to insert in the personalized G-Code the total number of Layers of a print and the time to complete it. I have successfully entered the Layer indication in print with ;LAYER:[layer_num]

But it would be useful to include in the initial G-Code also the total printing time and the total of the layers

Is there already any command or function to do this? Or you can insert it in future releases?

Sorry for my english

If you add this to one of your Start or End G-code areas you'll see the value in the comments: image

You can populate a bunch of different values using the g-code variables / placeholders found here: https://help.prusa3d.com/article/list-of-placeholders_205643

Just need to use curly braces {} or square brackets [] to have it resolved into the value.