From 9920b2cb7a89f39b150b02eca487e422d8ced57c Mon Sep 17 00:00:00 2001 From: QIDI TECH <893239786@qq.com> Date: Wed, 14 Jun 2023 14:19:34 +0800 Subject: [PATCH] PrintHint and Optimize parameters --- resources/profiles/QIDITechnology.idx | 3 ++- resources/profiles/QIDITechnology.ini | 31 ++++++++++++++++++++------- src/slic3r/GUI/Plater.cpp | 24 +++++++++++++++++++++ 3 files changed, 49 insertions(+), 9 deletions(-) diff --git a/resources/profiles/QIDITechnology.idx b/resources/profiles/QIDITechnology.idx index 9b1a12e..c94cd21 100644 --- a/resources/profiles/QIDITechnology.idx +++ b/resources/profiles/QIDITechnology.idx @@ -1,3 +1,4 @@ +min_slic3r_version = 1.0.1 +1.0.1 Optimize parameters min_slic3r_version = 1.0.0 -1.0.1 Initial 1.0.0 Initial diff --git a/resources/profiles/QIDITechnology.ini b/resources/profiles/QIDITechnology.ini index d72aac3..474cee1 100644 --- a/resources/profiles/QIDITechnology.ini +++ b/resources/profiles/QIDITechnology.ini @@ -5,7 +5,7 @@ name = QIDI Technology # Configuration version of this file. Config file will only be installed, if the config_version differs. # This means, the server may force the PrusaSlicer configuration to be downgraded. -config_version = 1.0.0 +config_version = 1.0.1 # Where to get the updates from? config_update_url = https://github.com/QIDITECH/QIDISlicer/releases/download/QIDITechnology/ changelog_url = https://qidi3d.com/pages/software-firmware @@ -268,6 +268,7 @@ solid_infill_speed = 230 # Common filament preset [filament:*common*] +advance_pressure = 0.032 bed_temperature = 60 bridge_fan_speed = 100 compatible_printers = @@ -276,9 +277,11 @@ compatible_prints = compatible_prints_condition = cooling = 1 disable_fan_first_layers = 1 -enable_dynamic_fan_speeds = 0 +enable_advance_pressure = 1 enable_auxiliary_fan = 100 -end_filament_gcode = "; Filament-specific end gcode \n;END gcode for filament\nM106 P3 S0" +enable_dynamic_fan_speeds = 0 +enable_volume_fan = 100 +end_filament_gcode = "; Filament-specific end gcode \n;END gcode for filament\n" extrusion_multiplier = 0.98 fan_always_on = 1 fan_below_layer_time = 60 @@ -330,7 +333,8 @@ overhang_fan_speed_1 = 0 overhang_fan_speed_2 = 0 overhang_fan_speed_3 = 0 slowdown_below_layer_time = 5 -start_filament_gcode = "; Filament gcode\nM106 P3 S255" +smooth_time = 0.03 +start_filament_gcode = "; Filament gcode\n" temperature = 220 volume_temperature = 0 @@ -339,6 +343,7 @@ volume_temperature = 0 inherits = *common* bed_temperature = 100 enable_auxiliary_fan = 0 +enable_volume_fan = 0 extrusion_multiplier = 0.95 filament_colour = #FFC800 filament_density = 1.02 @@ -348,7 +353,6 @@ first_layer_bed_temperature = 100 first_layer_temperature = 270 max_fan_speed = 60 min_fan_speed = 60 -start_filament_gcode = "; Filament gcode\nM106 P3 S0" temperature = 270 volume_temperature = 55 @@ -356,6 +360,7 @@ volume_temperature = 55 inherits = *common* bed_temperature = 100 enable_auxiliary_fan = 0 +enable_volume_fan = 0 extrusion_multiplier = 0.95 filament_colour = #282828 filament_density = 1.15 @@ -365,7 +370,6 @@ first_layer_bed_temperature = 100 first_layer_temperature = 270 max_fan_speed = 20 min_fan_speed = 20 -start_filament_gcode = "; Filament gcode\nM106 P3 S0" temperature = 270 volume_temperature = 55 @@ -458,6 +462,7 @@ temperature = 280 inherits = *common* bed_temperature = 100 enable_auxiliary_fan = 0 +enable_volume_fan = 0 extrusion_multiplier = 0.95 filament_colour = #FFFF00 filament_density = 1.04 @@ -468,7 +473,6 @@ first_layer_bed_temperature = 100 first_layer_temperature = 260 max_fan_speed = 60 min_fan_speed = 60 -start_filament_gcode = "; Filament gcode\nM106 P3 S0" temperature = 260 [filament:*Generic PETG*] @@ -500,7 +504,7 @@ extrusion_multiplier = 1 filament_colour = #8000FF filament_density = 1.21 filament_max_volumetric_speed = 3.2 -filament_type = TPU 95A +filament_type = TPU filament_vendor = Generic first_layer_temperature = 230 temperature = 230 @@ -617,35 +621,46 @@ compatible_printers_condition = printer_model=="X-Plus 3" [filament:QIDI ABS Rapido @X-smart 3] inherits = *QIDI ABS Rapido* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 20 [filament:QIDI PETG-Tough @X-smart 3] inherits = *QIDI PETG-Tough* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 13 [filament:QIDI PLA Rapido @X-smart 3] inherits = *QIDI PLA Rapido* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 19 +slowdown_below_layer_time = 8 [filament:QIDI PLA Rapido Matte @X-smart 3] inherits = *QIDI PLA Rapido Matte* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 20 +slowdown_below_layer_time = 8 # X-smart 3 Generic filament preset [filament:Generic ABS @X-smart 3] inherits = *Generic ABS* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 14 [filament:Generic PETG @X-smart 3] inherits = *Generic PETG* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 8 [filament:Generic PLA @X-smart 3] inherits = *Generic PLA* compatible_printers_condition = printer_model=="X-smart 3" +filament_max_volumetric_speed = 10 +slowdown_below_layer_time = 8 [filament:Generic TPU 95A @X-smart 3] inherits = *Generic TPU 95A* compatible_printers_condition = printer_model=="X-smart 3" +slowdown_below_layer_time = 8 # Common printer preset [printer:*common*] diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index c5e7948..c0f8e7f 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3466,6 +3466,30 @@ void Plater::priv::export_gcode(fs::path output_path, bool output_path_on_remova // If the SLA processing of just a single object's supports is running, restart slicing for the whole object. this->background_process.set_task(PrintBase::TaskParams()); this->restart_background_process(priv::UPDATE_BACKGROUND_PROCESS_FORCE_EXPORT); + + //Y6 PrintHint + std::string filament_type; + bool ShowPrintHint = false; + const PrintStatistics& ps = this->fff_print.print_statistics(); + const auto& extruders_filaments = wxGetApp().preset_bundle->extruders_filaments; + std::list FilamentsHintList = {"PETG", "PLA", "TPU"}; + + for (const auto& [filament_id, filament_vol] : ps.filament_stats) { + assert(filament_id < extruders_filaments.size()); + if (const Preset* preset = extruders_filaments[filament_id].get_selected_preset()) { + filament_type = preset->config.opt_string("filament_type", filament_id); + if (std::find(FilamentsHintList.begin(), FilamentsHintList.end(), filament_type) != FilamentsHintList.end()) { + ShowPrintHint = true; + break; + } + } + } + + if (ShowPrintHint) { + std::string message; + message = _u8L("Opening the front door and top cover before printing can improve heat dissipation, obtain better print quality, and prevent extruder blockage."); + notification_manager->push_notification(message); + } } unsigned int Plater::priv::update_restart_background_process(bool force_update_scene, bool force_update_preview)