WIP: SL1 profiles, SL1 in wizard, switching between FFF / SLA
This commit is contained in:
parent
66e97aa4eb
commit
fd1c5dd218
BIN
resources/icons/printers/PrusaResearch_MK2.5MMU2.png
Normal file
BIN
resources/icons/printers/PrusaResearch_MK2.5MMU2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
BIN
resources/icons/printers/PrusaResearch_SL1.png
Normal file
BIN
resources/icons/printers/PrusaResearch_SL1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
@ -1,3 +1,5 @@
|
|||||||
|
min_slic3r_version = 1.42.0-alpha
|
||||||
|
0.4.0-alpha2 First SLA profiles
|
||||||
min_slic3r_version = 1.41.0-alpha
|
min_slic3r_version = 1.41.0-alpha
|
||||||
0.2.2 Edited MMU2 Single mode purge line
|
0.2.2 Edited MMU2 Single mode purge line
|
||||||
0.2.1 Added PET and BVOH settings for MMU2
|
0.2.1 Added PET and BVOH settings for MMU2
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
name = Prusa Research
|
name = Prusa Research
|
||||||
# Configuration version of this file. Config file will only be installed, if the config_version differs.
|
# Configuration version of this file. Config file will only be installed, if the config_version differs.
|
||||||
# This means, the server may force the Slic3r configuration to be downgraded.
|
# This means, the server may force the Slic3r configuration to be downgraded.
|
||||||
config_version = 0.2.2
|
config_version = 0.4.0-alpha2
|
||||||
# Where to get the updates from?
|
# Where to get the updates from?
|
||||||
config_update_url = https://raw.githubusercontent.com/prusa3d/Slic3r-settings/master/live/PrusaResearch/
|
config_update_url = https://raw.githubusercontent.com/prusa3d/Slic3r-settings/master/live/PrusaResearch/
|
||||||
|
|
||||||
@ -35,6 +35,14 @@ variants = 0.4
|
|||||||
name = Original Prusa i3 MK2/S MMU 1.0
|
name = Original Prusa i3 MK2/S MMU 1.0
|
||||||
variants = 0.4; 0.6
|
variants = 0.4; 0.6
|
||||||
|
|
||||||
|
[printer_model:MK2.5MMU2]
|
||||||
|
name = Original Prusa i3 MK2.5 MMU 2.0
|
||||||
|
variants = 0.4
|
||||||
|
|
||||||
|
[printer_model:SL1]
|
||||||
|
name = Original Prusa SL1
|
||||||
|
variants = default; dummy
|
||||||
|
|
||||||
# All presets starting with asterisk, for example *common*, are intermediate and they will
|
# All presets starting with asterisk, for example *common*, are intermediate and they will
|
||||||
# not make it into the user interface.
|
# not make it into the user interface.
|
||||||
|
|
||||||
@ -181,7 +189,6 @@ support_material_interface_spacing = 0.1
|
|||||||
support_material_synchronize_layers = 1
|
support_material_synchronize_layers = 1
|
||||||
support_material_threshold = 80
|
support_material_threshold = 80
|
||||||
support_material_with_sheath = 1
|
support_material_with_sheath = 1
|
||||||
wipe_tower = 1
|
|
||||||
|
|
||||||
# XXXXXXXXXXXXXXXXXXXX
|
# XXXXXXXXXXXXXXXXXXXX
|
||||||
# XXX--- 0.05mm ---XXX
|
# XXX--- 0.05mm ---XXX
|
||||||
@ -329,7 +336,7 @@ top_solid_layers = 7
|
|||||||
[print:0.15mm 100mms Linear Advance]
|
[print:0.15mm 100mms Linear Advance]
|
||||||
inherits = *0.15mm*
|
inherits = *0.15mm*
|
||||||
bridge_flow_ratio = 0.95
|
bridge_flow_ratio = 0.95
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4
|
||||||
external_perimeter_speed = 50
|
external_perimeter_speed = 50
|
||||||
infill_speed = 100
|
infill_speed = 100
|
||||||
max_print_speed = 150
|
max_print_speed = 150
|
||||||
@ -341,7 +348,7 @@ top_solid_infill_speed = 70
|
|||||||
|
|
||||||
[print:0.15mm OPTIMAL]
|
[print:0.15mm OPTIMAL]
|
||||||
inherits = *0.15mm*
|
inherits = *0.15mm*
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4
|
||||||
top_infill_extrusion_width = 0.45
|
top_infill_extrusion_width = 0.45
|
||||||
|
|
||||||
[print:0.15mm OPTIMAL 0.25 nozzle]
|
[print:0.15mm OPTIMAL 0.25 nozzle]
|
||||||
@ -374,16 +381,33 @@ perimeter_speed = 45
|
|||||||
solid_infill_speed = 200
|
solid_infill_speed = 200
|
||||||
top_solid_infill_speed = 50
|
top_solid_infill_speed = 50
|
||||||
|
|
||||||
|
[print:0.15mm OPTIMAL MK3 SOLUBLE FULL]
|
||||||
|
inherits = 0.15mm OPTIMAL MK3; *soluble_support*
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
||||||
|
support_material_extruder = 5
|
||||||
|
support_material_interface_extruder = 5
|
||||||
|
perimeter_speed = 40
|
||||||
|
solid_infill_speed = 40
|
||||||
|
top_infill_extrusion_width = 0.45
|
||||||
|
top_solid_infill_speed = 30
|
||||||
|
|
||||||
|
[print:0.15mm OPTIMAL MK3 SOLUBLE INTERFACE]
|
||||||
|
inherits = 0.15mm OPTIMAL MK3 SOLUBLE FULL
|
||||||
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft interface extruder
|
||||||
|
support_material_extruder = 0
|
||||||
|
support_material_interface_layers = 3
|
||||||
|
support_material_with_sheath = 0
|
||||||
|
|
||||||
[print:0.15mm OPTIMAL SOLUBLE FULL]
|
[print:0.15mm OPTIMAL SOLUBLE FULL]
|
||||||
inherits = *0.15mm*; *soluble_support*
|
inherits = *0.15mm*; *soluble_support*
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
external_perimeter_speed = 25
|
external_perimeter_speed = 25
|
||||||
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
||||||
perimeter_speed = 40
|
perimeter_speed = 40
|
||||||
solid_infill_speed = 40
|
solid_infill_speed = 40
|
||||||
top_infill_extrusion_width = 0.45
|
top_infill_extrusion_width = 0.45
|
||||||
top_solid_infill_speed = 30
|
top_solid_infill_speed = 30
|
||||||
wipe_tower = 1
|
|
||||||
|
|
||||||
[print:0.15mm OPTIMAL SOLUBLE INTERFACE]
|
[print:0.15mm OPTIMAL SOLUBLE INTERFACE]
|
||||||
inherits = 0.15mm OPTIMAL SOLUBLE FULL
|
inherits = 0.15mm OPTIMAL SOLUBLE FULL
|
||||||
@ -404,6 +428,7 @@ max_print_speed = 200
|
|||||||
perimeter_speed = 45
|
perimeter_speed = 45
|
||||||
solid_infill_speed = 200
|
solid_infill_speed = 200
|
||||||
top_solid_infill_speed = 50
|
top_solid_infill_speed = 50
|
||||||
|
|
||||||
[print:*0.20mm*]
|
[print:*0.20mm*]
|
||||||
inherits = *common*
|
inherits = *common*
|
||||||
bottom_solid_layers = 4
|
bottom_solid_layers = 4
|
||||||
@ -436,7 +461,7 @@ top_solid_infill_speed = 50
|
|||||||
|
|
||||||
[print:0.20mm 100mms Linear Advance]
|
[print:0.20mm 100mms Linear Advance]
|
||||||
inherits = *0.20mm*
|
inherits = *0.20mm*
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4
|
||||||
external_perimeter_speed = 50
|
external_perimeter_speed = 50
|
||||||
infill_speed = 100
|
infill_speed = 100
|
||||||
max_print_speed = 150
|
max_print_speed = 150
|
||||||
@ -458,9 +483,27 @@ perimeter_speed = 45
|
|||||||
solid_infill_speed = 200
|
solid_infill_speed = 200
|
||||||
top_solid_infill_speed = 50
|
top_solid_infill_speed = 50
|
||||||
|
|
||||||
|
[print:0.20mm FAST MK3 SOLUBLE FULL]
|
||||||
|
inherits = 0.20mm FAST MK3; *soluble_support*
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
||||||
|
support_material_extruder = 5
|
||||||
|
support_material_interface_extruder = 5
|
||||||
|
perimeter_speed = 40
|
||||||
|
solid_infill_speed = 40
|
||||||
|
top_infill_extrusion_width = 0.45
|
||||||
|
top_solid_infill_speed = 30
|
||||||
|
|
||||||
|
[print:0.20mm FAST MK3 SOLUBLE INTERFACE]
|
||||||
|
inherits = 0.20mm FAST MK3 SOLUBLE FULL
|
||||||
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft interface extruder
|
||||||
|
support_material_extruder = 0
|
||||||
|
support_material_interface_layers = 3
|
||||||
|
support_material_with_sheath = 0
|
||||||
|
|
||||||
[print:0.20mm NORMAL]
|
[print:0.20mm NORMAL]
|
||||||
inherits = *0.20mm*
|
inherits = *0.20mm*
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4
|
||||||
|
|
||||||
[print:0.20mm NORMAL 0.6 nozzle]
|
[print:0.20mm NORMAL 0.6 nozzle]
|
||||||
inherits = *0.20mm*; *0.6nozzle*
|
inherits = *0.20mm*; *0.6nozzle*
|
||||||
@ -468,7 +511,7 @@ compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and
|
|||||||
|
|
||||||
[print:0.20mm NORMAL SOLUBLE FULL]
|
[print:0.20mm NORMAL SOLUBLE FULL]
|
||||||
inherits = *0.20mm*; *soluble_support*
|
inherits = *0.20mm*; *soluble_support*
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
external_perimeter_speed = 30
|
external_perimeter_speed = 30
|
||||||
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
notes = Set your solluble extruder in Multiple Extruders > Support material/raft/skirt extruder & Support material/raft interface extruder
|
||||||
perimeter_speed = 40
|
perimeter_speed = 40
|
||||||
@ -519,7 +562,7 @@ top_solid_layers = 4
|
|||||||
[print:0.35mm FAST]
|
[print:0.35mm FAST]
|
||||||
inherits = *0.35mm*
|
inherits = *0.35mm*
|
||||||
bridge_flow_ratio = 0.95
|
bridge_flow_ratio = 0.95
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.*/ and nozzle_diameter[0]==0.4
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2[^\.].*/ and nozzle_diameter[0]==0.4
|
||||||
first_layer_extrusion_width = 0.42
|
first_layer_extrusion_width = 0.42
|
||||||
perimeter_extrusion_width = 0.43
|
perimeter_extrusion_width = 0.43
|
||||||
solid_infill_extrusion_width = 0.7
|
solid_infill_extrusion_width = 0.7
|
||||||
@ -547,6 +590,53 @@ support_material_interface_layers = 2
|
|||||||
support_material_with_sheath = 0
|
support_material_with_sheath = 0
|
||||||
support_material_xy_spacing = 150%
|
support_material_xy_spacing = 150%
|
||||||
|
|
||||||
|
# XXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
# XXX----- MK2.5 ----XXX
|
||||||
|
# XXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
|
||||||
|
[print:0.15mm 100mms Linear Advance MK2.5]
|
||||||
|
inherits = 0.15mm 100mms Linear Advance
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.15mm OPTIMAL MK2.5]
|
||||||
|
inherits = 0.15mm OPTIMAL
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.15mm OPTIMAL SOLUBLE FULL MK2.5]
|
||||||
|
inherits = 0.15mm OPTIMAL SOLUBLE FULL
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
|
||||||
|
[print:0.15mm OPTIMAL SOLUBLE INTERFACE MK2.5]
|
||||||
|
inherits = 0.15mm OPTIMAL SOLUBLE INTERFACE
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
|
||||||
|
[print:0.20mm 100mms Linear Advance MK2.5]
|
||||||
|
inherits = 0.20mm 100mms Linear Advance
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.20mm NORMAL MK2.5]
|
||||||
|
inherits = 0.20mm NORMAL
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.20mm NORMAL SOLUBLE FULL MK2.5]
|
||||||
|
inherits = 0.20mm NORMAL SOLUBLE FULL
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.20mm NORMAL SOLUBLE INTERFACE MK2.5]
|
||||||
|
inherits = 0.20mm NORMAL SOLUBLE INTERFACE
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4 and num_extruders>1
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
|
[print:0.35mm FAST MK2.5]
|
||||||
|
inherits = 0.35mm FAST
|
||||||
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK2.5.*/ and nozzle_diameter[0]==0.4
|
||||||
|
single_extruder_multi_material_priming = 0
|
||||||
|
|
||||||
# XXXXXXxxXXXXXXXXXXXXXX
|
# XXXXXXxxXXXXXXXXXXXXXX
|
||||||
# XXX--- filament ---XXX
|
# XXX--- filament ---XXX
|
||||||
# XXXXXXXXxxXXXXXXXXXXXX
|
# XXXXXXXXxxXXXXXXXXXXXX
|
||||||
@ -555,7 +645,7 @@ support_material_xy_spacing = 150%
|
|||||||
cooling = 1
|
cooling = 1
|
||||||
compatible_printers =
|
compatible_printers =
|
||||||
# For now, all but selected filaments are disabled for the MMU 2.0
|
# For now, all but selected filaments are disabled for the MMU 2.0
|
||||||
compatible_printers_condition = ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material)
|
compatible_printers_condition = ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material)
|
||||||
end_filament_gcode = "; Filament-specific end gcode"
|
end_filament_gcode = "; Filament-specific end gcode"
|
||||||
extrusion_multiplier = 1
|
extrusion_multiplier = 1
|
||||||
filament_loading_speed = 28
|
filament_loading_speed = 28
|
||||||
@ -655,7 +745,7 @@ temperature = 240
|
|||||||
[filament:ColorFabb Brass Bronze]
|
[filament:ColorFabb Brass Bronze]
|
||||||
inherits = *PLA*
|
inherits = *PLA*
|
||||||
# For now, all but selected filaments are disabled for the MMU 2.0
|
# For now, all but selected filaments are disabled for the MMU 2.0
|
||||||
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material)
|
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material)
|
||||||
extrusion_multiplier = 1.2
|
extrusion_multiplier = 1.2
|
||||||
filament_cost = 80.65
|
filament_cost = 80.65
|
||||||
filament_density = 4
|
filament_density = 4
|
||||||
@ -687,7 +777,7 @@ filament_density = 1.24
|
|||||||
[filament:ColorFabb Woodfil]
|
[filament:ColorFabb Woodfil]
|
||||||
inherits = *PLA*
|
inherits = *PLA*
|
||||||
# For now, all but selected filaments are disabled for the MMU 2.0
|
# For now, all but selected filaments are disabled for the MMU 2.0
|
||||||
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material)
|
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material)
|
||||||
extrusion_multiplier = 1.2
|
extrusion_multiplier = 1.2
|
||||||
filament_cost = 62.9
|
filament_cost = 62.9
|
||||||
filament_density = 1.15
|
filament_density = 1.15
|
||||||
@ -789,7 +879,7 @@ temperature = 275
|
|||||||
[filament:Fillamentum Timberfil]
|
[filament:Fillamentum Timberfil]
|
||||||
inherits = *PLA*
|
inherits = *PLA*
|
||||||
# For now, all but selected filaments are disabled for the MMU 2.0
|
# For now, all but selected filaments are disabled for the MMU 2.0
|
||||||
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material)
|
compatible_printers_condition = nozzle_diameter[0]>0.35 and ! (printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material)
|
||||||
extrusion_multiplier = 1.2
|
extrusion_multiplier = 1.2
|
||||||
filament_cost = 68
|
filament_cost = 68
|
||||||
filament_density = 1.15
|
filament_density = 1.15
|
||||||
@ -851,7 +941,7 @@ filament_notes = "List of materials tested with standart ABS print settings for
|
|||||||
|
|
||||||
[filament:*ABS MMU2*]
|
[filament:*ABS MMU2*]
|
||||||
inherits = Prusa ABS
|
inherits = Prusa ABS
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material
|
||||||
filament_cooling_final_speed = 50
|
filament_cooling_final_speed = 50
|
||||||
filament_cooling_initial_speed = 10
|
filament_cooling_initial_speed = 10
|
||||||
filament_cooling_moves = 5
|
filament_cooling_moves = 5
|
||||||
@ -889,7 +979,7 @@ filament_notes = "List of manufacturers tested with standart PET print settings
|
|||||||
|
|
||||||
[filament:*PET MMU2*]
|
[filament:*PET MMU2*]
|
||||||
inherits = Prusa PET
|
inherits = Prusa PET
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material
|
||||||
temperature = 230
|
temperature = 230
|
||||||
first_layer_temperature = 230
|
first_layer_temperature = 230
|
||||||
filament_cooling_final_speed = 1
|
filament_cooling_final_speed = 1
|
||||||
@ -915,9 +1005,16 @@ filament_cost = 25.4
|
|||||||
filament_density = 1.24
|
filament_density = 1.24
|
||||||
filament_notes = "List of materials tested with standart PLA print settings for MK2:\n\nDas Filament\nEsun PLA\nEUMAKERS PLA\nFiberlogy HD-PLA\nFillamentum PLA\nFloreon3D\nHatchbox PLA\nPlasty Mladeč PLA\nPrimavalue PLA\nProto pasta Matte Fiber\nVerbatim PLA\nVerbatim BVOH"
|
filament_notes = "List of materials tested with standart PLA print settings for MK2:\n\nDas Filament\nEsun PLA\nEUMAKERS PLA\nFiberlogy HD-PLA\nFillamentum PLA\nFloreon3D\nHatchbox PLA\nPlasty Mladeč PLA\nPrimavalue PLA\nProto pasta Matte Fiber\nVerbatim PLA\nVerbatim BVOH"
|
||||||
|
|
||||||
|
[filament:Prusament PLA]
|
||||||
|
inherits = *PLA*
|
||||||
|
temperature = 215
|
||||||
|
filament_cost = 24.99
|
||||||
|
filament_density = 1.24
|
||||||
|
filament_notes = "Affordable filament for everyday printing in premium quality manufactured in-house by Josef Prusa"
|
||||||
|
|
||||||
[filament:*PLA MMU2*]
|
[filament:*PLA MMU2*]
|
||||||
inherits = Prusa PLA
|
inherits = Prusa PLA
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material
|
||||||
temperature = 205
|
temperature = 205
|
||||||
filament_cooling_final_speed = 1
|
filament_cooling_final_speed = 1
|
||||||
filament_cooling_initial_speed = 2
|
filament_cooling_initial_speed = 2
|
||||||
@ -934,6 +1031,9 @@ inherits = *PLA MMU2*
|
|||||||
[filament:Prusa PLA MMU2]
|
[filament:Prusa PLA MMU2]
|
||||||
inherits = *PLA MMU2*
|
inherits = *PLA MMU2*
|
||||||
|
|
||||||
|
[filament:Prusament PLA MMU2]
|
||||||
|
inherits = *PLA MMU2*
|
||||||
|
|
||||||
[filament:SemiFlex or Flexfill 98A]
|
[filament:SemiFlex or Flexfill 98A]
|
||||||
inherits = *FLEX*
|
inherits = *FLEX*
|
||||||
filament_cost = 82
|
filament_cost = 82
|
||||||
@ -998,7 +1098,7 @@ temperature = 210
|
|||||||
|
|
||||||
[filament:Verbatim BVOH MMU2]
|
[filament:Verbatim BVOH MMU2]
|
||||||
inherits = Verbatim BVOH
|
inherits = Verbatim BVOH
|
||||||
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK3.*/ and single_extruder_multi_material
|
compatible_printers_condition = printer_notes=~/.*PRINTER_VENDOR_PRUSA3D.*/ and printer_notes=~/.*PRINTER_MODEL_MK(2.5|3).*/ and single_extruder_multi_material
|
||||||
temperature = 195
|
temperature = 195
|
||||||
filament_notes = BVOH
|
filament_notes = BVOH
|
||||||
fan_always_on = 1
|
fan_always_on = 1
|
||||||
@ -1037,7 +1137,22 @@ min_fan_speed = 100
|
|||||||
start_filament_gcode = "M900 K{if printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}200{else}10{endif}; Filament gcode"
|
start_filament_gcode = "M900 K{if printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}200{else}10{endif}; Filament gcode"
|
||||||
temperature = 220
|
temperature = 220
|
||||||
|
|
||||||
|
[sla_material:*common*]
|
||||||
|
layer_height = 0.05
|
||||||
|
initial_layer_height = 0.3
|
||||||
|
exposure_time = 10
|
||||||
|
initial_exposure_time = 15
|
||||||
|
material_correction_printing = 1, 1, 1
|
||||||
|
material_correction_curing = 1, 1, 1
|
||||||
|
|
||||||
|
[sla_material:Material 1]
|
||||||
|
inherits = *common*
|
||||||
|
|
||||||
|
[sla_material:Material 2]
|
||||||
|
inherits = *common*
|
||||||
|
|
||||||
[printer:*common*]
|
[printer:*common*]
|
||||||
|
printer_technology = FFF
|
||||||
bed_shape = 0x0,250x0,250x210,0x210
|
bed_shape = 0x0,250x0,250x210,0x210
|
||||||
before_layer_gcode = ;BEFORE_LAYER_CHANGE\nG92 E0.0\n;[layer_z]\n\n
|
before_layer_gcode = ;BEFORE_LAYER_CHANGE\nG92 E0.0\n;[layer_z]\n\n
|
||||||
between_objects_gcode =
|
between_objects_gcode =
|
||||||
@ -1098,7 +1213,7 @@ z_offset = 0
|
|||||||
printer_model = MK2S
|
printer_model = MK2S
|
||||||
printer_variant = 0.4
|
printer_variant = 0.4
|
||||||
default_print_profile = 0.15mm OPTIMAL
|
default_print_profile = 0.15mm OPTIMAL
|
||||||
default_filament_profile = Prusa PLA
|
default_filament_profile = Prusament PLA
|
||||||
|
|
||||||
[printer:*multimaterial*]
|
[printer:*multimaterial*]
|
||||||
inherits = *common*
|
inherits = *common*
|
||||||
@ -1193,19 +1308,83 @@ default_print_profile = 0.20mm NORMAL 0.6 nozzle
|
|||||||
inherits = Original Prusa i3 MK2
|
inherits = Original Prusa i3 MK2
|
||||||
printer_model = MK2.5
|
printer_model = MK2.5
|
||||||
remaining_times = 1
|
remaining_times = 1
|
||||||
start_gcode = M115 U3.3.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
start_gcode = M115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
||||||
|
|
||||||
|
[printer:Original Prusa i3 MK2.5 MMU2 Single]
|
||||||
|
inherits = Original Prusa i3 MK2.5; *mm2*
|
||||||
|
printer_model = MK2.5MMU2
|
||||||
|
single_extruder_multi_material = 0
|
||||||
|
max_print_height = 200
|
||||||
|
remaining_times = 1
|
||||||
|
silent_mode = 0
|
||||||
|
retract_lift_below = 199
|
||||||
|
machine_max_acceleration_e = 10000
|
||||||
|
machine_max_acceleration_extruding = 2000
|
||||||
|
machine_max_acceleration_retracting = 1500
|
||||||
|
machine_max_acceleration_x = 9000
|
||||||
|
machine_max_acceleration_y = 9000
|
||||||
|
machine_max_acceleration_z = 500
|
||||||
|
machine_max_feedrate_e = 120
|
||||||
|
machine_max_feedrate_x = 500
|
||||||
|
machine_max_feedrate_y = 500
|
||||||
|
machine_max_feedrate_z = 12
|
||||||
|
machine_max_jerk_e = 2.5
|
||||||
|
machine_max_jerk_x = 10
|
||||||
|
machine_max_jerk_y = 10
|
||||||
|
machine_max_jerk_z = 0.2
|
||||||
|
machine_min_extruding_rate = 0
|
||||||
|
machine_min_travel_rate = 0
|
||||||
|
default_print_profile = 0.15mm OPTIMAL MK2.5
|
||||||
|
default_filament_profile = Prusament PLA
|
||||||
|
printer_notes = Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.\nPRINTER_VENDOR_PRUSA3D\nPRINTER_MODEL_MK2.5\n
|
||||||
|
start_gcode = M107\nM115 U3.4.2 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\n\nG21 ; set units to millimeters\n\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT?\n; purge line\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
||||||
|
end_gcode = G1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\nG1 X0 Y200; home X axis\nM84 ; disable motors
|
||||||
|
|
||||||
|
[printer:Original Prusa i3 MK2.5 MMU2]
|
||||||
|
inherits = Original Prusa i3 MK2.5; *mm2*
|
||||||
|
printer_model = MK2.5MMU2
|
||||||
|
max_print_height = 200
|
||||||
|
remaining_times = 1
|
||||||
|
silent_mode = 0
|
||||||
|
retract_lift_below = 199
|
||||||
|
machine_max_acceleration_e = 10000
|
||||||
|
machine_max_acceleration_extruding = 2000
|
||||||
|
machine_max_acceleration_retracting = 1500
|
||||||
|
machine_max_acceleration_x = 9000
|
||||||
|
machine_max_acceleration_y = 9000
|
||||||
|
machine_max_acceleration_z = 500
|
||||||
|
machine_max_feedrate_e = 120
|
||||||
|
machine_max_feedrate_x = 500
|
||||||
|
machine_max_feedrate_y = 500
|
||||||
|
machine_max_feedrate_z = 12
|
||||||
|
machine_max_jerk_e = 2.5
|
||||||
|
machine_max_jerk_x = 10
|
||||||
|
machine_max_jerk_y = 10
|
||||||
|
machine_max_jerk_z = 0.2
|
||||||
|
machine_min_extruding_rate = 0
|
||||||
|
machine_min_travel_rate = 0
|
||||||
|
default_print_profile = 0.15mm OPTIMAL MK2.5
|
||||||
|
printer_notes = Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.\nPRINTER_VENDOR_PRUSA3D\nPRINTER_MODEL_MK2.5\n
|
||||||
|
single_extruder_multi_material = 1
|
||||||
|
# The 5x nozzle diameter defines the number of extruders. Other extruder parameters
|
||||||
|
# (for example the retract values) are duplicaed from the first value, so they do not need
|
||||||
|
# to be defined explicitely.
|
||||||
|
nozzle_diameter = 0.4,0.4,0.4,0.4,0.4
|
||||||
|
extruder_colour = #FF8000;#0080FF;#00FFFF;#FF4F4F;#9FFF9F
|
||||||
|
start_gcode = M107\nM115 U3.4.2 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG21 ; set units to millimeters\n\n; Send the filament type to the MMU2.0 unit.\n; E stands for extruder number, F stands for filament type (0: default; 1:flex; 2: PVA)\nM403 E0 F{"" + ((filament_type[0]=="FLEX") ? 1 : ((filament_type[0]=="PVA") ? 2 : 0))}\nM403 E1 F{"" + ((filament_type[1]=="FLEX") ? 1 : ((filament_type[1]=="PVA") ? 2 : 0))}\nM403 E2 F{"" + ((filament_type[2]=="FLEX") ? 1 : ((filament_type[2]=="PVA") ? 2 : 0))}\nM403 E3 F{"" + ((filament_type[3]=="FLEX") ? 1 : ((filament_type[3]=="PVA") ? 2 : 0))}\nM403 E4 F{"" + ((filament_type[4]=="FLEX") ? 1 : ((filament_type[4]=="PVA") ? 2 : 0))}\n\n{if not has_single_extruder_multi_material_priming}\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT[initial_tool]\n; initial load\nG1 X55.0 E32.0 F1073.0\nG1 X5.0 E32.0 F1800.0\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\nG92 E0.0\n{endif}\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
||||||
|
end_gcode = {if has_wipe_tower}\nG1 E-15.0000 F3000\n{else}\nG1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n{endif}\n\n; Unload filament\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\n; Lift print head a bit\n{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up\nG1 X0 Y200; home X axis\nM84 ; disable motors\n
|
||||||
|
|
||||||
[printer:Original Prusa i3 MK2.5 0.25 nozzle]
|
[printer:Original Prusa i3 MK2.5 0.25 nozzle]
|
||||||
inherits = Original Prusa i3 MK2 0.25 nozzle
|
inherits = Original Prusa i3 MK2 0.25 nozzle
|
||||||
printer_model = MK2.5
|
printer_model = MK2.5
|
||||||
remaining_times = 1
|
remaining_times = 1
|
||||||
start_gcode = M115 U3.3.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
start_gcode = M115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
||||||
|
|
||||||
[printer:Original Prusa i3 MK2.5 0.6 nozzle]
|
[printer:Original Prusa i3 MK2.5 0.6 nozzle]
|
||||||
inherits = Original Prusa i3 MK2 0.6 nozzle
|
inherits = Original Prusa i3 MK2 0.6 nozzle
|
||||||
printer_model = MK2.5
|
printer_model = MK2.5
|
||||||
remaining_times = 1
|
remaining_times = 1
|
||||||
start_gcode = M115 U3.3.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
start_gcode = M115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0
|
||||||
|
|
||||||
# XXXXXXXXXXXXXXXXX
|
# XXXXXXXXXXXXXXXXX
|
||||||
# XXX--- MK3 ---XXX
|
# XXX--- MK3 ---XXX
|
||||||
@ -1221,8 +1400,8 @@ machine_max_acceleration_x = 1000,960
|
|||||||
machine_max_acceleration_y = 1000,960
|
machine_max_acceleration_y = 1000,960
|
||||||
machine_max_acceleration_z = 1000,1000
|
machine_max_acceleration_z = 1000,1000
|
||||||
machine_max_feedrate_e = 120,120
|
machine_max_feedrate_e = 120,120
|
||||||
machine_max_feedrate_x = 200,172
|
machine_max_feedrate_x = 200,100
|
||||||
machine_max_feedrate_y = 200,172
|
machine_max_feedrate_y = 200,100
|
||||||
machine_max_feedrate_z = 12,12
|
machine_max_feedrate_z = 12,12
|
||||||
machine_max_jerk_e = 1.5,1.5
|
machine_max_jerk_e = 1.5,1.5
|
||||||
machine_max_jerk_x = 8,8
|
machine_max_jerk_x = 8,8
|
||||||
@ -1235,7 +1414,7 @@ remaining_times = 1
|
|||||||
printer_notes = Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.\nPRINTER_VENDOR_PRUSA3D\nPRINTER_MODEL_MK3\n
|
printer_notes = Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.\nPRINTER_VENDOR_PRUSA3D\nPRINTER_MODEL_MK3\n
|
||||||
retract_lift_below = 209
|
retract_lift_below = 209
|
||||||
max_print_height = 210
|
max_print_height = 210
|
||||||
start_gcode = M115 U3.3.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0\nM221 S{if layer_height==0.05}100{else}95{endif}
|
start_gcode = M115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG1 Y-3.0 F1000.0 ; go outside print area\nG92 E0.0\nG1 X60.0 E9.0 F1000.0 ; intro line\nG1 X100.0 E12.5 F1000.0 ; intro line\nG92 E0.0\nM221 S{if layer_height==0.05}100{else}95{endif}
|
||||||
printer_model = MK3
|
printer_model = MK3
|
||||||
default_print_profile = 0.15mm OPTIMAL MK3
|
default_print_profile = 0.15mm OPTIMAL MK3
|
||||||
|
|
||||||
@ -1265,11 +1444,12 @@ retract_length_toolchange = 3
|
|||||||
extra_loading_move = -13
|
extra_loading_move = -13
|
||||||
printer_model = MK3MMU2
|
printer_model = MK3MMU2
|
||||||
default_print_profile = 0.15mm OPTIMAL MK3
|
default_print_profile = 0.15mm OPTIMAL MK3
|
||||||
default_filament_profile = Prusa PLA MMU2
|
default_filament_profile = Prusament PLA MMU2
|
||||||
|
|
||||||
[printer:Original Prusa i3 MK3 MMU2 Single]
|
[printer:Original Prusa i3 MK3 MMU2 Single]
|
||||||
inherits = *mm2*
|
inherits = *mm2*
|
||||||
start_gcode = M107\nM115 U3.4.0-RC2 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\n\nG21 ; set units to millimeters\n\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT?\n; purge line\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
single_extruder_multi_material = 0
|
||||||
|
start_gcode = M107\nM115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\n\nG21 ; set units to millimeters\n\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT?\n; purge line\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
||||||
end_gcode = G1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\nG1 X0 Y200; home X axis\nM84 ; disable motors
|
end_gcode = G1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\nG1 X0 Y200; home X axis\nM84 ; disable motors
|
||||||
|
|
||||||
[printer:Original Prusa i3 MK3 MMU2]
|
[printer:Original Prusa i3 MK3 MMU2]
|
||||||
@ -1280,9 +1460,27 @@ inherits = *mm2*
|
|||||||
machine_max_acceleration_e = 8000,8000
|
machine_max_acceleration_e = 8000,8000
|
||||||
nozzle_diameter = 0.4,0.4,0.4,0.4,0.4
|
nozzle_diameter = 0.4,0.4,0.4,0.4,0.4
|
||||||
extruder_colour = #FF8000;#0080FF;#00FFFF;#FF4F4F;#9FFF9F
|
extruder_colour = #FF8000;#0080FF;#00FFFF;#FF4F4F;#9FFF9F
|
||||||
start_gcode = M107\nM115 U3.4.0-RC2 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG21 ; set units to millimeters\n\n; Send the filament type to the MMU2.0 unit.\n; E stands for extruder number, F stands for filament type (0: default; 1:flex; 2: PVA)\nM403 E0 F{"" + ((filament_type[0]=="FLEX") ? 1 : ((filament_type[0]=="PVA") ? 2 : 0))}\nM403 E1 F{"" + ((filament_type[1]=="FLEX") ? 1 : ((filament_type[1]=="PVA") ? 2 : 0))}\nM403 E2 F{"" + ((filament_type[2]=="FLEX") ? 1 : ((filament_type[2]=="PVA") ? 2 : 0))}\nM403 E3 F{"" + ((filament_type[3]=="FLEX") ? 1 : ((filament_type[3]=="PVA") ? 2 : 0))}\nM403 E4 F{"" + ((filament_type[4]=="FLEX") ? 1 : ((filament_type[4]=="PVA") ? 2 : 0))}\n\n{if not has_single_extruder_multi_material_priming}\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT[initial_tool]\n; initial load\nG1 X55.0 E32.0 F1073.0\nG1 X5.0 E32.0 F1800.0\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\nG92 E0.0\n{endif}\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
start_gcode = M107\nM115 U3.4.1 ; tell printer latest fw version\nM83 ; extruder relative mode\nM104 S[first_layer_temperature] ; set extruder temp\nM140 S[first_layer_bed_temperature] ; set bed temp\nM190 S[first_layer_bed_temperature] ; wait for bed temp\nM109 S[first_layer_temperature] ; wait for extruder temp\nG28 W ; home all without mesh bed level\nG80 ; mesh bed leveling\nG21 ; set units to millimeters\n\n; Send the filament type to the MMU2.0 unit.\n; E stands for extruder number, F stands for filament type (0: default; 1:flex; 2: PVA)\nM403 E0 F{"" + ((filament_type[0]=="FLEX") ? 1 : ((filament_type[0]=="PVA") ? 2 : 0))}\nM403 E1 F{"" + ((filament_type[1]=="FLEX") ? 1 : ((filament_type[1]=="PVA") ? 2 : 0))}\nM403 E2 F{"" + ((filament_type[2]=="FLEX") ? 1 : ((filament_type[2]=="PVA") ? 2 : 0))}\nM403 E3 F{"" + ((filament_type[3]=="FLEX") ? 1 : ((filament_type[3]=="PVA") ? 2 : 0))}\nM403 E4 F{"" + ((filament_type[4]=="FLEX") ? 1 : ((filament_type[4]=="PVA") ? 2 : 0))}\n\n{if not has_single_extruder_multi_material_priming}\n;go outside print area\nG1 Y-3.0 F1000.0\nG1 Z0.4 F1000.0\n; select extruder\nT[initial_tool]\n; initial load\nG1 X55.0 E32.0 F1073.0\nG1 X5.0 E32.0 F1800.0\nG1 X55.0 E8.0 F2000.0\nG1 Z0.3 F1000.0\nG92 E0.0\nG1 X240.0 E25.0 F2200.0\nG1 Y-2.0 F1000.0\nG1 X55.0 E25 F1400.0\nG1 Z0.20 F1000.0\nG1 X5.0 E4.0 F1000.0\nG92 E0.0\n{endif}\n\nM221 S{if layer_height<0.075}100{else}95{endif}\nG90 ; use absolute coordinates\nM83 ; use relative distances for extrusion\nG92 E0.0\n
|
||||||
end_gcode = {if has_wipe_tower}\nG1 E-15.0000 F3000\n{else}\nG1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n{endif}\n\n; Unload filament\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\n; Lift print head a bit\n{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up\nG1 X0 Y200; home X axis\nM84 ; disable motors\n
|
end_gcode = {if has_wipe_tower}\nG1 E-15.0000 F3000\n{else}\nG1 X0 Y210 F7200\nG1 E2 F5000\nG1 E2 F5500\nG1 E2 F6000\nG1 E-15.0000 F5800\nG1 E-20.0000 F5500\nG1 E10.0000 F3000\nG1 E-10.0000 F3100\nG1 E10.0000 F3150\nG1 E-10.0000 F3250\nG1 E10.0000 F3300\n{endif}\n\n; Unload filament\nM702 C\n\nG4 ; wait\nM104 S0 ; turn off temperature\nM140 S0 ; turn off heatbed\nM107 ; turn off fan\n; Lift print head a bit\n{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up\nG1 X0 Y200; home X axis\nM84 ; disable motors\n
|
||||||
|
|
||||||
|
[printer:Original Prusa SL1]
|
||||||
|
printer_technology = SLA
|
||||||
|
printer_model = SL1
|
||||||
|
printer_variant = default
|
||||||
|
default_sla_material_profile = Material 1
|
||||||
|
bed_shape = 0x0,150x0,150x100,0x100
|
||||||
|
max_print_height = 100
|
||||||
|
display_width = 150
|
||||||
|
display_height = 100
|
||||||
|
display_pixels_x = 2000
|
||||||
|
display_pixels_y = 1000
|
||||||
|
printer_correction = 1,1,1
|
||||||
|
|
||||||
|
[printer:Original Prusa SL1 dummy]
|
||||||
|
inherits = Original Prusa SL1
|
||||||
|
printer_variant = dummy
|
||||||
|
default_sla_material_profile = Material 2
|
||||||
|
|
||||||
# The obsolete presets will be removed when upgrading from the legacy configuration structure (up to Slic3r 1.39.2) to 1.40.0 and newer.
|
# The obsolete presets will be removed when upgrading from the legacy configuration structure (up to Slic3r 1.39.2) to 1.40.0 and newer.
|
||||||
[obsolete_presets]
|
[obsolete_presets]
|
||||||
print="0.05mm DETAIL 0.25 nozzle";"0.05mm DETAIL MK3";"0.05mm DETAIL";"0.20mm NORMAL MK3";"0.35mm FAST MK3";"print:0.15mm OPTIMAL MK3 MMU2";"print:0.20mm FAST MK3 MMU2"
|
print="0.05mm DETAIL 0.25 nozzle";"0.05mm DETAIL MK3";"0.05mm DETAIL";"0.20mm NORMAL MK3";"0.35mm FAST MK3";"print:0.15mm OPTIMAL MK3 MMU2";"print:0.20mm FAST MK3 MMU2"
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
{
|
{
|
||||||
"path": ".",
|
"path": ".",
|
||||||
// "folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings"],
|
// "folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings"],
|
||||||
"file_exclude_patterns": ["XS.c"]
|
"file_exclude_patterns": ["XS.c", "*.pch", "*.ilk", "*.js" ]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -1276,8 +1276,11 @@ public:
|
|||||||
void read_cli(const std::vector<std::string> &tokens, t_config_option_keys* extra);
|
void read_cli(const std::vector<std::string> &tokens, t_config_option_keys* extra);
|
||||||
bool read_cli(int argc, char** argv, t_config_option_keys* extra);
|
bool read_cli(int argc, char** argv, t_config_option_keys* extra);
|
||||||
|
|
||||||
private:
|
|
||||||
typedef std::map<t_config_option_key,ConfigOption*> t_options_map;
|
typedef std::map<t_config_option_key,ConfigOption*> t_options_map;
|
||||||
|
t_options_map::const_iterator cbegin() const { return options.cbegin(); }
|
||||||
|
t_options_map::const_iterator cend() const { return options.cend(); }
|
||||||
|
|
||||||
|
private:
|
||||||
t_options_map options;
|
t_options_map options;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1652,8 +1652,8 @@ void GCode::append_full_config(const Print& print, std::string& str)
|
|||||||
}
|
}
|
||||||
const DynamicConfig &full_config = print.placeholder_parser().config();
|
const DynamicConfig &full_config = print.placeholder_parser().config();
|
||||||
for (const char *key : {
|
for (const char *key : {
|
||||||
"print_settings_id", "filament_settings_id", "printer_settings_id",
|
"print_settings_id", "filament_settings_id", "sla_material_settings_id", "printer_settings_id",
|
||||||
"printer_model", "printer_variant", "default_print_profile", "default_filament_profile",
|
"printer_model", "printer_variant", "default_print_profile", "default_filament_profile", "default_sla_material_profile",
|
||||||
"compatible_printers_condition_cummulative", "inherits_cummulative" }) {
|
"compatible_printers_condition_cummulative", "inherits_cummulative" }) {
|
||||||
const ConfigOption *opt = full_config.option(key);
|
const ConfigOption *opt = full_config.option(key);
|
||||||
if (opt != nullptr)
|
if (opt != nullptr)
|
||||||
|
@ -495,7 +495,7 @@ public:
|
|||||||
};
|
};
|
||||||
CancelStatus cancel_status() const { return m_cancel_status; }
|
CancelStatus cancel_status() const { return m_cancel_status; }
|
||||||
// Has the calculation been canceled?
|
// Has the calculation been canceled?
|
||||||
bool canceled() const { return m_cancel_status; }
|
bool canceled() const { return m_cancel_status != NOT_CANCELED; }
|
||||||
// Cancel the running computation. Stop execution of all the background threads.
|
// Cancel the running computation. Stop execution of all the background threads.
|
||||||
void cancel() { m_cancel_status = CANCELED_BY_USER; }
|
void cancel() { m_cancel_status = CANCELED_BY_USER; }
|
||||||
void cancel_internal() { m_cancel_status = CANCELED_INTERNAL; }
|
void cancel_internal() { m_cancel_status = CANCELED_INTERNAL; }
|
||||||
|
@ -406,7 +406,7 @@ const Snapshot& SnapshotDB::take_snapshot(const AppConfig &app_config, Snapshot:
|
|||||||
cfg.version.min_slic3r_version = it->min_slic3r_version;
|
cfg.version.min_slic3r_version = it->min_slic3r_version;
|
||||||
cfg.version.max_slic3r_version = it->max_slic3r_version;
|
cfg.version.max_slic3r_version = it->max_slic3r_version;
|
||||||
}
|
}
|
||||||
} catch (const std::runtime_error &err) {
|
} catch (const std::runtime_error & /* err */) {
|
||||||
}
|
}
|
||||||
snapshot.vendor_configs.emplace_back(std::move(cfg));
|
snapshot.vendor_configs.emplace_back(std::move(cfg));
|
||||||
}
|
}
|
||||||
@ -521,7 +521,7 @@ SnapshotDB& SnapshotDB::singleton()
|
|||||||
// Update the min / max slic3r versions compatible with the configurations stored inside the snapshots
|
// Update the min / max slic3r versions compatible with the configurations stored inside the snapshots
|
||||||
// based on the min / max slic3r versions defined by the vendor specific config indices.
|
// based on the min / max slic3r versions defined by the vendor specific config indices.
|
||||||
instance.update_slic3r_versions(index_db);
|
instance.update_slic3r_versions(index_db);
|
||||||
} catch (std::exception &ex) {
|
} catch (std::exception & /* ex */) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return instance;
|
return instance;
|
||||||
|
@ -74,7 +74,7 @@ void BackgroundSlicingProcess::thread_proc()
|
|||||||
this->set_step_done(bspsGCodeFinalize);
|
this->set_step_done(bspsGCodeFinalize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (CanceledException &ex) {
|
} catch (CanceledException & /* ex */) {
|
||||||
// Canceled, this is all right.
|
// Canceled, this is all right.
|
||||||
assert(m_print->canceled());
|
assert(m_print->canceled());
|
||||||
} catch (std::exception &ex) {
|
} catch (std::exception &ex) {
|
||||||
|
@ -234,13 +234,13 @@ void BedShapePanel::update_shape()
|
|||||||
Vec2d rect_origin(Vec2d::Zero());
|
Vec2d rect_origin(Vec2d::Zero());
|
||||||
try{
|
try{
|
||||||
rect_size = boost::any_cast<Vec2d>(m_optgroups[SHAPE_RECTANGULAR]->get_value("rect_size")); }
|
rect_size = boost::any_cast<Vec2d>(m_optgroups[SHAPE_RECTANGULAR]->get_value("rect_size")); }
|
||||||
catch (const std::exception &e){
|
catch (const std::exception & /* e */){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
rect_origin = boost::any_cast<Vec2d>(m_optgroups[SHAPE_RECTANGULAR]->get_value("rect_origin"));
|
rect_origin = boost::any_cast<Vec2d>(m_optgroups[SHAPE_RECTANGULAR]->get_value("rect_origin"));
|
||||||
}
|
}
|
||||||
catch (const std::exception &e){
|
catch (const std::exception & /* e */){
|
||||||
return;}
|
return;}
|
||||||
|
|
||||||
auto x = rect_size(0);
|
auto x = rect_size(0);
|
||||||
@ -269,7 +269,7 @@ void BedShapePanel::update_shape()
|
|||||||
try{
|
try{
|
||||||
diameter = boost::any_cast<double>(m_optgroups[SHAPE_CIRCULAR]->get_value("diameter"));
|
diameter = boost::any_cast<double>(m_optgroups[SHAPE_CIRCULAR]->get_value("diameter"));
|
||||||
}
|
}
|
||||||
catch (const std::exception &e){
|
catch (const std::exception & /* e */){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (diameter == 0.0) return ;
|
if (diameter == 0.0) return ;
|
||||||
|
@ -39,7 +39,7 @@ private:
|
|||||||
struct priv;
|
struct priv;
|
||||||
std::unique_ptr<priv> p;
|
std::unique_ptr<priv> p;
|
||||||
|
|
||||||
friend class ConfigWizardPage;
|
friend struct ConfigWizardPage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ void enable_screensaver()
|
|||||||
bool debugged()
|
bool debugged()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return IsDebuggerPresent();
|
return IsDebuggerPresent() == TRUE;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
@ -233,7 +233,7 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::exception & /* e */)
|
||||||
{
|
{
|
||||||
int i = 0;//no reason, just experiment
|
int i = 0;//no reason, just experiment
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ bool GUI_App::OnInit()
|
|||||||
load_language();
|
load_language();
|
||||||
|
|
||||||
// Suppress the '- default -' presets.
|
// Suppress the '- default -' presets.
|
||||||
preset_bundle->set_default_suppressed(app_config->get("no_defaults").empty() ? false : true);
|
preset_bundle->set_default_suppressed(app_config->get("no_defaults") == "1");
|
||||||
// eval{
|
// eval{
|
||||||
preset_bundle->load_presets(*app_config);
|
preset_bundle->load_presets(*app_config);
|
||||||
// };
|
// };
|
||||||
@ -601,8 +601,9 @@ void GUI_App::add_config_menu(wxMenuBar *menu)
|
|||||||
bool GUI_App::check_unsaved_changes()
|
bool GUI_App::check_unsaved_changes()
|
||||||
{
|
{
|
||||||
std::string dirty;
|
std::string dirty;
|
||||||
|
PrinterTechnology printer_technology = preset_bundle->printers.get_edited_preset().printer_technology();
|
||||||
for (Tab *tab : tabs_list)
|
for (Tab *tab : tabs_list)
|
||||||
if (tab->current_preset_is_dirty())
|
if (tab->supports_printer_technology(printer_technology) && tab->current_preset_is_dirty())
|
||||||
if (dirty.empty())
|
if (dirty.empty())
|
||||||
dirty = tab->name();
|
dirty = tab->name();
|
||||||
else
|
else
|
||||||
@ -636,9 +637,10 @@ void GUI_App::delete_tab_from_list(Tab* tab)
|
|||||||
// Update UI / Tabs to reflect changes in the currently loaded presets
|
// Update UI / Tabs to reflect changes in the currently loaded presets
|
||||||
void GUI_App::load_current_presets()
|
void GUI_App::load_current_presets()
|
||||||
{
|
{
|
||||||
for (Tab *tab : tabs_list) {
|
PrinterTechnology printer_technology = preset_bundle->printers.get_edited_preset().printer_technology();
|
||||||
tab->load_current_preset();
|
for (Tab *tab : tabs_list)
|
||||||
}
|
if (tab->supports_printer_technology(printer_technology))
|
||||||
|
tab->load_current_preset();
|
||||||
}
|
}
|
||||||
|
|
||||||
Sidebar& GUI_App::sidebar()
|
Sidebar& GUI_App::sidebar()
|
||||||
|
@ -418,7 +418,7 @@ struct Sidebar::priv
|
|||||||
|
|
||||||
void Sidebar::priv::show_preset_comboboxes()
|
void Sidebar::priv::show_preset_comboboxes()
|
||||||
{
|
{
|
||||||
const bool showSLA = wxGetApp().preset_bundle->printers.get_selected_preset().printer_technology() == ptSLA;
|
const bool showSLA = wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA;
|
||||||
|
|
||||||
wxWindowUpdateLocker noUpdates(wxGetApp().mainframe);
|
wxWindowUpdateLocker noUpdates(wxGetApp().mainframe);
|
||||||
|
|
||||||
@ -562,40 +562,49 @@ void Sidebar::remove_unused_filament_combos(const int current_extruder_count)
|
|||||||
|
|
||||||
void Sidebar::update_presets(Preset::Type preset_type)
|
void Sidebar::update_presets(Preset::Type preset_type)
|
||||||
{
|
{
|
||||||
|
PresetBundle &preset_bundle = *wxGetApp().preset_bundle;
|
||||||
|
|
||||||
switch (preset_type) {
|
switch (preset_type) {
|
||||||
case Preset::TYPE_FILAMENT:
|
case Preset::TYPE_FILAMENT:
|
||||||
if (p->combos_filament.size() == 1) {
|
if (p->combos_filament.size() == 1) {
|
||||||
// Single filament printer, synchronize the filament presets.
|
// Single filament printer, synchronize the filament presets.
|
||||||
const std::string &name = wxGetApp().preset_bundle->filaments.get_selected_preset().name;
|
const std::string &name = preset_bundle.filaments.get_selected_preset().name;
|
||||||
wxGetApp().preset_bundle->set_filament_preset(0, name);
|
preset_bundle.set_filament_preset(0, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < p->combos_filament.size(); i++) {
|
for (size_t i = 0; i < p->combos_filament.size(); i++) {
|
||||||
wxGetApp().preset_bundle->update_platter_filament_ui(i, p->combos_filament[i]);
|
preset_bundle.update_platter_filament_ui(i, p->combos_filament[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Preset::TYPE_PRINT:
|
case Preset::TYPE_PRINT:
|
||||||
wxGetApp().preset_bundle->prints.update_platter_ui(p->combo_print);
|
preset_bundle.prints.update_platter_ui(p->combo_print);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Preset::TYPE_SLA_MATERIAL:
|
case Preset::TYPE_SLA_MATERIAL:
|
||||||
wxGetApp().preset_bundle->sla_materials.update_platter_ui(p->combo_sla_material);
|
preset_bundle.sla_materials.update_platter_ui(p->combo_sla_material);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Preset::TYPE_PRINTER:
|
case Preset::TYPE_PRINTER:
|
||||||
// Update the print choosers to only contain the compatible presets, update the dirty flags.
|
{
|
||||||
wxGetApp().preset_bundle->prints.update_platter_ui(p->combo_print);
|
PrinterTechnology printer_technology = preset_bundle.printers.get_edited_preset().printer_technology();
|
||||||
// Update the printer choosers, update the dirty flags.
|
// Update the print choosers to only contain the compatible presets, update the dirty flags.
|
||||||
wxGetApp().preset_bundle->printers.update_platter_ui(p->combo_printer);
|
if (printer_technology == ptFFF)
|
||||||
// Update the filament choosers to only contain the compatible presets, update the color preview,
|
preset_bundle.prints.update_platter_ui(p->combo_print);
|
||||||
// update the dirty flags.
|
else
|
||||||
for (size_t i = 0; i < p->combos_filament.size(); i++) {
|
preset_bundle.sla_materials.update_platter_ui(p->combo_sla_material);
|
||||||
wxGetApp().preset_bundle->update_platter_filament_ui(i, p->combos_filament[i]);
|
// Update the printer choosers, update the dirty flags.
|
||||||
}
|
preset_bundle.printers.update_platter_ui(p->combo_printer);
|
||||||
p->show_preset_comboboxes();
|
// Update the filament choosers to only contain the compatible presets, update the color preview,
|
||||||
break;
|
// update the dirty flags.
|
||||||
|
if (printer_technology == ptFFF) {
|
||||||
|
for (size_t i = 0; i < p->combos_filament.size(); ++ i)
|
||||||
|
preset_bundle.update_platter_filament_ui(i, p->combos_filament[i]);
|
||||||
|
}
|
||||||
|
p->show_preset_comboboxes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
@ -210,23 +210,20 @@ void Preset::normalize(DynamicPrintConfig &config)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DynamicPrintConfig& Preset::load(const std::vector<std::string> &keys, const StaticPrintConfig &defaults)
|
std::string Preset::remove_invalid_keys(DynamicPrintConfig &config, const DynamicPrintConfig &default_config)
|
||||||
{
|
{
|
||||||
// Set the configuration from the defaults.
|
std::string incorrect_keys;
|
||||||
this->config.apply_only(defaults, keys.empty() ? defaults.keys() : keys);
|
for (const std::string &key : config.keys())
|
||||||
if (! this->is_default) {
|
if (! default_config.has(key)) {
|
||||||
// Load the preset file, apply preset values on top of defaults.
|
if (incorrect_keys.empty())
|
||||||
try {
|
incorrect_keys = key;
|
||||||
this->config.load_from_ini(this->file);
|
else {
|
||||||
Preset::normalize(this->config);
|
incorrect_keys += ", ";
|
||||||
} catch (const std::ifstream::failure &err) {
|
incorrect_keys += key;
|
||||||
throw std::runtime_error(std::string("The selected preset cannot be loaded: ") + this->file + "\n\tReason: " + err.what());
|
}
|
||||||
} catch (const std::runtime_error &err) {
|
config.erase(key);
|
||||||
throw std::runtime_error(std::string("Failed loading the preset file: ") + this->file + "\n\tReason: " + err.what());
|
|
||||||
}
|
}
|
||||||
}
|
return incorrect_keys;
|
||||||
this->loaded = true;
|
|
||||||
return this->config;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preset::save()
|
void Preset::save()
|
||||||
@ -390,6 +387,7 @@ const std::vector<std::string>& Preset::sla_material_options()
|
|||||||
"exposure_time", "initial_exposure_time",
|
"exposure_time", "initial_exposure_time",
|
||||||
"material_correction_printing", "material_correction_curing",
|
"material_correction_printing", "material_correction_curing",
|
||||||
"material_notes",
|
"material_notes",
|
||||||
|
"default_sla_material_profile",
|
||||||
"compatible_printers",
|
"compatible_printers",
|
||||||
"compatible_printers_condition", "inherits"
|
"compatible_printers_condition", "inherits"
|
||||||
};
|
};
|
||||||
@ -436,7 +434,8 @@ void PresetCollection::add_default_preset(const std::vector<std::string> &keys,
|
|||||||
{
|
{
|
||||||
// Insert just the default preset.
|
// Insert just the default preset.
|
||||||
m_presets.emplace_back(Preset(this->type(), preset_name, true));
|
m_presets.emplace_back(Preset(this->type(), preset_name, true));
|
||||||
m_presets.back().load(keys, defaults);
|
m_presets.back().config.apply_only(defaults, keys.empty() ? defaults.keys() : keys);
|
||||||
|
m_presets.back().loaded = true;
|
||||||
++ m_num_default_presets;
|
++ m_num_default_presets;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -446,7 +445,6 @@ void PresetCollection::load_presets(const std::string &dir_path, const std::stri
|
|||||||
{
|
{
|
||||||
boost::filesystem::path dir = boost::filesystem::canonical(boost::filesystem::path(dir_path) / subdir).make_preferred();
|
boost::filesystem::path dir = boost::filesystem::canonical(boost::filesystem::path(dir_path) / subdir).make_preferred();
|
||||||
m_dir_path = dir.string();
|
m_dir_path = dir.string();
|
||||||
t_config_option_keys keys = this->default_preset().config.keys();
|
|
||||||
std::string errors_cummulative;
|
std::string errors_cummulative;
|
||||||
for (auto &dir_entry : boost::filesystem::directory_iterator(dir))
|
for (auto &dir_entry : boost::filesystem::directory_iterator(dir))
|
||||||
if (boost::filesystem::is_regular_file(dir_entry.status()) && boost::algorithm::iends_with(dir_entry.path().filename().string(), ".ini")) {
|
if (boost::filesystem::is_regular_file(dir_entry.status()) && boost::algorithm::iends_with(dir_entry.path().filename().string(), ".ini")) {
|
||||||
@ -462,8 +460,26 @@ void PresetCollection::load_presets(const std::string &dir_path, const std::stri
|
|||||||
try {
|
try {
|
||||||
Preset preset(m_type, name, false);
|
Preset preset(m_type, name, false);
|
||||||
preset.file = dir_entry.path().string();
|
preset.file = dir_entry.path().string();
|
||||||
//FIXME One should initialize with SLAFullPrintConfig for the SLA profiles!
|
// Load the preset file, apply preset values on top of defaults.
|
||||||
preset.load(keys, static_cast<const HostConfig&>(FullPrintConfig::defaults()));
|
try {
|
||||||
|
DynamicPrintConfig config;
|
||||||
|
config.load_from_ini(preset.file);
|
||||||
|
// Find a default preset for the config. The PrintPresetCollection provides different default preset based on the "printer_technology" field.
|
||||||
|
const Preset &default_preset = this->default_preset_for(config);
|
||||||
|
preset.config = default_preset.config;
|
||||||
|
preset.config.apply(std::move(config));
|
||||||
|
Preset::normalize(preset.config);
|
||||||
|
// Report configuration fields, which are misplaced into a wrong group.
|
||||||
|
std::string incorrect_keys = Preset::remove_invalid_keys(config, default_preset.config);
|
||||||
|
if (! incorrect_keys.empty())
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "Error in a preset file: The preset \"" <<
|
||||||
|
preset.file << "\" contains the following incorrect keys: " << incorrect_keys << ", which were removed";
|
||||||
|
preset.loaded = true;
|
||||||
|
} catch (const std::ifstream::failure &err) {
|
||||||
|
throw std::runtime_error(std::string("The selected preset cannot be loaded: ") + preset.file + "\n\tReason: " + err.what());
|
||||||
|
} catch (const std::runtime_error &err) {
|
||||||
|
throw std::runtime_error(std::string("Failed loading the preset file: ") + preset.file + "\n\tReason: " + err.what());
|
||||||
|
}
|
||||||
m_presets.emplace_back(preset);
|
m_presets.emplace_back(preset);
|
||||||
} catch (const std::runtime_error &err) {
|
} catch (const std::runtime_error &err) {
|
||||||
errors_cummulative += err.what();
|
errors_cummulative += err.what();
|
||||||
@ -491,8 +507,8 @@ static bool profile_print_params_same(const DynamicPrintConfig &cfg1, const Dyna
|
|||||||
// Following keys are used by the UI, not by the slicing core, therefore they are not important
|
// Following keys are used by the UI, not by the slicing core, therefore they are not important
|
||||||
// when comparing profiles for equality. Ignore them.
|
// when comparing profiles for equality. Ignore them.
|
||||||
for (const char *key : { "compatible_printers", "compatible_printers_condition", "inherits",
|
for (const char *key : { "compatible_printers", "compatible_printers_condition", "inherits",
|
||||||
"print_settings_id", "filament_settings_id", "printer_settings_id",
|
"print_settings_id", "filament_settings_id", "sla_material_settings_id", "printer_settings_id",
|
||||||
"printer_model", "printer_variant", "default_print_profile", "default_filament_profile" })
|
"printer_model", "printer_variant", "default_print_profile", "default_filament_profile", "default_sla_material_profile" })
|
||||||
diff.erase(std::remove(diff.begin(), diff.end(), key), diff.end());
|
diff.erase(std::remove(diff.begin(), diff.end(), key), diff.end());
|
||||||
// Preset with the same name as stored inside the config exists.
|
// Preset with the same name as stored inside the config exists.
|
||||||
return diff.empty();
|
return diff.empty();
|
||||||
@ -718,7 +734,7 @@ size_t PresetCollection::update_compatible_with_printer_internal(const Preset &a
|
|||||||
Preset &preset_edited = selected ? m_edited_preset : preset_selected;
|
Preset &preset_edited = selected ? m_edited_preset : preset_selected;
|
||||||
if (! preset_edited.update_compatible_with_printer(active_printer, &config) &&
|
if (! preset_edited.update_compatible_with_printer(active_printer, &config) &&
|
||||||
selected && unselect_if_incompatible)
|
selected && unselect_if_incompatible)
|
||||||
m_idx_selected = (size_t)-1;
|
m_idx_selected = -1;
|
||||||
if (selected)
|
if (selected)
|
||||||
preset_selected.is_compatible = preset_edited.is_compatible;
|
preset_selected.is_compatible = preset_edited.is_compatible;
|
||||||
}
|
}
|
||||||
@ -1018,4 +1034,10 @@ std::string PresetCollection::path_from_name(const std::string &new_name) const
|
|||||||
return (boost::filesystem::path(m_dir_path) / file_name).make_preferred().string();
|
return (boost::filesystem::path(m_dir_path) / file_name).make_preferred().string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Preset& PrinterPresetCollection::default_preset_for(const DynamicPrintConfig &config) const
|
||||||
|
{
|
||||||
|
const ConfigOptionEnumGeneric *opt_printer_technology = config.opt<ConfigOptionEnumGeneric>("printer_technology");
|
||||||
|
return this->default_preset((opt_printer_technology == nullptr || opt_printer_technology->value == 0) ? 0 : 1);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Slic3r
|
} // namespace Slic3r
|
||||||
|
@ -125,9 +125,6 @@ public:
|
|||||||
// Configuration data, loaded from a file, or set from the defaults.
|
// Configuration data, loaded from a file, or set from the defaults.
|
||||||
DynamicPrintConfig config;
|
DynamicPrintConfig config;
|
||||||
|
|
||||||
// Load this profile for the following keys only.
|
|
||||||
DynamicPrintConfig& load(const std::vector<std::string> &keys, const StaticPrintConfig &defaults);
|
|
||||||
|
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
// Return a label of this preset, consisting of a name and a "(modified)" suffix, if this preset is dirty.
|
// Return a label of this preset, consisting of a name and a "(modified)" suffix, if this preset is dirty.
|
||||||
@ -177,8 +174,10 @@ public:
|
|||||||
static const std::vector<std::string>& sla_printer_options();
|
static const std::vector<std::string>& sla_printer_options();
|
||||||
static const std::vector<std::string>& sla_material_options();
|
static const std::vector<std::string>& sla_material_options();
|
||||||
|
|
||||||
static void update_suffix_modified();
|
static void update_suffix_modified();
|
||||||
static void normalize(DynamicPrintConfig &config);
|
static void normalize(DynamicPrintConfig &config);
|
||||||
|
// Report configuration fields, which are misplaced into a wrong group, remove them from the config.
|
||||||
|
static std::string remove_invalid_keys(DynamicPrintConfig &config, const DynamicPrintConfig &default_config);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class PresetCollection;
|
friend class PresetCollection;
|
||||||
@ -200,9 +199,11 @@ public:
|
|||||||
typedef std::deque<Preset>::iterator Iterator;
|
typedef std::deque<Preset>::iterator Iterator;
|
||||||
typedef std::deque<Preset>::const_iterator ConstIterator;
|
typedef std::deque<Preset>::const_iterator ConstIterator;
|
||||||
Iterator begin() { return m_presets.begin() + m_num_default_presets; }
|
Iterator begin() { return m_presets.begin() + m_num_default_presets; }
|
||||||
ConstIterator begin() const { return m_presets.begin() + m_num_default_presets; }
|
ConstIterator begin() const { return m_presets.cbegin() + m_num_default_presets; }
|
||||||
|
ConstIterator cbegin() const { return m_presets.cbegin() + m_num_default_presets; }
|
||||||
Iterator end() { return m_presets.end(); }
|
Iterator end() { return m_presets.end(); }
|
||||||
ConstIterator end() const { return m_presets.end(); }
|
ConstIterator end() const { return m_presets.cend(); }
|
||||||
|
ConstIterator cend() const { return m_presets.cend(); }
|
||||||
|
|
||||||
void reset(bool delete_files);
|
void reset(bool delete_files);
|
||||||
|
|
||||||
@ -279,8 +280,9 @@ public:
|
|||||||
static const std::string& get_suffix_modified();
|
static const std::string& get_suffix_modified();
|
||||||
|
|
||||||
// Return a preset possibly with modifications.
|
// Return a preset possibly with modifications.
|
||||||
Preset& default_preset() { return m_presets.front(); }
|
Preset& default_preset(size_t idx = 0) { assert(idx < m_num_default_presets); return m_presets[idx]; }
|
||||||
const Preset& default_preset() const { return m_presets.front(); }
|
const Preset& default_preset(size_t idx = 0) const { assert(idx < m_num_default_presets); return m_presets[idx]; }
|
||||||
|
virtual const Preset& default_preset_for(const DynamicPrintConfig & /* config */) const { return this->default_preset(); }
|
||||||
// Return a preset by an index. If the preset is active, a temporary copy is returned.
|
// Return a preset by an index. If the preset is active, a temporary copy is returned.
|
||||||
Preset& preset(size_t idx) { return (int(idx) == m_idx_selected) ? m_edited_preset : m_presets[idx]; }
|
Preset& preset(size_t idx) { return (int(idx) == m_idx_selected) ? m_edited_preset : m_presets[idx]; }
|
||||||
const Preset& preset(size_t idx) const { return const_cast<PresetCollection*>(this)->preset(idx); }
|
const Preset& preset(size_t idx) const { return const_cast<PresetCollection*>(this)->preset(idx); }
|
||||||
@ -440,6 +442,16 @@ private:
|
|||||||
friend class PresetBundle;
|
friend class PresetBundle;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Printer supports the FFF and SLA technologies, with different set of configuration values,
|
||||||
|
// therefore this PresetCollection needs to handle two defaults.
|
||||||
|
class PrinterPresetCollection : public PresetCollection
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PrinterPresetCollection(Preset::Type type, const std::vector<std::string> &keys, const Slic3r::StaticPrintConfig &defaults, const std::string &default_name = "- default -") :
|
||||||
|
PresetCollection(type, keys, defaults, default_name) {}
|
||||||
|
const Preset& default_preset_for(const DynamicPrintConfig &config) const override;
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Slic3r
|
} // namespace Slic3r
|
||||||
|
|
||||||
#endif /* slic3r_Preset_hpp_ */
|
#endif /* slic3r_Preset_hpp_ */
|
||||||
|
@ -79,13 +79,17 @@ PresetBundle::PresetBundle() :
|
|||||||
this->printers.preset(1).printer_technology() = ptSLA;
|
this->printers.preset(1).printer_technology() = ptSLA;
|
||||||
for (size_t i = 0; i < 2; ++ i) {
|
for (size_t i = 0; i < 2; ++ i) {
|
||||||
// The following ugly switch is to avoid printers.preset(0) to return the edited instance, as the 0th default is the current one.
|
// The following ugly switch is to avoid printers.preset(0) to return the edited instance, as the 0th default is the current one.
|
||||||
Preset &preset = (i == 0) ? this->printers.default_preset() : this->printers.preset(1);
|
Preset &preset = this->printers.default_preset(i);
|
||||||
preset.config.optptr("printer_settings_id", true);
|
preset.config.optptr("printer_settings_id", true);
|
||||||
preset.config.optptr("printer_vendor", true);
|
preset.config.optptr("printer_vendor", true);
|
||||||
preset.config.optptr("printer_model", true);
|
preset.config.optptr("printer_model", true);
|
||||||
preset.config.optptr("printer_variant", true);
|
preset.config.optptr("printer_variant", true);
|
||||||
preset.config.optptr("default_print_profile", true);
|
if (i == 0) {
|
||||||
preset.config.option<ConfigOptionStrings>("default_filament_profile", true)->values = { "" };
|
preset.config.optptr("default_print_profile", true);
|
||||||
|
preset.config.option<ConfigOptionStrings>("default_filament_profile", true)->values = { "" };
|
||||||
|
} else
|
||||||
|
preset.config.optptr("default_sla_material_profile", true);
|
||||||
|
// default_sla_material_profile
|
||||||
preset.inherits();
|
preset.inherits();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,7 +319,7 @@ void PresetBundle::load_selections(const AppConfig &config)
|
|||||||
sla_materials.select_preset_by_name_strict(initial_sla_material_profile_name);
|
sla_materials.select_preset_by_name_strict(initial_sla_material_profile_name);
|
||||||
printers.select_preset_by_name(initial_printer_profile_name, true);
|
printers.select_preset_by_name(initial_printer_profile_name, true);
|
||||||
|
|
||||||
if (printers.get_selected_preset().printer_technology() == ptFFF){
|
if (printers.get_selected_preset().printer_technology() == ptFFF) {
|
||||||
// Load the names of the other filament profiles selected for a multi-material printer.
|
// Load the names of the other filament profiles selected for a multi-material printer.
|
||||||
auto *nozzle_diameter = dynamic_cast<const ConfigOptionFloats*>(printers.get_selected_preset().config.option("nozzle_diameter"));
|
auto *nozzle_diameter = dynamic_cast<const ConfigOptionFloats*>(printers.get_selected_preset().config.option("nozzle_diameter"));
|
||||||
size_t num_extruders = nozzle_diameter->values.size();
|
size_t num_extruders = nozzle_diameter->values.size();
|
||||||
@ -342,8 +346,8 @@ void PresetBundle::load_selections(const AppConfig &config)
|
|||||||
// Export selections (current print, current filaments, current printer) into config.ini
|
// Export selections (current print, current filaments, current printer) into config.ini
|
||||||
void PresetBundle::export_selections(AppConfig &config)
|
void PresetBundle::export_selections(AppConfig &config)
|
||||||
{
|
{
|
||||||
assert(filament_presets.size() >= 1);
|
assert(this->printers.get_edited_preset().printer_technology() != ptFFF || filament_presets.size() >= 1);
|
||||||
assert(filament_presets.size() > 1 || filaments.get_selected_preset_name() == filament_presets.front());
|
assert(this->printers.get_edited_preset().printer_technology() != ptFFF || filament_presets.size() > 1 || filaments.get_selected_preset_name() == filament_presets.front());
|
||||||
config.clear_section("presets");
|
config.clear_section("presets");
|
||||||
config.set("presets", "print", prints.get_selected_preset_name());
|
config.set("presets", "print", prints.get_selected_preset_name());
|
||||||
config.set("presets", "filament", filament_presets.front());
|
config.set("presets", "filament", filament_presets.front());
|
||||||
@ -975,7 +979,7 @@ size_t PresetBundle::load_configbundle(const std::string &path, unsigned int fla
|
|||||||
} else if (boost::starts_with(section.first, "sla_material:")) {
|
} else if (boost::starts_with(section.first, "sla_material:")) {
|
||||||
presets = &this->sla_materials;
|
presets = &this->sla_materials;
|
||||||
loaded = &loaded_sla_materials;
|
loaded = &loaded_sla_materials;
|
||||||
preset_name = section.first.substr(9);
|
preset_name = section.first.substr(13);
|
||||||
} else if (boost::starts_with(section.first, "printer:")) {
|
} else if (boost::starts_with(section.first, "printer:")) {
|
||||||
presets = &this->printers;
|
presets = &this->printers;
|
||||||
loaded = &loaded_printers;
|
loaded = &loaded_printers;
|
||||||
@ -1025,25 +1029,25 @@ size_t PresetBundle::load_configbundle(const std::string &path, unsigned int fla
|
|||||||
continue;
|
continue;
|
||||||
if (presets != nullptr) {
|
if (presets != nullptr) {
|
||||||
// Load the print, filament or printer preset.
|
// Load the print, filament or printer preset.
|
||||||
const DynamicPrintConfig &default_config = presets->default_preset().config;
|
const DynamicPrintConfig *default_config = nullptr;
|
||||||
DynamicPrintConfig config(default_config);
|
DynamicPrintConfig config;
|
||||||
for (auto &kvp : section.second)
|
if (presets == &this->printers) {
|
||||||
config.set_deserialize(kvp.first, kvp.second.data());
|
// Select the default config based on the printer_technology field extracted from kvp.
|
||||||
|
DynamicPrintConfig config_src;
|
||||||
|
for (auto &kvp : section.second)
|
||||||
|
config_src.set_deserialize(kvp.first, kvp.second.data());
|
||||||
|
default_config = &presets->default_preset_for(config_src).config;
|
||||||
|
config = *default_config;
|
||||||
|
config.apply(config_src);
|
||||||
|
} else {
|
||||||
|
default_config = &presets->default_preset().config;
|
||||||
|
config = *default_config;
|
||||||
|
for (auto &kvp : section.second)
|
||||||
|
config.set_deserialize(kvp.first, kvp.second.data());
|
||||||
|
}
|
||||||
Preset::normalize(config);
|
Preset::normalize(config);
|
||||||
// Report configuration fields, which are misplaced into a wrong group.
|
// Report configuration fields, which are misplaced into a wrong group.
|
||||||
std::string incorrect_keys;
|
std::string incorrect_keys = Preset::remove_invalid_keys(config, *default_config);
|
||||||
size_t n_incorrect_keys = 0;
|
|
||||||
for (const std::string &key : config.keys())
|
|
||||||
if (! default_config.has(key)) {
|
|
||||||
if (incorrect_keys.empty())
|
|
||||||
incorrect_keys = key;
|
|
||||||
else {
|
|
||||||
incorrect_keys += ", ";
|
|
||||||
incorrect_keys += key;
|
|
||||||
}
|
|
||||||
config.erase(key);
|
|
||||||
++ n_incorrect_keys;
|
|
||||||
}
|
|
||||||
if (! incorrect_keys.empty())
|
if (! incorrect_keys.empty())
|
||||||
BOOST_LOG_TRIVIAL(error) << "Error in a Vendor Config Bundle \"" << path << "\": The printer preset \"" <<
|
BOOST_LOG_TRIVIAL(error) << "Error in a Vendor Config Bundle \"" << path << "\": The printer preset \"" <<
|
||||||
section.first << "\" contains the following incorrect keys: " << incorrect_keys << ", which were removed";
|
section.first << "\" contains the following incorrect keys: " << incorrect_keys << ", which were removed";
|
||||||
@ -1207,12 +1211,11 @@ void PresetBundle::update_compatible_with_printer(bool select_other_if_incompati
|
|||||||
}
|
}
|
||||||
case ptSLA:
|
case ptSLA:
|
||||||
{
|
{
|
||||||
const std::string &prefered_print_profile = printer_preset.config.opt_string("default_print_profile");
|
const std::string &prefered_sla_material_profile = printer_preset.config.opt_string("default_sla_material_profile");
|
||||||
const std::vector<std::string> &prefered_filament_profiles = printer_preset.config.option<ConfigOptionStrings>("default_filament_profile")->values;
|
prefered_sla_material_profile.empty() ?
|
||||||
prefered_print_profile.empty() ?
|
|
||||||
this->sla_materials.update_compatible_with_printer(printer_preset, select_other_if_incompatible) :
|
this->sla_materials.update_compatible_with_printer(printer_preset, select_other_if_incompatible) :
|
||||||
this->sla_materials.update_compatible_with_printer(printer_preset, select_other_if_incompatible,
|
this->sla_materials.update_compatible_with_printer(printer_preset, select_other_if_incompatible,
|
||||||
[&prefered_print_profile](const std::string& profile_name){ return profile_name == prefered_print_profile; });
|
[&prefered_sla_material_profile](const std::string& profile_name){ return profile_name == prefered_sla_material_profile; });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
PresetCollection prints;
|
PresetCollection prints;
|
||||||
PresetCollection filaments;
|
PresetCollection filaments;
|
||||||
PresetCollection sla_materials;
|
PresetCollection sla_materials;
|
||||||
PresetCollection printers;
|
PrinterPresetCollection printers;
|
||||||
// Filament preset names for a multi-extruder or multi-material print.
|
// Filament preset names for a multi-extruder or multi-material print.
|
||||||
// extruders.size() should be the same as printers.get_edited_preset().config.nozzle_diameter.size()
|
// extruders.size() should be the same as printers.get_edited_preset().config.nozzle_diameter.size()
|
||||||
std::vector<std::string> filament_presets;
|
std::vector<std::string> filament_presets;
|
||||||
|
@ -627,7 +627,8 @@ void Tab::load_config(const DynamicPrintConfig& config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reload current $self->{config} (aka $self->{presets}->edited_preset->config) into the UI fields.
|
// Reload current $self->{config} (aka $self->{presets}->edited_preset->config) into the UI fields.
|
||||||
void Tab::reload_config(){
|
void Tab::reload_config()
|
||||||
|
{
|
||||||
Freeze();
|
Freeze();
|
||||||
for (auto page : m_pages)
|
for (auto page : m_pages)
|
||||||
page->reload_config();
|
page->reload_config();
|
||||||
@ -787,6 +788,7 @@ void Tab::update_preset_description_line()
|
|||||||
", ver: " + parent->vendor->config_version.to_string();
|
", ver: " + parent->vendor->config_version.to_string();
|
||||||
if (name() == "printer"){
|
if (name() == "printer"){
|
||||||
const std::string &printer_model = preset.config.opt_string("printer_model");
|
const std::string &printer_model = preset.config.opt_string("printer_model");
|
||||||
|
//FIXME add prefered_sla_material_profile for SLA
|
||||||
const std::string &default_print_profile = preset.config.opt_string("default_print_profile");
|
const std::string &default_print_profile = preset.config.opt_string("default_print_profile");
|
||||||
const std::vector<std::string> &default_filament_profiles = preset.config.option<ConfigOptionStrings>("default_filament_profile")->values;
|
const std::vector<std::string> &default_filament_profiles = preset.config.option<ConfigOptionStrings>("default_filament_profile")->values;
|
||||||
if (!printer_model.empty())
|
if (!printer_model.empty())
|
||||||
@ -2045,7 +2047,8 @@ void TabPrinter::on_preset_loaded()
|
|||||||
void TabPrinter::update_pages()
|
void TabPrinter::update_pages()
|
||||||
{
|
{
|
||||||
// update m_pages ONLY if printer technology is changed
|
// update m_pages ONLY if printer technology is changed
|
||||||
if (m_presets->get_edited_preset().printer_technology() == m_printer_technology)
|
const PrinterTechnology new_printer_technology = m_presets->get_edited_preset().printer_technology();
|
||||||
|
if (new_printer_technology == m_printer_technology)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// hide all old pages
|
// hide all old pages
|
||||||
@ -2057,7 +2060,8 @@ void TabPrinter::update_pages()
|
|||||||
|
|
||||||
// build Tab according to the technology, if it's not exist jet OR
|
// build Tab according to the technology, if it's not exist jet OR
|
||||||
// set m_pages_(technology after changing) to m_pages
|
// set m_pages_(technology after changing) to m_pages
|
||||||
if (m_presets->get_edited_preset().printer_technology() == ptFFF)
|
// m_printer_technology will be set by Tab::load_current_preset()
|
||||||
|
if (new_printer_technology == ptFFF)
|
||||||
m_pages_fff.empty() ? build_fff() : m_pages.swap(m_pages_fff);
|
m_pages_fff.empty() ? build_fff() : m_pages.swap(m_pages_fff);
|
||||||
else
|
else
|
||||||
m_pages_sla.empty() ? build_sla() : m_pages.swap(m_pages_sla);
|
m_pages_sla.empty() ? build_sla() : m_pages.swap(m_pages_sla);
|
||||||
@ -2207,35 +2211,35 @@ void Tab::load_current_preset()
|
|||||||
update_tab_ui();
|
update_tab_ui();
|
||||||
|
|
||||||
// update show/hide tabs
|
// update show/hide tabs
|
||||||
if (m_name == "printer"){
|
if (m_name == "printer") {
|
||||||
PrinterTechnology& printer_technology = m_presets->get_edited_preset().printer_technology();
|
PrinterTechnology& printer_technology = m_presets->get_edited_preset().printer_technology();
|
||||||
if (printer_technology != static_cast<TabPrinter*>(this)->m_printer_technology)
|
if (printer_technology != static_cast<TabPrinter*>(this)->m_printer_technology)
|
||||||
{
|
{
|
||||||
for (auto& tab : wxGetApp().mainframe->get_preset_tabs()){
|
for (auto& tab : wxGetApp().mainframe->get_preset_tabs()) {
|
||||||
if (tab.technology != printer_technology)
|
if (tab.technology != printer_technology)
|
||||||
{
|
{
|
||||||
int page_id = wxGetApp().tab_panel()->FindPage(tab.panel);
|
int page_id = wxGetApp().tab_panel()->FindPage(tab.panel);
|
||||||
wxGetApp().tab_panel()->GetPage(page_id)->Show(false);
|
wxGetApp().tab_panel()->GetPage(page_id)->Show(false);
|
||||||
wxGetApp().tab_panel()->RemovePage(page_id);
|
wxGetApp().tab_panel()->RemovePage(page_id);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
wxGetApp().tab_panel()->InsertPage(wxGetApp().tab_panel()->FindPage(this), tab.panel, tab.panel->title());
|
wxGetApp().tab_panel()->InsertPage(wxGetApp().tab_panel()->FindPage(this), tab.panel, tab.panel->title());
|
||||||
}
|
}
|
||||||
|
|
||||||
static_cast<TabPrinter*>(this)->m_printer_technology = printer_technology;
|
static_cast<TabPrinter*>(this)->m_printer_technology = printer_technology;
|
||||||
}
|
}
|
||||||
}
|
on_presets_changed();
|
||||||
|
if (printer_technology == ptFFF) {
|
||||||
on_presets_changed();
|
static_cast<TabPrinter*>(this)->m_initial_extruders_count = static_cast<TabPrinter*>(this)->m_extruders_count;
|
||||||
|
const Preset* parent_preset = m_presets->get_selected_preset_parent();
|
||||||
if (name() == "print")
|
static_cast<TabPrinter*>(this)->m_sys_extruders_count = parent_preset == nullptr ? 0 :
|
||||||
update_frequently_changed_parameters();
|
static_cast<const ConfigOptionFloats*>(parent_preset->config.option("nozzle_diameter"))->values.size();
|
||||||
if (m_name == "printer"){
|
}
|
||||||
static_cast<TabPrinter*>(this)->m_initial_extruders_count = static_cast<TabPrinter*>(this)->m_extruders_count;
|
|
||||||
const Preset* parent_preset = m_presets->get_selected_preset_parent();
|
|
||||||
static_cast<TabPrinter*>(this)->m_sys_extruders_count = parent_preset == nullptr ? 0 :
|
|
||||||
static_cast<const ConfigOptionFloats*>(parent_preset->config.option("nozzle_diameter"))->values.size();
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
on_presets_changed();
|
||||||
|
if (m_name == "print")
|
||||||
|
update_frequently_changed_parameters();
|
||||||
|
}
|
||||||
|
|
||||||
m_opt_status_value = (m_presets->get_selected_preset_parent() ? osSystemValue : 0) | osInitValue;
|
m_opt_status_value = (m_presets->get_selected_preset_parent() ? osSystemValue : 0) | osInitValue;
|
||||||
init_options_list();
|
init_options_list();
|
||||||
update_changed_ui();
|
update_changed_ui();
|
||||||
@ -2543,7 +2547,7 @@ void Tab::delete_preset()
|
|||||||
// Delete the file and select some other reasonable preset.
|
// Delete the file and select some other reasonable preset.
|
||||||
// The 'external' presets will only be removed from the preset list, their files will not be deleted.
|
// The 'external' presets will only be removed from the preset list, their files will not be deleted.
|
||||||
try{ m_presets->delete_current_preset(); }
|
try{ m_presets->delete_current_preset(); }
|
||||||
catch (const std::exception &e)
|
catch (const std::exception & /* e */)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -213,6 +213,7 @@ public:
|
|||||||
wxString title() const { return m_title; }
|
wxString title() const { return m_title; }
|
||||||
std::string name() const { return m_name; }
|
std::string name() const { return m_name; }
|
||||||
Preset::Type type() const { return m_type; }
|
Preset::Type type() const { return m_type; }
|
||||||
|
virtual bool supports_printer_technology(const PrinterTechnology tech) = 0;
|
||||||
|
|
||||||
void create_preset_tab();
|
void create_preset_tab();
|
||||||
void load_current_preset();
|
void load_current_preset();
|
||||||
@ -291,6 +292,7 @@ public:
|
|||||||
void reload_config() override;
|
void reload_config() override;
|
||||||
void update() override;
|
void update() override;
|
||||||
void OnActivate() override;
|
void OnActivate() override;
|
||||||
|
bool supports_printer_technology(const PrinterTechnology tech) override { return tech == ptFFF; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//Slic3r::GUI::Tab::Filament;
|
//Slic3r::GUI::Tab::Filament;
|
||||||
@ -308,6 +310,7 @@ public:
|
|||||||
void reload_config() override;
|
void reload_config() override;
|
||||||
void update() override;
|
void update() override;
|
||||||
void OnActivate() override;
|
void OnActivate() override;
|
||||||
|
bool supports_printer_technology(const PrinterTechnology tech) override { return tech == ptFFF; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//Slic3r::GUI::Tab::Printer;
|
//Slic3r::GUI::Tab::Printer;
|
||||||
@ -321,9 +324,9 @@ class TabPrinter : public Tab
|
|||||||
std::vector<PageShp> m_pages_fff;
|
std::vector<PageShp> m_pages_fff;
|
||||||
std::vector<PageShp> m_pages_sla;
|
std::vector<PageShp> m_pages_sla;
|
||||||
public:
|
public:
|
||||||
wxButton* m_serial_test_btn;
|
wxButton* m_serial_test_btn = nullptr;
|
||||||
wxButton* m_print_host_test_btn;
|
wxButton* m_print_host_test_btn = nullptr;
|
||||||
wxButton* m_printhost_browse_btn;
|
wxButton* m_printhost_browse_btn = nullptr;
|
||||||
|
|
||||||
size_t m_extruders_count;
|
size_t m_extruders_count;
|
||||||
size_t m_extruders_count_old = 0;
|
size_t m_extruders_count_old = 0;
|
||||||
@ -349,6 +352,7 @@ public:
|
|||||||
void build_extruder_pages();
|
void build_extruder_pages();
|
||||||
void on_preset_loaded() override;
|
void on_preset_loaded() override;
|
||||||
void init_options_list() override;
|
void init_options_list() override;
|
||||||
|
bool supports_printer_technology(const PrinterTechnology /* tech */) override { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class TabSLAMaterial : public Tab
|
class TabSLAMaterial : public Tab
|
||||||
@ -362,6 +366,7 @@ public:
|
|||||||
void build() override;
|
void build() override;
|
||||||
void update() override;
|
void update() override;
|
||||||
void init_options_list() override;
|
void init_options_list() override;
|
||||||
|
bool supports_printer_technology(const PrinterTechnology tech) override { return tech == ptSLA; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class SavePresetWindow :public wxDialog
|
class SavePresetWindow :public wxDialog
|
||||||
|
Loading…
Reference in New Issue
Block a user