From 44c2a091182ed8397fcff4ccee748e5aa5d3459c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 17 Jun 2016 11:34:28 +0200 Subject: [PATCH] Added stubs for checking if a print is at all possible CURA-1036 --- NetworkPrinterOutputDevice.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index bcc8283771..fc6a75dde0 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -129,6 +129,19 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): def requestWrite(self, node, file_name = None, filter_by_machine = False): self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list") + + # TODO: Implement all checks. + # Check if cartridges are loaded at all (Error) + #self._json_printer_state["heads"][0]["extruders"][0]["hotend"]["id"] != "" + + # Check if there is material loaded at all (Error) + #self._json_printer_state["heads"][0]["extruders"][0]["active_material"]["GUID"] != "" + + # Check if there is enough material (Warning) + #self._json_printer_state["heads"][0]["extruders"][0]["active_material"]["length_remaining"] + + #TODO: Check if the cartridge is the right ID (give warning otherwise) + self.startPrint() def isConnected(self):