Filament name added to gcode file name
Is it possible to have the name of the filament appear in the generated gcode file name? I'm referring to Output filename format under Print Settings. I was hoping {filament_name} would do the trick but no such luck. I'm looking for an end result of something like this: 0.15mm_Prusa_PLA_1h43m.gcode.
Best Answer by Splinter-Printer:
try this one out: {filament_settings_id[0]}
It gives you the name of the filamentsetting as you have saved it.
RE: Filament name added to gcode file name
Heres the entry from a mk3 optimal profile {input_filename_base}_{layer_height}mm_{filament_type[0]}_{printer_model}_{print_time}.gcode
As you can see it uses {filament_type[0]}, I think the numerical designator is for the extruder number, so filament type from extruder 0.
RE: Filament name added to gcode file name
Is it possible to have the name of the filament appear in the generated gcode file name? I'm referring to Output filename format under Print Settings. I was hoping {filament_name} would do the trick but no such luck. I'm looking for an end result of something like this: 0.15mm_Prusa_PLA_1h43m.gcode.
With the parameter {notes} you can define and use free text (Print Settings -> Notes) in the output filename.
Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.
RE: Filament name added to gcode file name
You can use [filament_type] and [filament_vendor] in the Print Settings->Output options->Output file->Output filename format field. Unfortunately, there doesn't seem to be a field to enter actual vendor names in the Filament Settings tab.
and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan
RE: Filament name added to gcode file name
I appreciate the replies but unfortunately none of these are what I'm looking for. {filament_type[0]} produces "PLA" but not the vendor. Using {notes} requires multiple print settings that are identical except for the Notes field. {filament_vendor} would have been perfect except, as pointed out, there's no place on the Filament Settings tab to specify the vendor.
RE: Filament name added to gcode file name
try this one out: {filament_settings_id[0]}
It gives you the name of the filamentsetting as you have saved it.
RE: Filament name added to gcode file name
try this one out: {filament_settings_id[0]}
It gives you the name of the filamentsetting as you have saved it.
That works! Thank you!
RE: Filament name added to gcode file name
Just wanted to say thank you.
I was trying to figure this out with the list of variables I found on the Prusa knowledge base but none of those worked. Your's worked perfectly!!
Now I no longer have to rename my gcode files each time I export, which is several times a day.