mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:05:55 +08:00
Add global profiles and define that the printers have materials and
quality profiles, in the definition files. Contributes to CURA-5499
This commit is contained in:
parent
350f9caa2a
commit
eab10401ee
@ -335,6 +335,7 @@ class MachineManager(QObject):
|
|||||||
global_stack.getName(), new_quality_changes_group.name)
|
global_stack.getName(), new_quality_changes_group.name)
|
||||||
else:
|
else:
|
||||||
new_quality_group = quality_groups.get(quality_type)
|
new_quality_group = quality_groups.get(quality_type)
|
||||||
|
print(quality_groups)
|
||||||
if new_quality_group is not None:
|
if new_quality_group is not None:
|
||||||
self._setQualityGroup(new_quality_group, empty_quality_changes = True)
|
self._setQualityGroup(new_quality_group, empty_quality_changes = True)
|
||||||
same_quality_found = True
|
same_quality_found = True
|
||||||
@ -1107,6 +1108,7 @@ class MachineManager(QObject):
|
|||||||
# Set quality and quality_changes for each ExtruderStack
|
# Set quality and quality_changes for each ExtruderStack
|
||||||
for position, node in quality_group.nodes_for_extruders.items():
|
for position, node in quality_group.nodes_for_extruders.items():
|
||||||
self._global_container_stack.extruders[str(position)].quality = node.getContainer()
|
self._global_container_stack.extruders[str(position)].quality = node.getContainer()
|
||||||
|
print("#######", node.getContainer().getName())
|
||||||
if empty_quality_changes:
|
if empty_quality_changes:
|
||||||
self._global_container_stack.extruders[str(position)].qualityChanges = self._empty_quality_changes_container
|
self._global_container_stack.extruders[str(position)].qualityChanges = self._empty_quality_changes_container
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
"file_formats": "text/x-gcode",
|
"file_formats": "text/x-gcode",
|
||||||
"platform": "discoeasy200.stl",
|
"platform": "discoeasy200.stl",
|
||||||
"platform_offset": [ 105, -59, 280],
|
"platform_offset": [ 105, -59, 280],
|
||||||
|
"has_machine_quality": true,
|
||||||
|
"has_materials": true,
|
||||||
"machine_extruder_trains":
|
"machine_extruder_trains":
|
||||||
{
|
{
|
||||||
"0": "dagoma_discoeasy200_extruder_0"
|
"0": "dagoma_discoeasy200_extruder_0"
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
"file_formats": "text/x-gcode",
|
"file_formats": "text/x-gcode",
|
||||||
"platform": "neva.stl",
|
"platform": "neva.stl",
|
||||||
"platform_offset": [ 0, 0, 0],
|
"platform_offset": [ 0, 0, 0],
|
||||||
|
"has_machine_quality": true,
|
||||||
|
"has_materials": true,
|
||||||
"machine_extruder_trains":
|
"machine_extruder_trains":
|
||||||
{
|
{
|
||||||
"0": "dagoma_neva_extruder_0"
|
"0": "dagoma_neva_extruder_0"
|
||||||
|
@ -8,7 +8,13 @@
|
|||||||
"manufacturer": "Dagoma",
|
"manufacturer": "Dagoma",
|
||||||
"file_formats": "text/x-gcode",
|
"file_formats": "text/x-gcode",
|
||||||
"platform": "neva.stl",
|
"platform": "neva.stl",
|
||||||
"platform_offset": [ 0, 0, 0]
|
"platform_offset": [ 0, 0, 0],
|
||||||
|
"has_machine_quality": true,
|
||||||
|
"has_materials": true,
|
||||||
|
"machine_extruder_trains":
|
||||||
|
{
|
||||||
|
"0": "dagoma_neva_extruder_0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"machine_width": {
|
"machine_width": {
|
||||||
|
@ -11,7 +11,5 @@ weight = -2
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.2
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 10
|
material_print_temperature = =default_material_print_temperature + 10
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
||||||
|
@ -11,4 +11,3 @@ weight = 0
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.1
|
|
||||||
|
@ -11,7 +11,5 @@ weight = -1
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.15
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 5
|
material_print_temperature = =default_material_print_temperature + 5
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
||||||
|
14
resources/quality/dagoma/dagoma_global_fast.inst.cfg
Normal file
14
resources/quality/dagoma/dagoma_global_fast.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[general]
|
||||||
|
version = 4
|
||||||
|
name = Fast
|
||||||
|
definition = dagoma_discoeasy200
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
setting_version = 5
|
||||||
|
type = quality
|
||||||
|
quality_type = draft
|
||||||
|
weight = -2
|
||||||
|
global_quality = True
|
||||||
|
|
||||||
|
[values]
|
||||||
|
layer_height = 0.2
|
14
resources/quality/dagoma/dagoma_global_fine.inst.cfg
Normal file
14
resources/quality/dagoma/dagoma_global_fine.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[general]
|
||||||
|
version = 4
|
||||||
|
name = Fine
|
||||||
|
definition = dagoma_discoeasy200
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
setting_version = 5
|
||||||
|
type = quality
|
||||||
|
quality_type = normal
|
||||||
|
weight = 0
|
||||||
|
global_quality = True
|
||||||
|
|
||||||
|
[values]
|
||||||
|
layer_height = 0.1
|
14
resources/quality/dagoma/dagoma_global_standard.inst.cfg
Normal file
14
resources/quality/dagoma/dagoma_global_standard.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[general]
|
||||||
|
version = 4
|
||||||
|
name = Standard
|
||||||
|
definition = dagoma_discoeasy200
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
setting_version = 5
|
||||||
|
type = quality
|
||||||
|
quality_type = fast
|
||||||
|
weight = -1
|
||||||
|
global_quality = True
|
||||||
|
|
||||||
|
[values]
|
||||||
|
layer_height = 0.15
|
@ -11,7 +11,5 @@ weight = -2
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.2
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 10
|
material_print_temperature = =default_material_print_temperature + 10
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
||||||
|
@ -11,4 +11,3 @@ weight = 0
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.1
|
|
||||||
|
@ -11,7 +11,5 @@ weight = -1
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.15
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 5
|
material_print_temperature = =default_material_print_temperature + 5
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
||||||
|
@ -11,7 +11,5 @@ weight = -2
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.2
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 10
|
material_print_temperature = =default_material_print_temperature + 10
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 10
|
||||||
|
@ -11,4 +11,3 @@ weight = 0
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.1
|
|
||||||
|
@ -11,7 +11,5 @@ weight = -1
|
|||||||
material = generic_pla
|
material = generic_pla
|
||||||
|
|
||||||
[values]
|
[values]
|
||||||
layer_height = 0.15
|
|
||||||
|
|
||||||
material_print_temperature = =default_material_print_temperature + 5
|
material_print_temperature = =default_material_print_temperature + 5
|
||||||
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
material_bed_temperature_layer_0 = =default_material_bed_temperature + 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user