mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Use single extruder when exporting for Replicator+
CURA-12313
This commit is contained in:
parent
382b98e8b0
commit
66402ff93c
3 changed files with 16 additions and 1 deletions
|
@ -5,7 +5,7 @@ requirements:
|
||||||
- "curaengine/5.10.0-alpha.0@ultimaker/testing"
|
- "curaengine/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "cura_binary_data/5.10.0-alpha.0@ultimaker/testing"
|
- "cura_binary_data/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "fdm_materials/5.10.0-alpha.0@ultimaker/testing"
|
- "fdm_materials/5.10.0-alpha.0@ultimaker/testing"
|
||||||
- "dulcificum/0.2.1@ultimaker/stable"
|
- "dulcificum/0.3.0@ultimaker/cura_12313"
|
||||||
- "pysavitar/5.4.0-alpha.0@ultimaker/stable"
|
- "pysavitar/5.4.0-alpha.0@ultimaker/stable"
|
||||||
- "pynest2d/5.4.0-alpha.0@ultimaker/stable"
|
- "pynest2d/5.4.0-alpha.0@ultimaker/stable"
|
||||||
requirements_internal:
|
requirements_internal:
|
||||||
|
|
|
@ -46,6 +46,13 @@ class MakerbotWriter(MeshWriter):
|
||||||
suffixes=["makerbot"]
|
suffixes=["makerbot"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
MimeTypeDatabase.addMimeType(
|
||||||
|
MimeType(
|
||||||
|
name="application/x-makerbot-replicator_plus",
|
||||||
|
comment="Makerbot Toolpath Package",
|
||||||
|
suffixes=["makerbot"]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
_PNG_FORMAT = [
|
_PNG_FORMAT = [
|
||||||
{"prefix": "isometric_thumbnail", "width": 120, "height": 120},
|
{"prefix": "isometric_thumbnail", "width": 120, "height": 120},
|
||||||
|
@ -114,6 +121,8 @@ class MakerbotWriter(MeshWriter):
|
||||||
filename, filedata = "print.gcode", gcode_text_io.getvalue()
|
filename, filedata = "print.gcode", gcode_text_io.getvalue()
|
||||||
case "application/x-makerbot":
|
case "application/x-makerbot":
|
||||||
filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue())
|
filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue())
|
||||||
|
case "application/x-makerbot-replicator_plus":
|
||||||
|
filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue(), nb_extruders=1)
|
||||||
case _:
|
case _:
|
||||||
raise Exception("Unsupported Mime type")
|
raise Exception("Unsupported Mime type")
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,12 @@ def getMetaData():
|
||||||
"description": catalog.i18nc("@item:inlistbox", "Makerbot Sketch Printfile"),
|
"description": catalog.i18nc("@item:inlistbox", "Makerbot Sketch Printfile"),
|
||||||
"mime_type": "application/x-makerbot-sketch",
|
"mime_type": "application/x-makerbot-sketch",
|
||||||
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"extension": file_extension,
|
||||||
|
"description": catalog.i18nc("@item:inlistbox", "Makerbot Replicator+ Printfile"),
|
||||||
|
"mime_type": "application/x-makerbot-replicator_plus",
|
||||||
|
"mode": MakerbotWriter.MakerbotWriter.OutputMode.BinaryMode,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue