Browse Source

Update file format and removed 'Sketch' flavor option

The file format 'application/x-makerbotsketch' has been updated to 'application/x-makerbot-sketch' across all instances in the code base. In addition, the 'Sketch' option for gcode flavor has been removed from all printer selection menus in different sections of the code. This should be added again once the code is implemented in gcode for this flavor.
Also, change flavor in ultimaker_sketch.def.json file

CURA-11777
Saumya Jain 10 months ago
parent
commit
0bbde663e4

+ 2 - 2
plugins/MakerbotWriter/MakerbotWriter.py

@@ -41,7 +41,7 @@ class MakerbotWriter(MeshWriter):
         )
         MimeTypeDatabase.addMimeType(
             MimeType(
-                name="application/x-makerbotsketch",
+                name="application/x-makerbot-sketch",
                 comment="Makerbot Toolpath Package",
                 suffixes=["makerbot"]
             )
@@ -106,7 +106,7 @@ class MakerbotWriter(MeshWriter):
             self.setInformation(gcode_writer.getInformation())
             return False
 
-        if file_format == "application/x-makerbotsketch":
+        if file_format == "application/x-makerbot-sketch":
             filename, filedata = "print.gcode", gcode_text_io.getvalue()
         else:
             filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue())

+ 1 - 1
plugins/MakerbotWriter/__init__.py

@@ -23,7 +23,7 @@ def getMetaData():
                 {
                     "extension": file_extension,
                     "description": catalog.i18nc("@item:inlistbox", "Makerbot Sketch Printfile"),
-                    "mime_type": "application/x-makerbotsketch",
+                    "mime_type": "application/x-makerbot-sketch",
                     "mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
                 }
             ]

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

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

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

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

+ 0 - 1
resources/definitions/fdmprinter.def.json

@@ -381,7 +381,6 @@
                         "UltiGCode": "Ultimaker 2",
                         "Griffin": "Griffin",
                         "Makerbot": "Makerbot",
-                        "makerbotSketch": "Sketch",
                         "BFB": "Bits from Bytes",
                         "MACH3": "Mach3",
                         "Repetier": "Repetier"

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

@@ -7,7 +7,7 @@
         "visible": true,
         "author": "Ultimaker",
         "manufacturer": "Ultimaker B.V.",
-        "file_formats": "application/x-makerbotsketch",
+        "file_formats": "application/x-makerbot-sketch",
         "platform": "ultimaker_sketch_platform.obj",
         "exclude_materials": [
             "dsm_175_novamidid1030cf",
@@ -199,7 +199,6 @@
         "adhesion_type": { "value": "'raft'" },
         "brim_width": { "value": "3" },
         "cool_fan_speed": { "value": "100" },
-        "cool_min_time": { "value": 3 },
         "default_material_print_temperature": { "value": "215" },
         "extruder_prime_pos_abs": { "default_value": true },
         "gantry_height": { "value": "60" },