Filament name added to gcode file name
 
Notifications
Clear all

Filament name added to gcode file name  

  RSS
Tracy
(@tracy)
Trusted Member
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.

Posted : 19/03/2020 9:15 pm
Neophyl
(@neophyl)
Illustrious Member
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.

Posted : 19/03/2020 10:19 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: Filament name added to gcode file name
Posted by: @tracy

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.

Posted : 20/03/2020 12:39 am
bobstro
(@bobstro)
Illustrious Member
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.

My notes and disclaimers on 3D printing

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

Posted : 20/03/2020 5:52 am
Tracy
(@tracy)
Trusted Member
Topic starter answered:
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.

Posted : 20/03/2020 8:09 pm
Splinter-Printer
(@splinter-printer)
New Member
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.

Posted : 10/05/2020 1:36 pm
MrMaus and liked
Tracy
(@tracy)
Trusted Member
Topic starter answered:
RE: Filament name added to gcode file name
Posted by: @splinter-printer

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!

Posted : 10/05/2020 10:48 pm
Smokebeast
(@smokebeast)
Member
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.

Posted : 22/11/2023 9:06 am
Share: