Browse Source

Add sketch to cloud

CURA-11777
Saumya Jain 10 months ago
parent
commit
f7f56e8766

+ 2 - 1
cura/PrinterOutput/NetworkedPrinterOutputDevice.py

@@ -422,7 +422,8 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
         _PRINTER_TYPE_NAME = {
             "fire_e": "ultimaker_method",
             "lava_f": "ultimaker_methodx",
-            "magma_10": "ultimaker_methodxl"
+            "magma_10": "ultimaker_methodxl",
+            "sketch": "ultimaker_sketch"
         }
         if printer_type in _PRINTER_TYPE_NAME:
             return _PRINTER_TYPE_NAME[printer_type]

+ 1 - 0
plugins/PostProcessingPlugin/scripts/FilamentChange.py

@@ -117,6 +117,7 @@ class FilamentChange(Script):
                         "UltiGCode": "Ultimaker 2",
                         "Griffin": "Griffin",
                         "Makerbot": "Makerbot",
+                        "Sketch": "Sketch",
                         "BFB": "Bits from Bytes",
                         "MACH3": "Mach3",
                         "Repetier": "Repetier"

+ 1 - 0
plugins/PostProcessingPlugin/scripts/PauseAtHeight.py

@@ -206,6 +206,7 @@ class PauseAtHeight(Script):
                         "UltiGCode": "Ultimaker 2",
                         "Griffin": "Griffin",
                         "Makerbot": "Makerbot",
+                        "Sketch": "Sketch",
                         "BFB": "Bits from Bytes",
                         "MACH3": "Mach3",
                         "Repetier": "Repetier"

BIN
plugins/UM3NetworkPrinting/resources/png/MakerBot Sketch.png


+ 1 - 1
plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py

@@ -331,7 +331,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
             return False
 
         [printer, *_] = self._printers
-        return printer.type in ("MakerBot Method X", "MakerBot Method XL")
+        return printer.type in ("MakerBot Method X", "MakerBot Method XL", "MakerBot Sketch")
 
     @pyqtProperty(bool, notify=_cloudClusterPrintersChanged)
     def supportsPrintJobActions(self) -> bool:

+ 2 - 1
plugins/UM3NetworkPrinting/src/Cloud/machine_id_to_name.json

@@ -2,5 +2,6 @@
     "ultimaker_method": "MakerBot Method",
     "ultimaker_methodx": "MakerBot Method X",
     "ultimaker_methodxl": "MakerBot Method XL",
-    "ultimaker_factor4": "Ultimaker Factor 4"
+    "ultimaker_factor4": "Ultimaker Factor 4",
+    "ultimaker_sketch": "MakerBot Sketch"
 }

+ 1 - 1
resources/definitions/ultimaker_sketch.def.json

@@ -1,6 +1,6 @@
 {
     "version": 2,
-    "name": "Makerbot Sketch",
+    "name": "UltiMaker Sketch",
     "inherits": "ultimaker",
     "metadata":
     {

BIN
resources/images/MakerbotSketch.png