Skip to content

Commit

Permalink
specify bot id type
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Nov 27, 2023
1 parent ae047d2 commit a9dcfaa
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cura/Settings/DatabaseHandlers/VariantDatabaseHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self):
"definition": "text",
"version": "text",
"setting_version": "text",
"bot_id": "text",
"bot_extruder_id": "text",
},
))
self._container_type = InstanceContainer
6 changes: 3 additions & 3 deletions plugins/MakerbotWriter/MakerbotWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _getMeta(self, root_nodes: List[SceneNode]) -> Dict[str, any]:

meta = dict()

meta["bot_type"] = global_stack.definition.getMetaDataEntry("bot_id")
meta["bot_type"] = global_stack.definition.getMetaDataEntry("bot_machine_id")

bounds: Optional[AxisAlignedBox] = None
for node in nodes:
Expand Down Expand Up @@ -186,7 +186,7 @@ def _getMeta(self, root_nodes: List[SceneNode]) -> Dict[str, any]:

meta["uuid"] = print_information.slice_uuid

materials = [extruder.material.getMetaData().get("bot_id") for extruder in extruders]
materials = [extruder.material.getMetaData().get("bot_material_id") for extruder in extruders]

meta["material"] = materials[0]
meta["materials"] = materials
Expand All @@ -198,7 +198,7 @@ def _getMeta(self, root_nodes: List[SceneNode]) -> Dict[str, any]:

meta["model_counts"] = [{"count": 1, "name": node.getName()} for node in nodes]

tool_types = [extruder.variant.getMetaDataEntry("bot_id") for extruder in extruders]
tool_types = [extruder.variant.getMetaDataEntry("bot_extruder_id") for extruder in extruders]
meta["tool_type"] = tool_types[0]
meta["tool_types"] = tool_types

Expand Down
2 changes: 1 addition & 1 deletion resources/definitions/ultimaker_methodx.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-makerbot",
"platform": "ultimaker_method_platform.stl",
"bot_id": "lava_f",
"bot_machine_id": "lava_f",
"exclude_materials": [
"dsm_",
"Essentium_",
Expand Down
2 changes: 1 addition & 1 deletion resources/definitions/ultimaker_methodxl.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-makerbot",
"platform": "ultimaker_method_xl_platform.stl",
"bot_id": "magma_10",
"bot_machine_id": "magma_10",
"has_machine_materials": true,
"has_machine_quality": true,
"has_materials": true,
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodx_1C.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 1C
version = 4

[metadata]
bot_id = mk14_c
bot_extruder_id = mk14_c
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodx_1XA.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 1XA
version = 4

[metadata]
bot_id = mk14_hot
bot_extruder_id = mk14_hot
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodx_2XA.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 2XA
version = 4

[metadata]
bot_id = mk14_hot_s
bot_extruder_id = mk14_hot_s
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodx_LABS.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = LABS
version = 4

[metadata]
bot_id = mk14_e
bot_extruder_id = mk14_e
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodxl_1C.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 1C
version = 4

[metadata]
bot_id = mk14_c
bot_extruder_id = mk14_c
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodxl_1XA.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 1XA
version = 4

[metadata]
bot_id = mk14_hot
bot_extruder_id = mk14_hot
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodxl_2XA.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 2XA
version = 4

[metadata]
bot_id = mk14_hot_s
bot_extruder_id = mk14_hot_s
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down
2 changes: 1 addition & 1 deletion resources/variants/ultimaker_methodxl_LABS.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = LABS
version = 4

[metadata]
bot_id = mk14_e
bot_extruder_id = mk14_e
hardware_type = nozzle
setting_version = 22
type = variant
Expand Down

0 comments on commit a9dcfaa

Please sign in to comment.