Add custom export name in g-code
This commit is contained in:
@@ -2554,7 +2554,13 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
if(!has_BTT_thumbnail){
|
||||
file.write_format("; HEADER_BLOCK_START\n");
|
||||
// Write information on the generator.
|
||||
file.write_format("; generated by %s on %s\n", Slic3r::header_slic3r_generated().c_str(), Slic3r::Utils::local_timestamp().c_str());
|
||||
std::string generator = Slic3r::header_slic3r_generated();
|
||||
const ConfigOptionString *printer_agent = print.config().option<ConfigOptionString>("printer_agent");
|
||||
const ConfigOptionString *printer_model = print.config().option<ConfigOptionString>("printer_model");
|
||||
if ((printer_agent != nullptr && printer_agent->value == "snapmaker") ||
|
||||
(printer_model != nullptr && printer_model->value.rfind("Snapmaker ", 0) == 0))
|
||||
generator = std::string("Snapmaker OrcaSlicer ImageMap exporter ") + SoftFever_VERSION;
|
||||
file.write_format("; generated by %s on %s\n", generator.c_str(), Slic3r::Utils::local_timestamp().c_str());
|
||||
if (is_bbl_printers)
|
||||
file.write_format(";%s\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Estimated_Printing_Time_Placeholder).c_str());
|
||||
//BBS: total layer number
|
||||
|
||||
Reference in New Issue
Block a user